You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f784e54
Browse filesBrowse the repository at this point in the historyBrowse files
Enable conversion webhook plumbing for openstack-operator CRDs
Add conversion webhook and cert-manager CA-injection kustomize patches
for all openstack-operator CRDs (OpenStackControlPlane, Dataplane*,
OpenStackVersion, OpenStackClient, OpenStackBackupConfig,
OpenStackAssistant).
The infrastructure stays dormant while each CRD has a single served
version; it activates automatically once a second version is added.
config/crd/patches/:
- webhook_in_<crd>.yaml: sets spec.conversion.strategy: Webhook on
each CRD, pointing clientConfig at openstack-operator-webhook-service.
Namespace is {{ .OperatorNamespace }}, resolved at deploy time.
- cainjection_in_<crd>.yaml: stamps cert-manager.io/inject-ca-from
with the openstack-operator serving cert so caBundle is populated.
config/crd/kustomization.yaml: enable all webhook + CA-injection patches
and kustomizeconfig.yaml (needed for the CA-injection substitution to
work correctly across kustomize bases).
bindata/crds/crds.yaml: rebuilt from config/crd with the new patches.
openstack_controller.go applyCRDs: pass OperatorNamespace in the render
data so the {{ .OperatorNamespace }} template variable in crds.yaml is
resolved to the actual operator namespace at runtime.
Jira: OSPRH-30210
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
Add GitHub workflow to check CRD webhook coverage
Validates that any new CRD in config/crd/bases/ has matching webhook
and CA-injection patches referenced in kustomization.yaml.
Runs on PRs that touch CRD files or patches.
0 commit comments