Skip to content

Instantly share code, notes, and snippets.

@pmuir
Created July 25, 2019 19:53
Show Gist options
  • Save pmuir/214c4c34208e10f35f70e08c749d9c0f to your computer and use it in GitHub Desktop.
Save pmuir/214c4c34208e10f35f70e08c749d9c0f to your computer and use it in GitHub Desktop.
error: upgrading helm chart '.': failed to run 'kubectl apply --recursive -f /var/folders/qr/h482727j4dvc7qphqfkvws1r0000gn/T/helm-template-workdir-095494330/jxing/output/namespaces/kube-system -l jenkins.io/chart-release=jxing --namespace kube-system --wait --validate=false' command in directory '/var/folders/qr/h482727j4dvc7qphqfkvws1r0000gn/T/jx-helm-apply-728712013/jxing', output: 'clusterrole.rbac.authorization.k8s.io/jxing-nginx-ingress unchanged
clusterrolebinding.rbac.authorization.k8s.io/jxing-nginx-ingress unchanged
configmap/jxing-nginx-ingress-controller unchanged
deployment.extensions/jxing-nginx-ingress-controller configured
deployment.extensions/jxing-nginx-ingress-default-backend configured
role.rbac.authorization.k8s.io/jxing-nginx-ingress unchanged
rolebinding.rbac.authorization.k8s.io/jxing-nginx-ingress unchanged
serviceaccount/jxing-nginx-ingress unchanged
Error from server (Invalid): error when applying patch:
{"spec":{"clusterIP":""}}
to:
Resource: "/v1, Resource=services", GroupVersionKind: "/v1, Kind=Service"
Name: "jxing-nginx-ingress-controller", Namespace: "kube-system"
Object: &{map["spec":map["selector":map["app":"nginx-ingress" "component":"controller" "release":"jxing"] "clusterIP":"10.55.242.175" "type":"LoadBalancer" "sessionAffinity":"None" "externalTrafficPolicy":"Cluster" "ports":[map["port":'P' "targetPort":"http" "nodePort":'\u754c' "name":"http" "protocol":"TCP"] map["name":"https" "protocol":"TCP" "port":'\u01bb' "targetPort":"https" "nodePort":'\u7edf']]] "status":map["loadBalancer":map["ingress":[map["ip":"35.187.83.181"]]]] "kind":"Service" "apiVersion":"v1" "metadata":map["selfLink":"/api/v1/namespaces/kube-system/services/jxing-nginx-ingress-controller" "uid":"ee857c26-af0c-11e9-a9d7-42010a840009" "resourceVersion":"2454366" "creationTimestamp":"2019-07-25T18:49:28Z" "labels":map["component":"controller" "heritage":"Tiller" "jenkins.io/chart-release":"jxing" "jenkins.io/namespace":"kube-system" "jenkins.io/version":"1" "release":"jxing" "app":"nginx-ingress" "chart":"nginx-ingress-1.3.1"] "annotations":map["jenkins.io/chart":"jxing" "kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{\"jenkins.io/chart\":\"jxing\"},\"labels\":{\"app\":\"nginx-ingress\",\"chart\":\"nginx-ingress-1.3.1\",\"component\":\"controller\",\"heritage\":\"Tiller\",\"jenkins.io/chart-release\":\"jxing\",\"jenkins.io/namespace\":\"kube-system\",\"jenkins.io/version\":\"1\",\"release\":\"jxing\"},\"name\":\"jxing-nginx-ingress-controller\",\"namespace\":\"kube-system\"},\"spec\":{\"clusterIP\":\"\",\"ports\":[{\"name\":\"http\",\"port\":80,\"protocol\":\"TCP\",\"targetPort\":\"http\"},{\"name\":\"https\",\"port\":443,\"protocol\":\"TCP\",\"targetPort\":\"https\"}],\"selector\":{\"app\":\"nginx-ingress\",\"component\":\"controller\",\"release\":\"jxing\"},\"type\":\"LoadBalancer\"}}\n"] "name":"jxing-nginx-ingress-controller" "namespace":"kube-system"]]}
for: "/var/folders/qr/h482727j4dvc7qphqfkvws1r0000gn/T/helm-template-workdir-095494330/jxing/output/namespaces/kube-system/jxing/charts/nginx-ingress/templates/part0-controller-service.yaml": Service "jxing-nginx-ingress-controller" is invalid: spec.clusterIP: Invalid value: "": field is immutable
Error from server (Invalid): error when applying patch:
{"spec":{"clusterIP":""}}
to:
Resource: "/v1, Resource=services", GroupVersionKind: "/v1, Kind=Service"
Name: "jxing-nginx-ingress-default-backend", Namespace: "kube-system"
Object: &{map["kind":"Service" "apiVersion":"v1" "metadata":map["namespace":"kube-system" "selfLink":"/api/v1/namespaces/kube-system/services/jxing-nginx-ingress-default-backend" "uid":"eea8b51b-af0c-11e9-a9d7-42010a840009" "resourceVersion":"2454182" "creationTimestamp":"2019-07-25T18:49:29Z" "labels":map["jenkins.io/namespace":"kube-system" "jenkins.io/version":"1" "release":"jxing" "app":"nginx-ingress" "chart":"nginx-ingress-1.3.1" "component":"default-backend" "heritage":"Tiller" "jenkins.io/chart-release":"jxing"] "annotations":map["kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{\"jenkins.io/chart\":\"jxing\"},\"labels\":{\"app\":\"nginx-ingress\",\"chart\":\"nginx-ingress-1.3.1\",\"component\":\"default-backend\",\"heritage\":\"Tiller\",\"jenkins.io/chart-release\":\"jxing\",\"jenkins.io/namespace\":\"kube-system\",\"jenkins.io/version\":\"1\",\"release\":\"jxing\"},\"name\":\"jxing-nginx-ingress-default-backend\",\"namespace\":\"kube-system\"},\"spec\":{\"clusterIP\":\"\",\"ports\":[{\"name\":\"http\",\"port\":80,\"protocol\":\"TCP\",\"targetPort\":\"http\"}],\"selector\":{\"app\":\"nginx-ingress\",\"component\":\"default-backend\",\"release\":\"jxing\"},\"type\":\"ClusterIP\"}}\n" "jenkins.io/chart":"jxing"] "name":"jxing-nginx-ingress-default-backend"] "spec":map["ports":[map["name":"http" "protocol":"TCP" "port":'P' "targetPort":"http"]] "selector":map["app":"nginx-ingress" "component":"default-backend" "release":"jxing"] "clusterIP":"10.55.249.131" "type":"ClusterIP" "sessionAffinity":"None"] "status":map["loadBalancer":map[]]]}
for: "/var/folders/qr/h482727j4dvc7qphqfkvws1r0000gn/T/helm-template-workdir-095494330/jxing/output/namespaces/kube-system/jxing/charts/nginx-ingress/templates/part0-default-backend-service.yaml": Service "jxing-nginx-ingress-default-backend" is invalid: spec.clusterIP: Invalid value: "": field is immutable'
error: failed to interpret pipeline file jenkins-x.yml: failed to run '/bin/sh -c jx step helm apply --boot --remote --no-vault --name jxing' command in directory 'systems/jxing', output: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment