Skip to content

fix: address a RO directory issue in templates#706

Merged
michaelawyu (michaelawyu) merged 2 commits into
kubefleet-dev:mainfrom
michaelawyu:fix/chart-err-with-improved-security-context
May 13, 2026
Merged

fix: address a RO directory issue in templates#706
michaelawyu (michaelawyu) merged 2 commits into
kubefleet-dev:mainfrom
michaelawyu:fix/chart-err-with-improved-security-context

Conversation

@michaelawyu

Copy link
Copy Markdown
Member

Description of your changes

This PR addresses an issue which will cause agent to fail upon startup when using self-signed certs with the newly improved security context setup.

I have:

How has this code been tested

NA

Special notes for your reviewer

NA

Signed-off-by: michaelawyu <chenyu1@microsoft.com>
Signed-off-by: michaelawyu <chenyu1@microsoft.com>
@codecov

codecov Bot commented May 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

# This path must match FleetWebhookCertDir in pkg/webhook/webhook.go
mountPath: /tmp/k8s-webhook-server/serving-certs
{{- if .Values.useCertManager }}
readOnly: true

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'm assuming since we certManager which generates certs in this flow we make this volume read only and when we don't since we clear the directory and write the certs, we can't have the readOnly field down below ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, it seems that the cause of this issue is that, with self-signed certs, we would always need write access. The readOnly field was set to false (the default) originally; the tricky part is about the mount path 😞

@michaelawyu michaelawyu (michaelawyu) merged commit ce6b31d into kubefleet-dev:main May 13, 2026
16 checks passed
@michaelawyu

Copy link
Copy Markdown
Member Author

Merging this to unblock progress -> if there's any concern, please let me know.

@michaelawyu michaelawyu (michaelawyu) deleted the fix/chart-err-with-improved-security-context branch May 13, 2026 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants