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

✨ Pass image overrides to in-memory client #598

Merged

Conversation

Danil-Grigorev
Copy link
Member

@Danil-Grigorev Danil-Grigorev commented Sep 3, 2024

What this PR does / why we need it:

This change allows to pass images variable overrides to a local clusterctl.yaml file, allowing a granular control on default image sources for the provider installations.

Added tests for existing overrides functionality.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 3, 2024
Copy link

netlify bot commented Sep 3, 2024

Deploy Preview for kubernetes-sigs-cluster-api-operator ready!

Name Link
🔨 Latest commit 0745be4
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-cluster-api-operator/deploys/66d6e2c87ebe9d0008a69abb
😎 Deploy Preview https://deploy-preview-598--kubernetes-sigs-cluster-api-operator.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 3, 2024
@Danil-Grigorev Danil-Grigorev force-pushed the clusterctl-image-overrides branch from 96ea095 to dbd65c3 Compare September 3, 2024 09:57
@Danil-Grigorev Danil-Grigorev marked this pull request as ready for review September 3, 2024 09:57
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 3, 2024
@Danil-Grigorev Danil-Grigorev force-pushed the clusterctl-image-overrides branch 2 times, most recently from 6d7ea16 to f0e66c3 Compare September 3, 2024 10:05
- Add tests verifying functionality of overrides client for image or
  provider URL resolve

Signed-off-by: Danil-Grigorev <[email protected]>
@Danil-Grigorev Danil-Grigorev force-pushed the clusterctl-image-overrides branch from f0e66c3 to 0745be4 Compare September 3, 2024 10:19
@Danil-Grigorev Danil-Grigorev changed the title Pass image overrides to in-memory client ✨ Pass image overrides to in-memory client Sep 3, 2024
Copy link
Contributor

@alexander-demicev alexander-demicev left a comment

Choose a reason for hiding this comment

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

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexander-demicev

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 3, 2024
Copy link
Member

@furkatgofurov7 furkatgofurov7 left a comment

Choose a reason for hiding this comment

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

/lgtm


if p.overridesClient != nil {
providers, err := p.overridesClient.Providers().List()
if err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 3, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 9be3b8eeee41210c017631b98234bf92b0c85033

@k8s-ci-robot k8s-ci-robot merged commit 75b4f46 into kubernetes-sigs:main Sep 3, 2024
15 of 18 checks passed
hardys added a commit to hardys/charts that referenced this pull request Sep 3, 2024
The current clusterctl override is not working ref this fix:
kubernetes-sigs/cluster-api-operator#598
hardys added a commit to hardys/charts that referenced this pull request Sep 3, 2024
The current clusterctl override is not working ref this fix:
kubernetes-sigs/cluster-api-operator#598
hardys added a commit to suse-edge/charts that referenced this pull request Sep 4, 2024
The current clusterctl override is not working ref this fix:
kubernetes-sigs/cluster-api-operator#598
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants