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

feat: compare "same" k8s document with different apiVersion #398

Open
cwrau opened this issue Sep 4, 2024 · 0 comments
Open

feat: compare "same" k8s document with different apiVersion #398

cwrau opened this issue Sep 4, 2024 · 0 comments

Comments

@cwrau
Copy link

cwrau commented Sep 4, 2024

Would it be possible to compare the "same" document just with a different apiVersion? I often get the following;

(file level)
- 15 documents removed:
---
[...]
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
│ labels:
│ │ app.kubernetes.io/managed-by: Helm
│ │ app.kubernetes.io/name: t8s-cluster
│ │ helm.sh/chart: t8s-cluster-7.0.1
│ name: cni
│ namespace: test
spec:
│ interval: 5m
│ kubeConfig:
│ │ secretRef:
│ │ │ name: kubeconfig
│ path: /manifests
│ prune: true
│ sourceRef:
│ │ kind: GitRepository
│ │ name: calico
│ targetNamespace: kube-system
[...]
  # Source: t8s-cluster/templates/workload-cluster/cni-calico.yaml
  apiVersion: kustomize.toolkit.fluxcd.io/v1
  kind: Kustomization
  metadata:
  │ name: cni
  │ namespace: test
  │ labels:
  │ │ app.kubernetes.io/name: t8s-cluster
  │ │ helm.sh/chart: t8s-cluster-8.3.2
  │ │ app.kubernetes.io/managed-by: Helm
  spec:
  │ sourceRef:
  │ │ kind: GitRepository
  │ │ name: calico
  │ kubeConfig:
  │ │ secretRef:
  │ │ │ name: kubeconfig
  │ targetNamespace: kube-system
  │ interval: 5m
  │ prune: true
  │ path: /manifests
[...]

When in reality only the label changed (which I'd like to remove as well...)

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

1 participant