-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make specifying config-management sidecar plugin image optional (…
…#1604) * feat: make specifying sidecar plugin image optional Signed-off-by: John Pitman <[email protected]> * update comment and docs Signed-off-by: John Pitman <[email protected]> * update bundle Signed-off-by: John Pitman <[email protected]> * add comment to v1alpha1 Signed-off-by: John Pitman <[email protected]> --------- Signed-off-by: John Pitman <[email protected]>
- Loading branch information
Showing
13 changed files
with
206 additions
and
20 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
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,30 @@ | ||
# Increase the timeout for the first test because it needs to download | ||
# a number of container images | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
timeout: 720 | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ArgoCD | ||
metadata: | ||
name: example-argocd | ||
namespace: test-2-17-custom | ||
status: | ||
phase: Available | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: example-argocd-repo-server | ||
namespace: test-2-17-custom | ||
status: | ||
readyReplicas: 1 | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: guestbook | ||
namespace: test-2-17-custom | ||
annotations: | ||
Bar: baz | ||
Foo: myfoo |
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,77 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: test-2-17-custom | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: cmp-plugin | ||
namespace: test-2-17-custom | ||
data: | ||
plugin.yaml: | | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ConfigManagementPlugin | ||
metadata: | ||
name: cmp-plugin | ||
spec: | ||
version: v1.0 | ||
generate: | ||
command: [sh, -c, 'echo "{\"kind\": \"ConfigMap\", \"apiVersion\": \"v1\", \"metadata\": { \"name\": \"$ARGOCD_APP_NAME\", \"namespace\": \"$ARGOCD_APP_NAMESPACE\", \"annotations\": {\"Foo\": \"$ARGOCD_ENV_FOO\", \"Bar\": \"baz\"}}}"'] | ||
discover: | ||
find: | ||
command: [sh, -c, 'echo "FOUND"; exit 0'] | ||
allowConcurrency: true | ||
lockRepo: true | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ArgoCD | ||
metadata: | ||
name: example-argocd | ||
namespace: test-2-17-custom | ||
spec: | ||
server: | ||
route: | ||
enabled: true | ||
repo: | ||
sidecarContainers: | ||
- name: cmp | ||
command: [/var/run/argocd/argocd-cmp-server] | ||
securityContext: | ||
runAsNonRoot: true | ||
runAsUser: 999 | ||
volumeMounts: | ||
- mountPath: /var/run/argocd | ||
name: var-files | ||
- mountPath: /home/argocd/cmp-server/plugins | ||
name: plugins | ||
- mountPath: /tmp | ||
name: tmp | ||
- mountPath: /home/argocd/cmp-server/config/plugin.yaml | ||
subPath: plugin.yaml | ||
name: cmp-plugin | ||
volumes: | ||
- configMap: | ||
name: cmp-plugin | ||
name: cmp-plugin | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: guestbook | ||
namespace: test-2-17-custom | ||
spec: | ||
project: default | ||
source: | ||
repoURL: 'https://github.com/argoproj/argocd-example-apps.git' | ||
path: guestbook | ||
targetRevision: HEAD | ||
plugin: | ||
env: | ||
- name: FOO | ||
value: myfoo | ||
destination: | ||
server: 'https://kubernetes.default.svc' | ||
namespace: test-2-17-custom | ||
syncPolicy: | ||
automated: {} |
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