-
Notifications
You must be signed in to change notification settings - Fork 0
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
update existing Services fails #28
Labels
bug
Something isn't working
Comments
Reproduce Sample service: apiVersion: v1
kind: Service
metadata:
labels:
app: kickstart
name: kickstart
namespace: kickstart
spec:
ports:
- name: web
port: 80
protocol: TCP
targetPort: http
selector:
app: kickstart Apply service multiple times works kubectl apply -f kickstart.yaml
kubectl apply -f kickstart.yaml Read the service and apply again. kubectl get svc kickstart -n kickstart -o yaml | kubectl apply -f -
kubectl apply -f kickstart.yaml Now apply does not work any more. The Service "kickstart" is invalid:
* metadata.resourceVersion: Invalid value: "": must be specified for an update
* spec.clusterIP: Invalid value: "": field is immutable Remove the last-applied-configuration annotation for fix. kubectl annotate svc kickstart -n kickstart kubectl.kubernetes.io/last-applied-configuration- Now apply works again. kubectl apply -f kickstart.yaml |
Using patch would work but our NEW object is broken and lacking values:
one suggestion is "start with orig, mutate it to become new, then create a patch?" |
kwiesmueller
pushed a commit
that referenced
this issue
May 14, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used Version 1.1.4
The text was updated successfully, but these errors were encountered: