-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated kubernetes module requires protocol
in Container.ports
which is not required by spec
#52
Comments
To me this looks like an upstream Kubernetes bug. This conversation mentions some current problems with merge strategies with respect to some fields including ports: kubernetes-sigs/kustomize#3111
I think their solution still does not account for the issue at hand though. So in my opinion a hacky way to fix it is desirable. Here is a broader conversation about port related issues: kubernetes/kubernetes#105610 |
Relax requirement of required protocol in Container.ports because some upstream sources, like Prometheus charts, don't actually specify it. hall/kubenix#52
Relax requirement of required protocol in Container.ports because some upstream sources, like Prometheus charts, don't actually specify it. hall/kubenix#52
Line
kubenix/modules/generated/v1.27.nix
Line 5190 in e4d0365
protocol
key be present in all helm generated Pod specifications. For example the following kubenix resource definitionfails with the following error
It should not fail when
protocol
is missing from the ports.There are certainly other similar issues with e.g.
EphemeralContainer
which need to be addressed as well.Workaround
Currently I have just deleted the
"protocol"
fromkubenix/modules/generated/v1.27.nix
Line 5190 in e4d0365
Backstory
I ran into this issue while trying to deploy prometheus as a Helm chart. After a bit of debugging I noticed that the prometheus chart doesn't specify the port protocol: https://github.com/prometheus-community/helm-charts/blob/d628ebad62f119ef2985319a5f7a1dd5bee1863b/charts/prometheus/templates/deploy.yaml#L157
The text was updated successfully, but these errors were encountered: