helm-diff
helm-diff copied to clipboard
Diff shows + namespace when three-way-merge is used
Hi.
My manifests in helm templates don't contain namespace in metadata because it is substituted to
{{ $.Release.Namespace }} by helm automatically.
Thus, when I use helm diff with --three-way-merge flag, I see a lot of places where namespace is going to be added.
--suppress Namespace flag doesn't help because it is related to Kind not to value in diff
Is there a way to ignore namespace field in diff?
It would be cool if it is ignored only when it doesn't exist in helm templates. But if it exists, it shouldn't be ignored.
Example:
test-test, test-test, Service (v1) has changed:
apiVersion: v1
kind: Service
metadata:
name: test-test
+ namespace: test-test
spec:
ports:
- port: 80
targetPort: 80
selector:
test-test: test-test
type: ClusterIP