Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use non-anonymous types for PCS status #614

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Conversation

mikkeloscar
Copy link
Contributor

Follow up to #580 and specifically #580 (comment)

  • Drop the /bin/true || true hack in CRD generation
  • Use defined types for clients/tokens in PCS status. This is not really important for how this is used in stackset-controller, but makes the CRD generation work without errors and is more in line with the actual status.

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
@mikkeloscar
Copy link
Contributor Author

👍

@AlexanderYastrebov
Copy link
Member

Nice.
BTW do we need to generate PCS CRD at all? And do we need PCS status?

@mikkeloscar
Copy link
Contributor Author

BTW do we need to generate PCS CRD at all? And do we need PCS status?

Not really, we only have it for creating/reading the PCS, the CRD we don't need, didn't check if it's simple to exclude it from generation, but we can ofc. do that.

@AlexanderYastrebov
Copy link
Member

AlexanderYastrebov commented Mar 27, 2024

BTW do we need to generate PCS CRD at all?

Looks like it is only possible on package level via

// +kubebuilder:skip

see https://book.kubebuilder.io/reference/markers/crd

And do we need PCS status?

My idea was that if we only need to read/embed PCS spec then we may just drop PCS status field and related types.
We may also add rm -f docs/zalando.org_platformcredentialssets.yaml to the make target.

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
@mikkeloscar
Copy link
Contributor Author

I have added rm -f docs/zalando.org_platformcredentialssets.yaml.

@AlexanderYastrebov
Copy link
Member

👍

1 similar comment
@mikkeloscar
Copy link
Contributor Author

👍

@mikkeloscar mikkeloscar merged commit b61c457 into master Apr 3, 2024
7 checks passed
@mikkeloscar mikkeloscar deleted the pcs-status-types branch April 3, 2024 16:16
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.

None yet

2 participants