Skip to content

Consume common templates from lib-common#648

Open
fmount wants to merge 2 commits into
openstack-k8s-operators:mainfrom
fmount:templates
Open

Consume common templates from lib-common#648
fmount wants to merge 2 commits into
openstack-k8s-operators:mainfrom
fmount:templates

Conversation

@fmount
Copy link
Copy Markdown
Contributor

@fmount fmount commented May 14, 2026

The ssl.conf httpd configuration is duplicated across service operators.
This patch removes the local copy and consumes it from lib-common, via the new util.GetCommonTemplates() function introduced in openstack-k8s-operators/lib-common#694.
In generateServiceConfigs(), the common templates are rendered and merged into CustomData before calling EnsureSecrets.

Signed-off-by: Francesco Pantano <fpantano@redhat.com>
@fmount fmount requested review from abays, dprince, fultonj and stuggi May 14, 2026 15:06
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 14, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmount

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/b2b554118da942cd9c2c5d3403fb34b1

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 03m 07s
cinder-operator-kuttl FAILURE in 41m 48s
cinder-operator-tempest FAILURE in 1h 12m 12s

Use the new CommonTemplates field in the lib-common Template struct to request
common templates/files (e.g. ssl.conf) from a common location instead of calling
GetCommonTemplates() and merging into CustomData manually.

Signed-off-by: Francesco Pantano <fpantano@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant