Skip to content

How to validate if K8s secrets are base64 encoded during helm diff?  #366

@jaythamke

Description

@jaythamke

In the K8s secret manifest I put the secret at data field as non-base64 encoded secret. The helm diff execution works great and returns exit code 2 for diff.

However for helm upgrade it failed exit code 1 because the secret data is non-base64 encoded.

I would like to know if there is a way to verify at helm diff stage that the secret is non-base64 encoded and return with 1. Or is there any plan to implement this check?

Thanks
Jayesh

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions