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

[release-4.14] OCPBUGS-32136: Enable kubelet ECR authentiation #2134

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

sebsoto
Copy link
Contributor

@sebsoto sebsoto commented Apr 11, 2024

Fixes a bug where authentication with ECR registries through the kubelet was no longer possible.

Manual cherry-pick of #2119

Builds and ships ecr-credential-provider.exe
Refactors how files are collected from ignition. This is to make the
function less fragile, and allow for special casing to be added to
certain files.
This commit copies the CredentialProviderConfig present in ignition to
each Windows instance. It also changes kubelet args to give a path for
the config, as well as a directory for any credential provider binaries
referenced by the config.

On AWS ecr-credential-provider.exe will be copied to the instance,
enabling authentication to ECR registries, as long as the cluster admin
has changed the worker node IAM role to allow for this.
go mod tidy && go mod vendor
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 11, 2024
Copy link
Contributor

openshift-ci bot commented Apr 11, 2024

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

@sebsoto sebsoto marked this pull request as ready for review April 11, 2024 17:43
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 11, 2024
@sebsoto
Copy link
Contributor Author

sebsoto commented Apr 11, 2024

/jira cherrypick OCPBUGS-31635

@openshift-ci-robot
Copy link

@sebsoto: Jira Issue OCPBUGS-31635 has been cloned as Jira Issue OCPBUGS-32136. Will retitle bug to link to clone.
/retitle OCPBUGS-32136: Enable kubelet ECR authentiation

In response to this:

/jira cherrypick OCPBUGS-31635

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot changed the title Enable kubelet ECR authentiation OCPBUGS-32136: Enable kubelet ECR authentiation Apr 11, 2024
@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 11, 2024
@openshift-ci-robot
Copy link

@sebsoto: This pull request references Jira Issue OCPBUGS-32136, which is invalid:

  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required"

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Fixes a bug where authentication with ECR registries through the kubelet was no longer possible.

Manual cherry-pick of #2119

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 11, 2024
@sebsoto sebsoto changed the title OCPBUGS-32136: Enable kubelet ECR authentiation [release-4.14] OCPBUGS-32136: Enable kubelet ECR authentiation Apr 11, 2024
@sebsoto
Copy link
Contributor Author

sebsoto commented Apr 11, 2024

/approve cancel

@openshift-ci openshift-ci bot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 11, 2024
@sebsoto
Copy link
Contributor Author

sebsoto commented Apr 11, 2024

/jira refresh

@openshift-ci-robot
Copy link

@sebsoto: An error was encountered updating to the POST state for bug OCPBUGS-32136 on the Jira server at https://issues.redhat.com/. No known errors were detected, please see the full error message for details.

Full error message. No response returned: Post "https://issues.redhat.com/rest/api/2/issue/15937176/transitions": POST https://issues.redhat.com/rest/api/2/issue/15937176/transitions giving up after 5 attempt(s)

Please contact an administrator to resolve this issue, then request a bug refresh with /jira refresh.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@sebsoto
Copy link
Contributor Author

sebsoto commented Apr 11, 2024

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 11, 2024
@openshift-ci-robot
Copy link

@sebsoto: This pull request references Jira Issue OCPBUGS-32136, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.z) matches configured target version for branch (4.14.z)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note text is set and does not match the template
  • dependent bug Jira Issue OCPBUGS-31635 is in the state Verified, which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-31635 targets the "4.15.z" version, which is one of the valid target versions: 4.15.0, 4.15.z
  • bug has dependents

Requesting review from QA contact:
/cc @rrasouli

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested a review from rrasouli April 11, 2024 18:13
@sebsoto
Copy link
Contributor Author

sebsoto commented Apr 12, 2024

/test images

@sebsoto
Copy link
Contributor Author

sebsoto commented Apr 12, 2024

/test remaining-required

@mansikulkarni96
Copy link
Member

/approve

Copy link
Contributor

openshift-ci bot commented Apr 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mansikulkarni96

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 12, 2024
@saifshaikh48
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 12, 2024
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 38c45b5 and 2 for PR HEAD 95401e6 in total

@sebsoto
Copy link
Contributor Author

sebsoto commented Apr 15, 2024

/retest-required

@sebsoto
Copy link
Contributor Author

sebsoto commented Apr 18, 2024

/test nutanix-e2e-operator

Copy link
Contributor

openshift-ci bot commented Apr 18, 2024

@sebsoto: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 84e2aff into openshift:release-4.14 Apr 18, 2024
16 checks passed
@openshift-ci-robot
Copy link

@sebsoto: Jira Issue OCPBUGS-32136: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-32136 has been moved to the MODIFIED state.

In response to this:

Fixes a bug where authentication with ECR registries through the kubelet was no longer possible.

Manual cherry-pick of #2119

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

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. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants