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
fix: default environmentPath for code volume mount
When a Config sets spec.code but omits spec.puppet.environmentPath, the
Server Deployment rendered a code volume with an empty mountPath, which the
Kubernetes API rejects. The Server then stays stuck in WaitingForCert and the
failure is only visible in the operator log.
The kubebuilder default on PuppetSpec.EnvironmentPath is not applied by the
API server when the whole spec.puppet object is omitted, since nested defaults
require the parent object to be present. Hand-written Configs (unlike the
openvox-stack Helm chart, which templates a default) therefore hit this.
Resolve environmentPath to /etc/puppetlabs/code/environments at render time
via a shared helper, used for both the code volume mountPath and the
puppet.conf environmentpath so the two stay consistent.
Fixes#463
0 commit comments