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 #1019

Closed
wants to merge 2 commits into from

Conversation

24sama
Copy link
Collaborator

@24sama 24sama commented Jan 19, 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 19, 2022
@24sama 24sama closed this Jan 20, 2022
@24sama 24sama reopened this Jan 20, 2022
Signed-off-by: 24sama <leo@kubesphere.io>
Signed-off-by: 24sama <leo@kubesphere.io>
@ks-ci-bot ks-ci-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 20, 2022
@24sama 24sama closed this Jan 20, 2022
@24sama
Copy link
Collaborator Author

24sama commented Jan 20, 2022

Reopend by #1021

@24sama 24sama deleted the bugfix branch January 20, 2022 03:19
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. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants