Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #831 from olliewalsh/libvirt_sasl
Browse files Browse the repository at this point in the history
Set default secret in libvirt service
  • Loading branch information
openshift-merge-bot[bot] authored Apr 17, 2024
2 parents 0230e25 + 7159533 commit 6353831
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: libvirt
spec:
playbook: osp.edpm.libvirt
secrets:
# NOTE: this Secret needs to be created before deploying the data plane.
# It should contain the libvirt sasl auth password using the key LibvirtPassword
- libvirt-secret
tlsCert:
contents:
- dnsnames
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ data:
ssh-privatekey: ZmFrZQo=
ssh-publickey: ZmFrZQo=
---
apiVersion: v1
kind: Secret
metadata:
name: libvirt-secret
data:
LibvirtPassword: ZmFrZQo=
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,17 @@ spec:
backoffLimit: 6
envConfigMapName: openstack-aee-default-env
extraMounts:
- mounts:
- mountPath: /var/lib/openstack/configs/libvirt/LibvirtPassword
name: libvirt-secret-0
subPath: LibvirtPassword
volumes:
- name: libvirt-secret-0
secret:
items:
- key: LibvirtPassword
path: LibvirtPassword
secretName: libvirt-secret
- mounts:
- mountPath: /runner/env/ssh_key
name: ssh-key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ data:
ssh-privatekey: ZmFrZQo=
ssh-publickey: ZmFrZQo=
---
apiVersion: v1
kind: Secret
metadata:
name: libvirt-secret
data:
LibvirtPassword: ZmFrZQo=
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneNodeSet
metadata:
Expand Down
11 changes: 11 additions & 0 deletions tests/kuttl/tests/dataplane-deploy-no-nodes-test/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,17 @@ spec:
backoffLimit: 6
envConfigMapName: openstack-aee-default-env
extraMounts:
- mounts:
- mountPath: /var/lib/openstack/configs/libvirt/LibvirtPassword
name: libvirt-secret-0
subPath: LibvirtPassword
volumes:
- name: libvirt-secret-0
secret:
items:
- key: LibvirtPassword
path: LibvirtPassword
secretName: libvirt-secret
- mounts:
- mountPath: /runner/env/ssh_key
name: ssh-key
Expand Down

0 comments on commit 6353831

Please sign in to comment.