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

Remove the deprecated ToolchainCluster.Spec fields #448

Merged

Conversation

metlos
Copy link
Contributor

@metlos metlos commented Oct 2, 2024

Description

This removes all of the fields from the ToolchainCluster.Spec apart from the reference to the secret containing the kubeconfig for connecting to the cluster. The API endpoint and the operator namespace are now located as fields in the ToolchainCluster.Status.

Checks

  1. Did you run make generate target? yes

  2. Did make generate change anything in other projects (host-operator, member-operator)? yes

  3. In case of new CRD, did you the following? NA

  4. In case other projects are changed, please provides PR links.

Other related PRs that update the use sites of the removed fields:

These other related PRs can be merged independently of this PR, but care needs to be taken in the meantime not to reintroduce the usage of the removed fields until toolchain-e2e and ksctl update to the version of the api introduced in this PR.

Copy link
Contributor

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

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

Nice cleanup 👍

We need this indirection because we need to make the removal in two
steps so that the potentially different versions of the CRD in host and
member stay compatible.
Copy link

sonarcloud bot commented Oct 8, 2024

@metlos metlos merged commit ebfefc0 into codeready-toolchain:master Oct 8, 2024
3 checks passed
@metlos metlos deleted the deprecate-tc-spec-fields-contd5 branch October 9, 2024 06:43
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.

3 participants