Skip to content

Commit 8f09364

Browse files
committed
Update to support new lib-common storage structs
1 parent 75a2208 commit 8f09364

11 files changed

Lines changed: 135 additions & 4323 deletions

‎apis/bases/core.openstack.org_openstackcontrolplanes.yaml‎

Lines changed: 51 additions & 1851 deletions
Large diffs are not rendered by default.

‎apis/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml‎

Lines changed: 0 additions & 300 deletions
Large diffs are not rendered by default.

‎apis/go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/openstack-k8s-operators/ironic-operator/api v0.4.1-0.20241016184335-60fb2a3ccf1a
1818
github.com/openstack-k8s-operators/keystone-operator/api v0.5.1-0.20241028071533-ae2b9a574fda
1919
github.com/openstack-k8s-operators/lib-common/modules/common v0.5.1-0.20241028071009-a8404d0ab6bb
20-
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.0
20+
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.1-0.20241104140916-71a0e9d9766d
2121
github.com/openstack-k8s-operators/manila-operator/api v0.5.1-0.20241021160008-f0273be177b4
2222
github.com/openstack-k8s-operators/mariadb-operator/api v0.5.1-0.20241028074300-17b2cf83d27e
2323
github.com/openstack-k8s-operators/neutron-operator/api v0.5.1-0.20241028134914-0bd44d6dcb1d

‎apis/go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ github.com/openstack-k8s-operators/lib-common/modules/common v0.5.1-0.2024102807
116116
github.com/openstack-k8s-operators/lib-common/modules/common v0.5.1-0.20241028071009-a8404d0ab6bb/go.mod h1:YpNTuJhDWhbXM50O3qBkhO7M+OOyRmWkNVmJ4y3cyFs=
117117
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.5.0 h1:A8bwCA5B4AyIjt0Qzg0JgvF+HrZ9OQJOrSNq9jOFDpg=
118118
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.5.0/go.mod h1:djfljx3jfHqywhY3oDvPg/GLKwiFVkds6v7P7/Yg+8g=
119-
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.0 h1:iVGCAds5eVjKEoZS0KSBwYziLeLW3ZBs8PqPMrljPcg=
120-
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.0/go.mod h1:cGynoLGY9NfyIeWXI3zZ+hgZdHF3SUi8ht5ygZ8CmhI=
119+
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.1-0.20241104140916-71a0e9d9766d h1:6fA7kvhKRelVwNWxcMVe2d2lkN8MITY0OIudTBnmT+A=
120+
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.1-0.20241104140916-71a0e9d9766d/go.mod h1:tfgBeLRqmlH/NQkLPe7396rj+t0whv2wPuMb8Ttvh8w=
121121
github.com/openstack-k8s-operators/manila-operator/api v0.5.1-0.20241021160008-f0273be177b4 h1:Nlo+upyp9BVdP2yA9l4Y0T4VvXp5O0nGVm4W5RJsxWU=
122122
github.com/openstack-k8s-operators/manila-operator/api v0.5.1-0.20241021160008-f0273be177b4/go.mod h1:Gi9t38UJU4opGJIS55qhunX2qC4oihlVdRhn7IJhQAg=
123123
github.com/openstack-k8s-operators/mariadb-operator/api v0.5.1-0.20241028074300-17b2cf83d27e h1:rgaVwQErBFpGMS2pbB9MneshkFnzAz0LgU5Mb/YSu84=

‎config/crd/bases/core.openstack.org_openstackcontrolplanes.yaml‎

Lines changed: 51 additions & 1851 deletions
Large diffs are not rendered by default.

‎config/crd/bases/dataplane.openstack.org_openstackdataplanenodesets.yaml‎

Lines changed: 0 additions & 300 deletions
Large diffs are not rendered by default.

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/openstack-k8s-operators/lib-common/modules/ansible v0.5.0
2525
github.com/openstack-k8s-operators/lib-common/modules/certmanager v0.4.1-0.20241028071009-a8404d0ab6bb
2626
github.com/openstack-k8s-operators/lib-common/modules/common v0.5.1-0.20241028071009-a8404d0ab6bb
27-
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.0
27+
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.1-0.20241104140916-71a0e9d9766d
2828
github.com/openstack-k8s-operators/lib-common/modules/test v0.5.0
2929
github.com/openstack-k8s-operators/manila-operator/api v0.5.1-0.20241021160008-f0273be177b4
3030
github.com/openstack-k8s-operators/mariadb-operator/api v0.5.1-0.20241028074300-17b2cf83d27e

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ github.com/openstack-k8s-operators/lib-common/modules/common v0.5.1-0.2024102807
126126
github.com/openstack-k8s-operators/lib-common/modules/common v0.5.1-0.20241028071009-a8404d0ab6bb/go.mod h1:YpNTuJhDWhbXM50O3qBkhO7M+OOyRmWkNVmJ4y3cyFs=
127127
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.5.0 h1:A8bwCA5B4AyIjt0Qzg0JgvF+HrZ9OQJOrSNq9jOFDpg=
128128
github.com/openstack-k8s-operators/lib-common/modules/openstack v0.5.0/go.mod h1:djfljx3jfHqywhY3oDvPg/GLKwiFVkds6v7P7/Yg+8g=
129-
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.0 h1:iVGCAds5eVjKEoZS0KSBwYziLeLW3ZBs8PqPMrljPcg=
130-
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.0/go.mod h1:cGynoLGY9NfyIeWXI3zZ+hgZdHF3SUi8ht5ygZ8CmhI=
129+
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.1-0.20241104140916-71a0e9d9766d h1:6fA7kvhKRelVwNWxcMVe2d2lkN8MITY0OIudTBnmT+A=
130+
github.com/openstack-k8s-operators/lib-common/modules/storage v0.5.1-0.20241104140916-71a0e9d9766d/go.mod h1:tfgBeLRqmlH/NQkLPe7396rj+t0whv2wPuMb8Ttvh8w=
131131
github.com/openstack-k8s-operators/lib-common/modules/test v0.5.0 h1:rUVJUKFWQuXYQ3LPNs7wIJdka5EqUmLMT3RRpWkuqRo=
132132
github.com/openstack-k8s-operators/lib-common/modules/test v0.5.0/go.mod h1:LV0jo5etIsGyINpmB37i4oWR8zU6ApIuh7fsqGGA41o=
133133
github.com/openstack-k8s-operators/manila-operator/api v0.5.1-0.20241021160008-f0273be177b4 h1:Nlo+upyp9BVdP2yA9l4Y0T4VvXp5O0nGVm4W5RJsxWU=

‎pkg/dataplane/deployment.go‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ func (d *Deployer) addCertMounts(
317317
hash := sha256.Sum224([]byte(volumeName))
318318
volumeName = "cert" + hex.EncodeToString(hash[:])
319319
}
320-
certVolume := corev1.Volume{
320+
certVolume := storage.Volume{
321321
Name: volumeName,
322-
VolumeSource: corev1.VolumeSource{
322+
VolumeSource: storage.VolumeSource{
323323
Projected: &projectedVolumeSource,
324324
},
325325
}
@@ -353,9 +353,9 @@ func (d *Deployer) addCertMounts(
353353
hash := sha256.Sum224([]byte(volumeName))
354354
volumeName = "cacert" + hex.EncodeToString(hash[:])
355355
}
356-
cacertVolume := corev1.Volume{
356+
cacertVolume := storage.Volume{
357357
Name: volumeName,
358-
VolumeSource: corev1.VolumeSource{
358+
VolumeSource: storage.VolumeSource{
359359
Secret: &corev1.SecretVolumeSource{
360360
SecretName: service.Spec.CACerts,
361361
},
@@ -418,9 +418,9 @@ func (d *Deployer) addServiceExtraMounts(
418418
hash := sha256.Sum224([]byte(volumeName))
419419
volumeName = "cm" + hex.EncodeToString(hash[:])
420420
}
421-
volume := corev1.Volume{
421+
volume := storage.Volume{
422422
Name: volumeName,
423-
VolumeSource: corev1.VolumeSource{
423+
VolumeSource: storage.VolumeSource{
424424
ConfigMap: &corev1.ConfigMapVolumeSource{
425425
LocalObjectReference: corev1.LocalObjectReference{
426426
Name: cm.Name,
@@ -464,9 +464,9 @@ func (d *Deployer) addServiceExtraMounts(
464464
hash := sha256.Sum224([]byte(volumeName))
465465
volumeName = "sec" + hex.EncodeToString(hash[:])
466466
}
467-
volume := corev1.Volume{
467+
volume := storage.Volume{
468468
Name: volumeName,
469-
VolumeSource: corev1.VolumeSource{
469+
VolumeSource: storage.VolumeSource{
470470
Secret: &corev1.SecretVolumeSource{
471471
SecretName: sec.Name,
472472
Items: []corev1.KeyToPath{

‎pkg/dataplane/util/ansible_execution.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ func SetAeeInvMounts(
350350
}
351351

352352
func CreateVolume(ansibleEEMounts *storage.VolMounts, volumeName string, volumeMountPath string, secretName string, keyToPathKey string) {
353-
volume := corev1.Volume{
353+
volume := storage.Volume{
354354
Name: volumeName,
355-
VolumeSource: corev1.VolumeSource{
355+
VolumeSource: storage.VolumeSource{
356356
Secret: &corev1.SecretVolumeSource{
357357
SecretName: secretName,
358358
Items: []corev1.KeyToPath{

0 commit comments

Comments
 (0)