-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4939 from bkreitch/resursive-diff
Recursively diff Kustomizations
- Loading branch information
Showing
14 changed files
with
599 additions
and
28 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
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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v1 | ||
data: | ||
var: test | ||
kind: ConfigMap | ||
metadata: | ||
name: my-app |
29 changes: 29 additions & 0 deletions
29
cmd/flux/testdata/build-kustomization/podinfo-with-my-app-result.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,29 @@ | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
labels: | ||
kustomize.toolkit.fluxcd.io/name: podinfo | ||
kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} | ||
name: my-app | ||
namespace: default | ||
spec: | ||
force: true | ||
interval: 5m0s | ||
path: ./my-app | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: podinfo | ||
targetNamespace: default | ||
--- | ||
apiVersion: v1 | ||
data: | ||
var: test | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
kustomize.toolkit.fluxcd.io/name: my-app | ||
kustomize.toolkit.fluxcd.io/namespace: default | ||
name: my-app | ||
namespace: default | ||
--- |
4 changes: 4 additions & 0 deletions
4
cmd/flux/testdata/build-kustomization/podinfo-with-my-app/kustomization.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,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./my-app.yaml |
14 changes: 14 additions & 0 deletions
14
cmd/flux/testdata/build-kustomization/podinfo-with-my-app/my-app.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,14 @@ | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: my-app | ||
spec: | ||
interval: 5m0s | ||
path: ./my-app | ||
force: true | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: podinfo | ||
targetNamespace: default |
2 changes: 2 additions & 0 deletions
2
cmd/flux/testdata/diff-kustomization/diff-with-recursive.golden
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,2 @@ | ||
📁 Kustomization/default/my-app changed | ||
► ConfigMap/default/my-app created |
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,18 @@ | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
labels: | ||
kustomize.toolkit.fluxcd.io/name: podinfo | ||
kustomize.toolkit.fluxcd.io/namespace: {{ .fluxns }} | ||
name: my-app | ||
namespace: default | ||
spec: | ||
interval: 5m0s | ||
path: ./my-app | ||
force: true | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: podinfo | ||
targetNamespace: default |
Oops, something went wrong.