Skip to content
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

Neat fails to remove creationTimestamp: null in deployment pod template (and maybe other templates) #64

Open
spkane opened this issue May 14, 2021 · 1 comment

Comments

@spkane
Copy link

spkane commented May 14, 2021

kubectl create deployment test --image=test --namespace test --dry-run=client -o yaml --replicas=3 | kubectl neat

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: test
  name: test
  namespace: test
spec:
  replicas: 3
  selector:
    matchLabels:
      app: test
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: test
    spec:
      containers:
      - image: test
        name: test
@itaysk
Copy link
Owner

itaysk commented May 15, 2021

Hi @spkane thanks for reporting. yes currently kubectl-neat only cleans the proper metadata at the top level, it doesn't know about other metadata items that "hide" within the pod template. I'll leave this open in case someone wants to propose a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants