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

KEB Parameter to Enforce One Region for a Shoot and a Seed #781

Closed

Conversation

ralikio
Copy link
Member

@ralikio ralikio commented May 22, 2024

Description

Changes proposed in this pull request:

  • parameter shootAndSeedSameRegion sent to provisioner,
  • parameter shootAndSeedSameRegion received from KEB input,
  • schema update.

Related issue(s)

kyma-project/kyma#18182

@ralikio ralikio requested a review from a team as a code owner May 22, 2024 14:26
@kyma-bot kyma-bot added the cla: yes Indicates the PR's author has signed the CLA. label May 22, 2024
Copy link

Add one of following labels

- kind/feature -> Use it when you want to submit a new feature

- kind/enhancement -> Use it when you modify or improve an existing feature

- kind/bug -> Use it when you fix a bug

@kyma-bot kyma-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 22, 2024
@ralikio ralikio added kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels May 22, 2024
@kyma-bot kyma-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 3, 2024

// then
require.NoError(t, err)
assert.NotNil(t, input.ClusterConfig.GardenerConfig.ShootAndSeedSameRegion)
Copy link
Contributor

Choose a reason for hiding this comment

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

You verify only if parameter is not nil, not if it is true.

@@ -288,6 +288,11 @@ func (c *FakeClient) IsShootUpgraded(runtimeID string) bool {
return found
}

func (c *FakeClient) IsSeedAndRegionValidationEnabled() bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Checking if ptr is not nil only.
What if pointer points to false?

@ralikio
Copy link
Member Author

ralikio commented Jun 5, 2024

@ralikio ralikio closed this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/feature Categorizes issue or PR as related to a new feature. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants