Skip to content

Commit

Permalink
Fix scripts volum issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkisaolamb committed Feb 2, 2024
1 parent 18fc0ca commit bbbb290
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/placement/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ func getVolumes(name string) []corev1.Volume {
{
Name: "scripts",
VolumeSource: corev1.VolumeSource{
ConfigMap: &corev1.ConfigMapVolumeSource{
Secret: &corev1.SecretVolumeSource{
DefaultMode: &scriptsVolumeDefaultMode,
LocalObjectReference: corev1.LocalObjectReference{
Name: name + "-scripts",
},
SecretName: name + "-scripts",
},
},
},
Expand Down
21 changes: 21 additions & 0 deletions tests/kuttl/common/errors_cleanup_placement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ kind: Deployment
metadata:
name: placement
---
# the openshift annotations can't be checked through the deployment above
apiVersion: v1
kind: Pod
metadata:
annotations:
openshift.io/scc: anyuid
labels:
service: placement
---
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -62,6 +71,18 @@ spec:
---
apiVersion: v1
kind: Secret
metadata:
labels:
placement.openstack.org/name: placement
name: placement-scripts
ownerReferences:
- blockOwnerDeletion: true
controller: true
kind: PlacementAPI
name: placement
---
apiVersion: v1
kind: Secret
metadata:
labels:
placement.openstack.org/name: placement
Expand Down

0 comments on commit bbbb290

Please sign in to comment.