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

KIM Integration - shoot name and networking for basic plans #951

Merged

Conversation

jaroslaw-pieszka
Copy link
Contributor

@jaroslaw-pieszka jaroslaw-pieszka commented Jul 25, 2024

Description

Changes proposed in this pull request:

  • Shoot name set for all plans
  • Networking set for basic plans (Preview, AWS, GCP, Azure)
  • Test assertions for networking added
  • Control Plane Failure Tolerance

Related issue(s)

#905

@jaroslaw-pieszka jaroslaw-pieszka requested a review from a team as a code owner July 25, 2024 13:02
@jaroslaw-pieszka jaroslaw-pieszka self-assigned this Jul 25, 2024
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. labels Jul 25, 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/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 25, 2024
@jaroslaw-pieszka jaroslaw-pieszka added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/enhancement Categorizes issue or PR as related to modifying or improving an existing feature and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cla: yes Indicates the PR's author has signed the CLA. labels Jul 25, 2024
@kyma-bot kyma-bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cla: yes Indicates the PR's author has signed the CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 25, 2024
simple logic for failure tolerance, to be validated

TODO added

failure tolerance set

assertion for tolerance

networking set

asserting Networking
@jaroslaw-pieszka jaroslaw-pieszka force-pushed the networking-for-basic-plans branch from 2c11fd8 to 7698d6b Compare July 26, 2024 11:44
@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 26, 2024

var failureTolerance *gardener.HighAvailability
if s.config.ControlPlaneFailureTolerance == string(gardener.FailureToleranceTypeZone) {
failureTolerance = &gardener.HighAvailability{
Copy link
Member

Choose a reason for hiding this comment

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

Can we shorten this method and only set "Type" field in the if block?

Copy link
Contributor Author

@jaroslaw-pieszka jaroslaw-pieszka Jul 26, 2024

Choose a reason for hiding this comment

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

Which form is easier to read is highly subjective.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the next commit

}

return imv1.Networking{
Pods: DefaultIfParamNotSet(networking.DefaultPodsCIDR, networkingParams.PodsCidr),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't get you question.


failureType := gardener.FailureToleranceTypeZone
if s.config.ControlPlaneFailureTolerance != string(gardener.FailureToleranceTypeZone) {
failureType = gardener.FailureToleranceTypeNode
Copy link
Member

Choose a reason for hiding this comment

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

Can we change name to toleranceType?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed.

@kyma-bot kyma-bot added the lgtm Looks good to me! label Jul 26, 2024
@ralikio ralikio merged commit e1d30f3 into kyma-project:main Jul 26, 2024
24 checks passed
@jaroslaw-pieszka jaroslaw-pieszka deleted the networking-for-basic-plans branch August 7, 2024 07:44
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. kind/enhancement Categorizes issue or PR as related to modifying or improving an existing feature lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants