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

Support the ArtifactModule for authorized pull images #1021

Merged
merged 1 commit into from Jan 20, 2022

Conversation

24sama
Copy link
Collaborator

@24sama 24sama commented Jan 20, 2022

What does this PR do?

Support the ArtifactModule for authorized pull images.

The manifest file adds a new field to configure that, for example:

spec:
  images:
  - docker.io/calico/cni:v3.20.0
  - docker.io/calico/kube-controllers:v3.20.0
  - localhost:443/calico/node:v3.20.0
  - localhost:443/calico/pod2daemon-flexvol:v3.20.0
  - dockerhub.kubekey.local/coredns/coredns:1.8.0
  - dockerhub.kubekey.local/kubesphere/k8s-dns-node-cache:1.15.12
  - dockerhub.kubekey.local/kubesphere/kube-apiserver:v1.21.5
  - dockerhub.kubekey.local/kubesphere/kube-controller-manager:v1.21.5
  - dockerhub.kubekey.local/kubesphere/kube-proxy:v1.21.5
  - dockerhub.kubekey.local/kubesphere/kube-scheduler:v1.21.5
  registry:
    auths:
      "dockerhub.kubekey.local":
        username: admin
        password: Harbor12345
      "localhost:443":
        username: admin
        password: Harbor12345
      "registry-1.docker.io":
        username : "xxx"
        password : "***"

kk will select the corresponding authorization for pulling that image based on the repo value in the full name of the image.

@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 24sama

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

@ks-ci-bot ks-ci-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 20, 2022
Signed-off-by: 24sama <leo@kubesphere.io>
@pixiake
Copy link
Collaborator

pixiake commented Jan 20, 2022

/lgtm

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 20, 2022
@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: eefee3eb817a726e0d40c013b1d3868d46f9a327

@ks-ci-bot ks-ci-bot merged commit af3e0e7 into kubesphere:master Jan 20, 2022
@24sama
Copy link
Collaborator Author

24sama commented Jan 20, 2022

/cherrypick release-2.0

@ks-ci-bot
Copy link
Collaborator

@24sama: new pull request created: #1023

In response to this:

/cherrypick release-2.0

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.

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. lgtm Indicates that a PR is ready to be merged. 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.

None yet

3 participants