-
Notifications
You must be signed in to change notification settings - Fork 919
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
kubectl diff fails to detect differences in Service objects #1601
Comments
Have you verified that the |
@jrcast have you checked if kubectl command executed successfully without error ? |
/remove-kind bug |
/kind support |
Can confirm this happens when you make changes using If you use the
But if you use that flag, it's going to add the /remove-kind support |
/triage accepted |
Hello @ardaguclu - Can i pick this up? |
What happened:
kubectl diff
is not detecting diffs between a service's manifest file and the modified service object in Kubernetes. I tried both client-side or server-side mode without success.What you expected to happen:
kubectl diff
identifies the diffHow to reproduce:
kubectl create -f my-svc.yaml
. Wheremy-svc.yaml
is:kubectl edit
, modify the K8s service. i.e. Add an extra port.kubectl diff -f my-svc.yaml # or kubectl diff -f my-svc.yaml --server-side --force-conflicts
Anything else we need to know?:
Environment:
kubectl version
): 1.27 on both server/client. Also tried 1.30 with same results.cat /etc/os-release
): Ubuntu 22.04.4 LTSThe text was updated successfully, but these errors were encountered: