Skip to content

Commit

Permalink
Change secret mounting path to allign with nova-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkisaolamb committed Feb 6, 2024
1 parent fa32909 commit 826dafd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pkg/placement/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func getVolumeMounts(serviceName string) []corev1.VolumeMount {
},
{
Name: "config-data",
MountPath: "/var/lib/config-data/merged",
MountPath: "/var/lib/openstack/config",
ReadOnly: false,
},
{
Expand Down
8 changes: 4 additions & 4 deletions templates/placementapi/config/placement-api-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
"command": "/usr/sbin/httpd -DFOREGROUND",
"config_files": [
{
"source": "/var/lib/config-data/merged/placement.conf",
"source": "/var/lib/openstack/config/placement.conf",
"dest": "/etc/placement/placement.conf",
"owner": "placement",
"perm": "0600"
},
{
"source": "/var/lib/config-data/merged/httpd.conf",
"source": "/var/lib/openstack/config/httpd.conf",
"dest": "/etc/httpd/conf/httpd.conf",
"owner": "apache",
"perm": "0644"
},
{
"source": "/var/lib/config-data/merged/custom.conf",
"source": "/var/lib/openstack/config/custom.conf",
"dest": "/etc/placement/placement.conf.d/custom.conf",
"owner": "placement",
"perm": "0600"
},
{
"source": "/var/lib/config-data/merged/ssl.conf",
"source": "/var/lib/openstack/config/ssl.conf",
"dest": "/etc/httpd/conf.d/ssl.conf",
"owner": "apache",
"perm": "0644"
Expand Down
4 changes: 2 additions & 2 deletions templates/placementapi/config/placement-dbsync-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"command": "placement-manage db sync",
"config_files": [
{
"source": "/var/lib/config-data/merged/placement.conf",
"source": "/var/lib/openstack/config/placement.conf",
"dest": "/etc/placement/placement.conf",
"owner": "placement",
"perm": "0600"
},
{
"source": "/var/lib/config-data/merged/custom.conf",
"source": "/var/lib/openstack/config/custom.conf",
"dest": "/etc/placement/placement.conf.d/custom.conf",
"owner": "placement",
"perm": "0600"
Expand Down
13 changes: 12 additions & 1 deletion tests/kuttl/common/assert_sample_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ spec:
readOnly: true
- mountPath: /var/log/placement
name: logs
- mountPath: /var/lib/config-data/merged
- mountPath: /var/lib/openstack/config
name: config-data
- mountPath: /var/lib/kolla/config_files/config.json
name: config-data
Expand Down Expand Up @@ -186,6 +186,17 @@ status:
availableReplicas: 1
replicas: 1
---
# the openshift annotations can't be checked through the deployment above
apiVersion: v1
kind: Pod
metadata:
annotations:
openshift.io/scc: anyuid
labels:
service: placement
status:
phase: Running
---
apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion tests/kuttl/tests/placement_deploy_tls/03-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ spec:
readOnly: true
- mountPath: /var/log/placement
name: logs
- mountPath: /var/lib/config-data/merged
- mountPath: /var/lib/openstack/config
name: config-data
- mountPath: /var/lib/kolla/config_files/config.json
name: config-data
Expand Down

0 comments on commit 826dafd

Please sign in to comment.