From 9b8931e8842e1772b2c9970385c9934e9b73e01a Mon Sep 17 00:00:00 2001 From: Dag Andersen Date: Tue, 22 Oct 2024 14:41:39 +0200 Subject: [PATCH] example | label-selector and watch-pattern examples use new valuefile --- examples/helm/applications/label-selectors/my-app-labels.yaml | 2 +- examples/helm/applications/my-app.yaml | 2 +- examples/helm/applications/watch-pattern/broken-regex.yaml | 2 +- examples/helm/applications/watch-pattern/valid-regex.yaml | 4 ++-- examples/helm/values/{values.yaml => filtered.yaml} | 0 examples/helm/values/my-app.yaml | 1 + 6 files changed, 6 insertions(+), 5 deletions(-) rename examples/helm/values/{values.yaml => filtered.yaml} (100%) create mode 100644 examples/helm/values/my-app.yaml diff --git a/examples/helm/applications/label-selectors/my-app-labels.yaml b/examples/helm/applications/label-selectors/my-app-labels.yaml index 3c111d7..403d2f3 100644 --- a/examples/helm/applications/label-selectors/my-app-labels.yaml +++ b/examples/helm/applications/label-selectors/my-app-labels.yaml @@ -17,6 +17,6 @@ spec: repoURL: https://github.com/dag-andersen/argocd-diff-preview helm: valueFiles: - - $local-files/examples/helm/values/values.yaml + - $local-files/examples/helm/values/filtered.yaml valuesObject: replicaCount: 5 diff --git a/examples/helm/applications/my-app.yaml b/examples/helm/applications/my-app.yaml index dbd4196..5418ec7 100644 --- a/examples/helm/applications/my-app.yaml +++ b/examples/helm/applications/my-app.yaml @@ -15,4 +15,4 @@ spec: repoURL: https://github.com/dag-andersen/argocd-diff-preview helm: valueFiles: - - $local-files/examples/helm/values/values.yaml + - $local-files/examples/helm/values/my-app.yaml diff --git a/examples/helm/applications/watch-pattern/broken-regex.yaml b/examples/helm/applications/watch-pattern/broken-regex.yaml index 3ac7320..830dfcc 100644 --- a/examples/helm/applications/watch-pattern/broken-regex.yaml +++ b/examples/helm/applications/watch-pattern/broken-regex.yaml @@ -17,6 +17,6 @@ spec: repoURL: https://github.com/dag-andersen/argocd-diff-preview helm: valueFiles: - - $local-files/examples/helm/values/values.yaml + - $local-files/examples/helm/values/filtered.yaml valuesObject: replicaCount: 5 diff --git a/examples/helm/applications/watch-pattern/valid-regex.yaml b/examples/helm/applications/watch-pattern/valid-regex.yaml index ea219e3..d10818c 100644 --- a/examples/helm/applications/watch-pattern/valid-regex.yaml +++ b/examples/helm/applications/watch-pattern/valid-regex.yaml @@ -4,7 +4,7 @@ metadata: name: my-app-watch-pattern-valid-regex namespace: argocd annotations: - argocd-diff-preview/watch-pattern: "examples/helm/values/.*" + argocd-diff-preview/watch-pattern: "examples/helm/values/filtered" spec: project: default destination: @@ -17,6 +17,6 @@ spec: repoURL: https://github.com/dag-andersen/argocd-diff-preview helm: valueFiles: - - $local-files/examples/helm/values/values.yaml + - $local-files/examples/helm/values/filtered.yaml valuesObject: replicaCount: 5 diff --git a/examples/helm/values/values.yaml b/examples/helm/values/filtered.yaml similarity index 100% rename from examples/helm/values/values.yaml rename to examples/helm/values/filtered.yaml diff --git a/examples/helm/values/my-app.yaml b/examples/helm/values/my-app.yaml new file mode 100644 index 0000000..37c06df --- /dev/null +++ b/examples/helm/values/my-app.yaml @@ -0,0 +1 @@ +fullnameOverride: new-app-name