-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use release Kustomization for Gatekeeper (#59)
A dedicated Kustomization gatekeeper-release is created that the other two Kustomizations can depend on other than depending on a Kustomization that isn't maintained as part of this repository. This makes the whole gatekeeper service self-contained and less prone to bugs. This follows the same pattern we use for kubefed so we don't use different approaches within this repo.
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./release | ||
- release.yaml | ||
- constraints.yaml | ||
- constrainttemplates.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 | ||
kind: Kustomization | ||
metadata: | ||
name: gatekeeper-release | ||
namespace: ${releaseNamespace} | ||
spec: | ||
force: false | ||
prune: true | ||
interval: 1m0s | ||
path: ./services/gatekeeper/0.6.8/release | ||
sourceRef: | ||
kind: GitRepository | ||
name: management | ||
namespace: kommander-flux | ||
timeout: 60s | ||
postBuild: | ||
substituteFrom: | ||
- kind: ConfigMap | ||
name: substitution-vars | ||
healthChecks: | ||
- apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
name: gatekeeper | ||
namespace: ${releaseNamespace} |