Skip to content

Use non-anonymous types for PCS status#614

Merged
mikkeloscar merged 2 commits into
masterfrom
pcs-status-types
Apr 3, 2024
Merged

Use non-anonymous types for PCS status#614
mikkeloscar merged 2 commits into
masterfrom
pcs-status-types

Conversation

@mikkeloscar
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

👍

@AlexanderYastrebov
Copy link
Copy Markdown
Contributor

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

@mikkeloscar
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

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

@AlexanderYastrebov
Copy link
Copy Markdown
Contributor

👍

1 similar comment
@mikkeloscar
Copy link
Copy Markdown
Contributor Author

👍

@mikkeloscar mikkeloscar merged commit b61c457 into master Apr 3, 2024
@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.

2 participants