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

Helm chart parsing values not correctly #13723

Closed
exocode opened this issue May 25, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@exocode
Copy link

commented May 25, 2018

Rancher versions:
rancher/server or rancher/rancher:
rancher/agent or rancher/rancher-agent:

Infrastructure Stack versions:
healthcheck:
ipsec:
network-services:
scheduler:
kubernetes (if applicable):

Docker version: (docker version,docker info preferred)
Docker version 17.12.1-ce, build 7390fc6

Operating system and kernel: (cat /etc/os-release, uname -r preferred)

NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
Hetzner

Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node Rancher

Steps to Reproduce:
go to templates. Deploy ingress-nginx. Try to add a controller.nodeSelector
Result should be "role=edge"
My approaches:

  • "role"="edge"
  • "role":"edge"
  • role=edge
  • {"role"="edge"}
  • ["role"="edge"]
  • ["role":"edge"]

Results:
ERROR:

Kubectl apply failed. Error: Error from server (Invalid): 
error when applying patch: {"spec":{"clusterIP":""}} to: &{0xc4214c43c0 0xc420439570 nginx-ingress-ftssa nginx-ingress-ftssa-controller /tmp/app-template929640075 0xc421214cd8 0xc421214d40 843963 false} for: "/tmp/app-template929640075": 
Service "nginx-ingress-ftssa-controller" is invalid: spec.clusterIP: Invalid value: "": field is immutable Error from server (Invalid): 
error when applying patch: {"spec":{"clusterIP":""}} to: &{0xc4214c4600 0xc420172f50 nginx-ingress-ftssa nginx-ingress-ftssa-default-backend /tmp/app-template929640075 0xc421214df0 0xc421214e48 843966 false} for: "/tmp/app-template929640075": Service "nginx-ingress-ftssa-default-backend" is invalid: spec.clusterIP: Invalid value: "": 
field is immutable error validating "/tmp/app-template929640075": 
error validating data: 
ValidationError(DaemonSet.spec.template.spec.nodeSelector): invalid type for io.k8s.api.core.v1.PodSpec.nodeSelector: got "string", expected "map"; if you choose to ignore these errors, turn validation off with --validate=false : exit status 1

ValidationError(DaemonSet.spec.template.spec.nodeSelector): invalid type for io.k8s.api.core.v1.PodSpec.nodeSelector: got "string", expected "map"; if you choose to ignore these errors, turn validation off with --validate=false : exit status 1

@seanly

This comment has been minimized.

Copy link

commented May 25, 2018

controller.nodeSelector.role=edge

@seanly

This comment has been minimized.

Copy link

commented May 25, 2018

Master.NodeSelector.jenkins.io/env=test, when labes is jenkins.io/env=test;
don't use Master.NodeSelector."jenkins.io/env"=test, but helm support this syntax.
Rancher does not use helm, only helm syntax

@exocode

This comment has been minimized.

Copy link
Author

commented May 26, 2018

Thank you very much, that worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.