Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Populate all imageRepository fields in TKR_DATA values (#4298) #4396

Merged
merged 6 commits into from
Feb 17, 2023

Conversation

imikushin
Copy link
Contributor

imageRepository fields in TKR.spec.kubernetes.{etcd,pause,coredns, kube-vip} can be empty. In this case, the clients should be defaulting to TKR.spec.kubernetes.imageRepository.

This change allows to simplify ClusterClass JSON patches doing this: they can now assume imageRepository fields in TKR_DATA values are non-empty and have the correct value.

Signed-off-by: Ivan Mikushin imikushin@vmware.com
(cherry picked from commit 6cdbd30)

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #

Describe testing done for PR

Release note


Additional information

Special notes for your reviewer

`imageRepository` fields in `TKR.spec.kubernetes.{etcd,pause,coredns,
kube-vip}` can be empty. In this case, the clients should be defaulting
to `TKR.spec.kubernetes.imageRepository`.

This change allows to simplify ClusterClass JSON patches doing this:
they can now assume imageRepository fields in TKR_DATA values are
non-empty and have the correct value.

Signed-off-by: Ivan Mikushin <imikushin@vmware.com>
(cherry picked from commit 6cdbd30)
@codecov
Copy link

codecov bot commented Feb 15, 2023

Codecov Report

❗ No coverage uploaded for pull request base (release-0.28@6ec59fb). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             release-0.28    #4396   +/-   ##
===============================================
  Coverage                ?   48.72%           
===============================================
  Files                   ?      482           
  Lines                   ?    47102           
  Branches                ?        0           
===============================================
  Hits                    ?    22949           
  Misses                  ?    21981           
  Partials                ?     2172           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@imikushin imikushin added the ok-to-merge PRs should be labelled with this before merging label Feb 15, 2023
@imikushin imikushin merged commit 1253ee5 into release-0.28 Feb 17, 2023
@imikushin imikushin deleted the cherry-pick-release-0.28-TKG-17030 branch February 17, 2023 20:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-not-required ok-to-merge PRs should be labelled with this before merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants