Difference between revisions of "CreationTimestamp"
Jump to navigation
Jump to search
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | |||
+ | [[resourceVersion]]: | ||
+ | [[selfLink]]: | ||
+ | [[Kubernetes UIDs|uid]]: | ||
+ | |||
+ | |||
+ | [[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:]] | [[metadata:]] | ||
[[template.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 == | == Activities == | ||
− | * Remove <code>creationTimestamp</code> from your [[manifest]] to avoid [[terrafrom plan]] to always suggest changes. https://github.com/hashicorp/terraform-provider-kubernetes/issues/1652 | + | * Remove <code>creationTimestamp</code> from your [[manifest]] to avoid <code>[[terrafrom plan]]</code> to 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 == | ||
+ | * <code>[[kubectl apply]]</code> | ||
== See also == | == See also == | ||
+ | * {{creationTimestamp}} | ||
* {{kubernetes_manifest}} | * {{kubernetes_manifest}} | ||
* {{Manifest}} | * {{Manifest}} | ||
− | * {{ | + | * {{kubectl apply}} |
[[Category:IT]] | [[Category:IT]] |
Latest revision as of 10:48, 12 January 2024
resourceVersion: selfLink: uid:
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
creationTimestamp
from your manifest to avoidterrafrom plan
to 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]
Advertising: