Skip to content

Commit

Permalink
fix(snapshots): revert
Browse files Browse the repository at this point in the history
Signed-off-by: Toni Tauro <[email protected]>
  • Loading branch information
eyenx committed Jan 30, 2025
1 parent f484465 commit 946d84a
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ should match snapshot:
app.kubernetes.io/name: csi-secret-provider-class
spec:
containers:
- image: registry.k8s.io/pause:3.7
imagePullPolicy: IfNotPresent
name: dummy
volumeMounts:
- mountPath: /vault
name: csi-secret-store-volume
readOnly: true
volumes:
- csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: release-name-csi-secret-provider-class
- image: registry.k8s.io/pause:3.7
imagePullPolicy: IfNotPresent
name: dummy
volumeMounts:
- mountPath: /vault
name: csi-secret-store-volume
readOnly: true
volumes:
- csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: release-name-csi-secret-provider-class
name: csi-secret-store-volume
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ should match snapshot:
foo: bar
provider: fake
secretObjects:
- secretName: test
- secretName: test
44 changes: 22 additions & 22 deletions charts/mopsos/tests/__snapshot__/deployment_test.yaml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@ should match snapshot:
app.kubernetes.io/name: mopsos
spec:
containers:
- envFrom:
- secretRef:
name: RELEASE-NAME-mopsos-secret
- configMapRef:
name: RELEASE-NAME-mopsos-config
image: ghcr.io/adfinis/mopsos:v0.3.7
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /health
port: http
name: mopsos
ports:
- containerPort: 8080
name: http
protocol: TCP
readinessProbe:
httpGet:
path: /health
port: http
resources: {}
securityContext: {}
- envFrom:
- secretRef:
name: RELEASE-NAME-mopsos-secret
- configMapRef:
name: RELEASE-NAME-mopsos-config
image: ghcr.io/adfinis/mopsos:v0.3.7
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /health
port: http
name: mopsos
ports:
- containerPort: 8080
name: http
protocol: TCP
readinessProbe:
httpGet:
path: /health
port: http
resources: {}
securityContext: {}
securityContext: {}
serviceAccountName: RELEASE-NAME-mopsos
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ should create one RBACDefinition:
helm.sh/chart: rbac-definitions-0.1.3
name: cluster-editors
rbacBindings:
- clusterRoleBindings:
- clusterRole: edit
name: editors
subjects:
- kind: User
name: maxime@example.com
- clusterRoleBindings:
- clusterRole: edit
name: editors
subjects:
- kind: User
name: maxime@example.com
2: |
apiVersion: rbacmanager.reactiveops.io/v1beta1
kind: RBACDefinition
Expand All @@ -29,12 +29,12 @@ should create one RBACDefinition:
helm.sh/chart: rbac-definitions-0.1.3
name: cluster-admins
rbacBindings:
- clusterRoleBindings:
- clusterRole: cluster-admin
name: admins
subjects:
- kind: User
name: jane@example.com
- clusterRoleBindings:
- clusterRole: cluster-admin
name: admins
subjects:
- kind: User
name: jane@example.com
should create one RBACDefinition with a namespace selector:
1: |
apiVersion: rbacmanager.reactiveops.io/v1beta1
Expand All @@ -48,15 +48,15 @@ should create one RBACDefinition with a namespace selector:
helm.sh/chart: rbac-definitions-0.1.3
name: devs-edit
rbacBindings:
- name: devs
roleBindings:
- clusterRole: edit
namespaceSelector:
matchLabels:
k8s.example.com/owner: devs
subjects:
- kind: Group
name: devs
- name: devs
roleBindings:
- clusterRole: edit
namespaceSelector:
matchLabels:
k8s.example.com/owner: devs
subjects:
- kind: Group
name: devs
should match snapshot:
1: |
apiVersion: rbacmanager.reactiveops.io/v1beta1
Expand All @@ -70,12 +70,12 @@ should match snapshot:
helm.sh/chart: rbac-definitions-0.1.3
name: ci-example
rbacBindings:
- clusterRoleBindings:
- clusterRole: edit
name: edit
subjects:
- kind: User
name: ci@example.com
- clusterRoleBindings:
- clusterRole: edit
name: edit
subjects:
- kind: User
name: ci@example.com
should only create one RBACDefinition:
1: |
apiVersion: rbacmanager.reactiveops.io/v1beta1
Expand All @@ -89,9 +89,9 @@ should only create one RBACDefinition:
helm.sh/chart: rbac-definitions-0.1.3
name: cluster-admins
rbacBindings:
- clusterRoleBindings:
- clusterRole: cluster-admin
name: admins
subjects:
- kind: User
name: jane@example.com
- clusterRoleBindings:
- clusterRole: cluster-admin
name: admins
subjects:
- kind: User
name: jane@example.com

0 comments on commit 946d84a

Please sign in to comment.