Closed
Description
It appears as though the redactSecrets method is using stringData
as a behind-the-scenes crutch to print a redacted data
diff:
Lines 94 to 129 in 818e596
The issue is that if the chart being diffed uses stringData
then all those fields are completely hidden from the diff output. For example, this template:
---
apiVersion: v1
kind: Secret
metadata:
name: {{ $config.name }}
type: Opaque
stringData:
kongCredType: acl
group: inbound-traffic
otherField: |
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed sed felis id ex ultricies tempor.
shows as this in helm-diff:
my-namespace, my-name, Secret (v1) has been added:
+ # Source: secret.yaml
+ apiVersion: v1
+ kind: Secret
+ metadata:
+ name: my-name
+ type: Opaque
This effectively defeats the diffing for any secret values that do not need to be redacted.