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

Ignore .spec.state of ControlPlaneMachineSet #84

Closed
wants to merge 2 commits into from

Conversation

DebakelOrakel
Copy link
Contributor

@DebakelOrakel DebakelOrakel commented Jun 18, 2024

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Link this PR to related issues or PRs.

@DebakelOrakel DebakelOrakel requested a review from a team as a code owner June 18, 2024 12:18
@simu
Copy link
Member

simu commented Jun 18, 2024

Why ignore this instead of configuring it properly via hierarchy?

@DebakelOrakel
Copy link
Contributor Author

DebakelOrakel commented Jun 18, 2024

Yeah It might makes sense to just set it to Active, sadly it can't be changed bc it is immutable :D
#82 (comment)

On the other hand it might make sense to leave it as Inactive as most of the fields are immutable as long as it is set to Active.
Otherwise it might be very hard to manage the machineset, pausing ArgoCD etc.

@simu
Copy link
Member

simu commented Jun 18, 2024

The following config (e.g. in a cluster file in a tenant repo) seems to set spec.state=Active just fine in the catalog repo:

  openshift4_nodes:
    nodeGroups:
      master:
        replicas: 3
        spec:
          state: Active

As far as I'm aware the field in the resource isn't immutable, so I don't see a real reason to ignore diffs for it.

@DebakelOrakel
Copy link
Contributor Author

I tested it and:

  openshift4_nodes:
    nodeGroups:
      master:
        replicas: 3
        state: 'Active'

does not change a thing, but thats probably due to incompetence on my side 🤦‍♂️

@DebakelOrakel
Copy link
Contributor Author

As far as I'm aware the field in the resource isn't immutable, so I don't see a real reason to ignore diffs for it.

You are right, this only applies to vSphere specific parameters

@simu
Copy link
Member

simu commented Jun 18, 2024

I tested it and:

  openshift4_nodes:
    nodeGroups:
      master:
        replicas: 3
        state: 'Active'

does not change a thing, but thats probably due to incompetence on my side 🤦‍♂️

Looks like you're missing a spec in there if you compare it to the snippet I posted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants