Skip to content

Force TSG ID to be string, add helm unit-tests#793

Merged
SgtCoDFish merged 3 commits intomasterfrom
tsg-id-string
Apr 22, 2026
Merged

Force TSG ID to be string, add helm unit-tests#793
SgtCoDFish merged 3 commits intomasterfrom
tsg-id-string

Conversation

@SgtCoDFish
Copy link
Copy Markdown
Contributor

This follows a similar change by @inteon in the Firefly Helm chart.

Allowing numbers can cause issues with scientific notation because of YAML's weirdness.

This PR also adds a plethora of helm unit tests - mostly, I just wanted to add a test for TSG IDs but I let claude generate a bunch more. I think the tests add some value, and it's better to have them than not.

Signed-off-by: Ashley Davis <ashley.davis@cyberark.com>
I mostly wanted to add tests for the TSG ID, but there are plenty of
tests here which are going to be useful and shouldn't cause any harm

Signed-off-by: Ashley Davis <ashley.davis@cyberark.com>
- it: should set default minAvailable when no disruption values are set
set:
config.clusterName: test-cluster
config.tsgID: "123456"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmmm, for enterprise-issuer and distributed-issuer we were using "tsgid" and "clientId" intead of "tsgID" and "clientID". We might have to switch ....

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(unrelated to this PR)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out - definitely worth thinking about. Since the old venafi-kubernetes-agent chart supported clientId I've added support for that form in the latest commit I've pushed.

This allows easier migration from the old chart, while
also allowing a more consistent style with initialisms

Signed-off-by: Ashley Davis <ashley.davis@cyberark.com>
@SgtCoDFish SgtCoDFish merged commit fa2f29d into master Apr 22, 2026
5 checks passed
@SgtCoDFish SgtCoDFish deleted the tsg-id-string branch April 22, 2026 12:30
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

Successfully merging this pull request may close these issues.

2 participants