Skip to content
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

Artifactory nodeSelector, affinity and tolerations seem to be indented wrongly #109

Closed
mbraku opened this issue Nov 12, 2018 · 3 comments
Closed

Comments

@mbraku
Copy link

mbraku commented Nov 12, 2018

Is this a request for help?:
No

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT

Version of Helm and Kubernetes:
Helm
Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}

Kubernetes
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.1", GitCommit:"d4ab47518836c750f9949b9e0d387f20fb92260b", GitTreeState:"clean", BuildDate:"2018-04-12T14:26:04Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.5", GitCommit:"32ac1c9073b132b8ba18aa830f46b77dcceb0723", GitTreeState:"clean", BuildDate:"2018-06-21T11:34:22Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

Which chart:
Artifactory

What happened:
Error: release artifactory-v6 failed: StatefulSet in version "v1beta2" cannot be handled as a StatefulSet: v1beta2.StatefulSet.Spec: v1beta2.StatefulSetSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.NodeSelector: ReadString: expects " or n, but found {, error found in #10 byte of ...|ssProbe":{"failureTh|..., bigger context ...|:"wait-for-db"}],"nodeSelector":{"livenessProbe":{"failureThreshold":10,"httpGet":{"path":"/artifact|...

What you expected to happen:
The installation would be successful and the nodeSelector, affinity or tolerations are set

How to reproduce it (as minimally and precisely as possible):
Try to install the artifactory chart while specifying a nodeSelector, affinity or tolerations

values.yaml:

artifactory:
  nodeSelector:
    type: "artifactory"

Anything else we need to know:
Compare


with
{{ toYaml .Values.distribution.resources | indent 10 }}

or
{{ toYaml .Values.distributor.resources | indent 10 }}

@eldada
Copy link
Contributor

eldada commented Nov 14, 2018

@mbraku - seems like you actually found a bug in other charts 😉. The indent in artifactory seems right.
As for your error, I'm not sure it's related to the indent. I think the location of the nodeSelector in the yaml is wrong. I'm looking into it.

@eldada
Copy link
Contributor

eldada commented Nov 14, 2018

@mbraku - can you confirm that pull request #119 fixes your issue?
I'll fix other charts in separate PRs.

@mbraku
Copy link
Author

mbraku commented Nov 15, 2018

Yes, it works now after pulling the new master. Thanks for the quick fix 👍

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

No branches or pull requests

2 participants