Skip to content

Commit

Permalink
review changes, e2e fix
Browse files Browse the repository at this point in the history
Signed-off-by: saumeya <[email protected]>
  • Loading branch information
saumeya committed Oct 15, 2024
1 parent 161d504 commit a2c5f9d
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 16 deletions.
1 change: 0 additions & 1 deletion controllers/argocd/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,6 @@ func getRolloutInitContainer() []corev1.Container {
"ALL",
},
},
RunAsNonRoot: boolPtr(true),
SeccompProfile: &corev1.SeccompProfile{
Type: "RuntimeDefault",
},
Expand Down
37 changes: 32 additions & 5 deletions tests/k8s/1-044_validate_rollout_extension/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,37 @@ spec:
volumeMounts:
- name: extensions
mountPath: /tmp/extensions/
securityContext:
runAsNonRoot: true
volumes:
- name: extensions
emptyDir: {}
- configMap:
defaultMode: 420
name: argocd-ssh-known-hosts-cm
name: ssh-known-hosts
- configMap:
defaultMode: 420
name: argocd-tls-certs-cm
name: tls-certs
- name: argocd-repo-server-tls
secret:
defaultMode: 420
optional: true
secretName: argocd-repo-server-tls
- name: argocd-operator-redis-tls
secret:
defaultMode: 420
optional: true
secretName: argocd-operator-redis-tls
- emptyDir: {}
name: extensions
containers:
- name: argocd-server
- name: argocd-server
volumeMounts:
- mountPath: /app/config/ssh
name: ssh-known-hosts
- mountPath: /app/config/tls
name: tls-certs
- mountPath: /app/config/server/tls
name: argocd-repo-server-tls
- mountPath: /app/config/server/tls/redis
name: argocd-operator-redis-tls
- mountPath: /tmp/extensions/
name: extensions
42 changes: 32 additions & 10 deletions tests/k8s/1-044_validate_rollout_extension/02-errors.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
name: argocd
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -22,10 +17,37 @@ spec:
volumeMounts:
- name: extensions
mountPath: /tmp/extensions/
securityContext:
runAsNonRoot: true
volumes:
- name: extensions
emptyDir: {}
- configMap:
defaultMode: 420
name: argocd-ssh-known-hosts-cm
name: ssh-known-hosts
- configMap:
defaultMode: 420
name: argocd-tls-certs-cm
name: tls-certs
- name: argocd-repo-server-tls
secret:
defaultMode: 420
optional: true
secretName: argocd-repo-server-tls
- name: argocd-operator-redis-tls
secret:
defaultMode: 420
optional: true
secretName: argocd-operator-redis-tls
- emptyDir: {}
name: extensions
containers:
- name: argocd-server
- name: argocd-server
volumeMounts:
- mountPath: /app/config/ssh
name: ssh-known-hosts
- mountPath: /app/config/tls
name: tls-certs
- mountPath: /app/config/server/tls
name: argocd-repo-server-tls
- mountPath: /app/config/server/tls/redis
name: argocd-operator-redis-tls
- mountPath: /tmp/extensions/
name: extensions

0 comments on commit a2c5f9d

Please sign in to comment.