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

Upgrade k8s dependencies to v0.29.3, Fix yaml parsing issues #907

Merged
merged 4 commits into from
Apr 19, 2024

Conversation

rishabh-11
Copy link
Contributor

@rishabh-11 rishabh-11 commented Apr 18, 2024

What this PR does / why we need it:
Upgrade k8s dependencies to v0.29.3. This is needed as we have upgraded controller-gen to v0.14.0 and it is not working with v0.28.2 of k8s dependencies. It also fixes the yaml parsing issue introduced due to updating controller-gen to 0.14.0

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:
IT tests pass (cc @sssash18 )

Release note:

Updated k8s dependencies to `v0.29.3`

@rishabh-11 rishabh-11 requested a review from a team as a code owner April 18, 2024 11:10
@gardener-robot gardener-robot added needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Apr 18, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 18, 2024
@gardener-robot-ci-2 gardener-robot-ci-2 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Apr 18, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Apr 18, 2024
@gardener-robot-ci-3 gardener-robot-ci-3 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Apr 19, 2024
@rishabh-11 rishabh-11 changed the title Upgrade k8s dependencies to v0.29.3 Upgrade k8s dependencies to v0.29.3, Fix yaml parsing issues Apr 19, 2024
@rishabh-11 rishabh-11 self-assigned this Apr 19, 2024

klog.V(4).Infof("calculating proportion increase for machineSet %s. ms.desired=%d, maxDeploymentSizePossible=%d, maxDeploymentSizePossibleAsPerAnnotation=%d", is.Name, deploymentReplicas, annotatedReplicas)
return integer.RoundToInt32(newISsize) - (is.Spec.Replicas)
klog.V(4).Infof("calculating proportion increase for machineSet %s. ms.desired=%d, maxDeploymentSizePossible=%d, maxDeploymentSizePossibleAsPerAnnotation=%d", is.Name, newISsize, deploymentReplicas, annotatedReplicas)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should log level be 3 or 4 here ? I mean this changed log won't be visible by default. Is that desired ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed it to 3

if f == "\n" || f == "" {
// ignore empty cases
continue
if fileAsString == "\n" || fileAsString == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should take note to add a unit-test to ParseK8sYaml in the future . This is a big function and it is difficult to judge changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ideally we should break it down to ParseK8sCRD, ParseMachineResources and ParseOtherK8sResources or something like this.

@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 19, 2024
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 19, 2024
Copy link
Contributor

@elankath elankath left a comment

Choose a reason for hiding this comment

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

optional feedback given.

@rishabh-11 rishabh-11 merged commit ff82613 into gardener:master Apr 19, 2024
8 checks passed
@rishabh-11 rishabh-11 deleted the upgrade-k8s branch April 19, 2024 08:15
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants