-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for 'changed files' and 'watch-pattern' annotation (#50)
- Loading branch information
1 parent
9c51e4a
commit b7c9b42
Showing
15 changed files
with
471 additions
and
122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
- "examples/**" | ||
|
||
jobs: | ||
build: | ||
render-diff: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
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 |
---|---|---|
|
@@ -4,6 +4,9 @@ on: | |
pull_request: | ||
branches: | ||
- "main" | ||
paths: | ||
- "src/**" | ||
- Cargo.toml | ||
|
||
jobs: | ||
build-amd64: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
22 changes: 22 additions & 0 deletions
22
examples/helm/applications/label-selectors/my-app-labels.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,22 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: my-app-labels | ||
namespace: argocd | ||
labels: | ||
team: my-team | ||
spec: | ||
project: default | ||
destination: | ||
name: in-cluster | ||
namespace: default | ||
sources: | ||
- repoURL: https://github.com/dag-andersen/argocd-diff-preview | ||
ref: local-files | ||
- path: examples/helm/charts/myApp | ||
repoURL: https://github.com/dag-andersen/argocd-diff-preview | ||
helm: | ||
valueFiles: | ||
- $local-files/examples/helm/values/values.yaml | ||
valuesObject: | ||
replicaCount: 5 |
22 changes: 22 additions & 0 deletions
22
examples/helm/applications/watch-pattern/broken-regex.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,22 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: my-app-watch-pattern-broken-regex | ||
namespace: argocd | ||
annotations: | ||
argocd-diff-preview/watch-pattern: '\' | ||
spec: | ||
project: default | ||
destination: | ||
name: in-cluster | ||
namespace: default | ||
sources: | ||
- repoURL: https://github.com/dag-andersen/argocd-diff-preview | ||
ref: local-files | ||
- path: examples/helm/charts/myApp | ||
repoURL: https://github.com/dag-andersen/argocd-diff-preview | ||
helm: | ||
valueFiles: | ||
- $local-files/examples/helm/values/values.yaml | ||
valuesObject: | ||
replicaCount: 5 |
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,22 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: my-app-watch-pattern-valid-regex | ||
namespace: argocd | ||
annotations: | ||
argocd-diff-preview/watch-pattern: "examples/helm/values/.*" | ||
spec: | ||
project: default | ||
destination: | ||
name: in-cluster | ||
namespace: default | ||
sources: | ||
- repoURL: https://github.com/dag-andersen/argocd-diff-preview | ||
ref: local-files | ||
- path: examples/helm/charts/myApp | ||
repoURL: https://github.com/dag-andersen/argocd-diff-preview | ||
helm: | ||
valueFiles: | ||
- $local-files/examples/helm/values/values.yaml | ||
valuesObject: | ||
replicaCount: 5 |
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
Oops, something went wrong.