Skip to content

Attaching the webhook-cert emptydir mount#331

Open
noctarius wants to merge 1 commit into
mainfrom
fix-missing-webhook-cert-mount
Open

Attaching the webhook-cert emptydir mount#331
noctarius wants to merge 1 commit into
mainfrom
fix-missing-webhook-cert-mount

Conversation

@noctarius

Copy link
Copy Markdown
Collaborator

On systems without writtable /tmp, cert creation will fail otherwise.

… writtable /tmp, cert creation will fail otherwise.
@noctarius noctarius self-assigned this Jul 15, 2026
Copilot AI review requested due to automatic review settings July 15, 2026 09:37
@noctarius noctarius added operator bug Something isn't working labels Jul 15, 2026
@noctarius noctarius added this to the 26.3 milestone Jul 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Helm deployment manifest for simplyblock-operator to ensure the controller-runtime webhook serving certificate can be written at runtime even when the container is configured with readOnlyRootFilesystem: true (and /tmp is therefore not writable).

Changes:

  • Add an emptyDir volume (webhook-certs) and mount it at /tmp/k8s-webhook-server/serving-certs so webhook cert generation can succeed on read-only root filesystems.
  • Restructure volumeMounts: / volumes: blocks so the webhook cert mount is always present, while existing TLS-related mounts remain conditional.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +81 to +83
{{- if .Values.tls.enabled }}
{{- include "simplyblock.tlsVolumeMount" . | nindent 12 }}
{{- end }}
{{- end }}
Comment on lines +99 to +101
{{- if .Values.tls.enabled }}
{{- include "simplyblock.clientTlsVolume" (dict "ctx" . "clientSecret" "simplyblock-operator-client-tls") | nindent 8 }}
{{- end }}
{{- end }}

@boddumanohar boddumanohar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the comments from copilot are meaningful and make sense to implement them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working operator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants