Skip to content

Conversation

@mclasmeier
Copy link

@mclasmeier mclasmeier commented Jan 14, 2026

NOTE: Don't merge before ROX-29469.

New check flagging use of deprecated fields in SecuredCluster CR.

This PR pulls in StackRox CRDs, currently from the PR branch stackrox/stackrox#18494. That's also the reason for the huge size of this PR.

It depends on new deprecated:"true" Go struct tags being added to our CRD types.

This PR only focuses on SecuredCluster, but a similar check+tests for the Central PR shall follow, once this has passed review.

This is the first step towards ROX-29469, focusing on situations where the user has set deprecated fields in their CR.

A second step would be to introduce a new struct tag "hasdefault" (or similar name), which works pretty much like the "deprecated" tag.

@mclasmeier mclasmeier force-pushed the mc/stackrox-crd-checks-2 branch from b676cbf to fe0f138 Compare January 14, 2026 16:10
Moritz Clasmeier added 7 commits January 14, 2026 17:44
@mclasmeier mclasmeier force-pushed the mc/stackrox-crd-checks-2 branch from fe0f138 to 072150e Compare January 14, 2026 16:45
@mclasmeier mclasmeier changed the title New check flagging use of deprecated fields in SecuredCluster CR ROX-29469: New check flagging use of deprecated fields in SecuredCluster CR Jan 14, 2026
@mclasmeier mclasmeier marked this pull request as ready for review January 14, 2026 16:55
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.

1 participant