creationTimestamp
Jump to navigation
Jump to search
resourceVersion: selfLink: uid:
kubectl get pod -n YOUR_POD -o jsonpath='{.metadata.creationTimestamp}{"\n"}'
kubectl patch --type=json -p='[{"op": "remove", "path": "metadata.creationTimestamp"}]'
kubectl patch --local -f ./namespace.yaml --type=json -p='[{"op": "remove", "path": "/metadata/creationTimestamp"}]' -o yaml > ./namespace.yaml
metadata: template.metadata kubectl apply the object has been modified; please apply your changes to the latest version and try again kubectl create --save-config
Activities[edit]
- Remove
creationTimestampfrom your manifest to avoidterrafrom planto always suggest changes. https://github.com/hashicorp/terraform-provider-kubernetes/issues/1652 - Read https://stackoverflow.com/questions/51297136/kubectl-error-the-object-has-been-modified-please-apply-your-changes-to-the-la
Related[edit]
See also[edit]
creationTimestamp, ResourceVersion, SelfLink (deprecated)- Terraform resource:
kubernetes_manifest, creationTimestamp - Manifest,
istioctl manifest, docker manifest kubectl apply [ view-last-applied ], --server-side, -k, -f, creationTimestamp, kubectl.kubernetes.io/last-applied-configuration, --validate=false
Advertising: