You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now perform helm upgrade without keeping testfile in helm directory and observe secret data.
[Output truncated ]
$ helm upgrade test-nginx nginx/ --debug
upgrade.go:155: [debug] preparing upgrade for test-nginx
upgrade.go:163: [debug] performing update for test-nginx
upgrade.go:356: [debug] creating upgraded release for test-nginx
...
client.go:684: [debug] Looks like there are no changes for Secret "data-empty-secret"
client.go:693: [debug] Patch Secret "data-conditional-secret" in namespace test-system
client.go:684: [debug] Looks like there are no changes for Role "web-access"
client.go:684: [debug] Looks like there are no changes for RoleBinding "web-view"
client.go:693: [debug] Patch StatefulSet "web" in namespace test-system
After helm upgrade observe secret data in data-empty-secret is still present.
Now in above behavior it has been observed that secret data is lost after helm upgrade if updated via helm chart ( in case data-conditional-secret ) of while it still in secret (data-empty-secret) persists if data is updated by kubectl patch command.
Also can observe from helm upgrade logs helm consider no change in secret if patched by kubectl patch command.
client.go:684: [debug] Looks like there are no changes for Secret "data-empty-secret"
client.go:693: [debug] Patch Secret "data-conditional-secret" in namespace test-system
Please can you suggest is it a valid behavior of helm chart to make data persist if data updated by kubectl patch command.
The text was updated successfully, but these errors were encountered:
$ helm install test-nginx nginx/
After helm install observe secret data in data-empty-secret is not present.
After helm install observe secret data in data-conditional-secret.
[Output truncated ]
After helm upgrade observe secret data in data-empty-secret is still present.
After helm upgrade observe secret data in data-conditional-secret is lost.
Now in above behavior it has been observed that secret data is lost after helm upgrade if updated via helm chart ( in case data-conditional-secret ) of while it still in secret (data-empty-secret) persists if data is updated by kubectl patch command.
Also can observe from helm upgrade logs helm consider no change in secret if patched by kubectl patch command.
Please can you suggest is it a valid behavior of helm chart to make data persist if data updated by kubectl patch command.
The text was updated successfully, but these errors were encountered: