-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
register a secret in the harness cluster (#206)
currently the `k3s` harness wires in all the necessary auth at the `containerd` level. this means the cluster can transparently pull private images without the need for cluster namespace/sa scoped secrets in the traditional sense. this has been working great, but is limited in that only `containerd` can leverage the creds when pulling the image(s). since not all applications can leverage this store, this PR also uses those same creds but stores them as a secret scoped to the cluster. the secret created is by default benign: `imagetest-registry-auth/kube-system`. everything will still use the default containerd creds to pull images. but creating this secret allows for things like `post_hooks` to copy the secret around to the various applications that may need to leverage these pull creds. the best example for this is something like crossplane, which hijacks the method of using `kubernetes.io/dockerconfigjson` type secrets to handle application level credentials.
- Loading branch information
Showing
2 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters