digitalocean / doctl Public
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
registry - generate a DOSecret operator friendly secret manifest #966
registry - generate a DOSecret operator friendly secret manifest #966
Conversation
d8f267f
to
8097b50
Compare
Looks like this integration test will need to be updated as well:
doctl/integration/registry_kubernetes_manifest_test.go
Lines 84 to 95 in 1cb9bf9
registryKubernetesManifestOutput = ` | |
apiVersion: v1 | |
data: | |
.dockerconfigjson: eyJhdXRocyI6eyJyZWdpc3RyeS5kaWdpdGFsb2NlYW4uY29tIjp7ImF1dGgiOiJZamRrTUROaE5qazBOMkl5TVRkbFptSTJaak5sWXpOaVpETTFNRFExT0RJNllqZGtNRE5oTmprME4ySXlNVGRsWm1JMlpqTmxZek5pWkRNMU1EUTFPRElLIn19fQ== | |
kind: Secret | |
metadata: | |
creationTimestamp: null | |
name: registry-my-registry | |
namespace: default | |
type: kubernetes.io/dockerconfigjson | |
` | |
) |
Unfortunately, it doesn't seem to have run in this PR. I've identified and fixed the issue preventing it from running in: #967
If you rebase on main, you'll see the failure:
|
Grammar nit, otherwise looks good from a DOKS perspective (given it passes the integration tests that Andrew fixed).
48c5c4e
to
3be8cc6
Compare
Question: Is the operator being back-filled onto existing clusters? Do we need any caveats about cluster versions in the help text?
@andrewsomething - Good point! We have backfilled the operator until |
Maybe add something like this to the help for the command?
|
3be8cc6
to
b4c7c8c
Compare
The Kubernetes secret manifest we generate makes it easy for users to pull private images into their DOKS cluster. Now that we have the dosecret-operator to make the secret available in all namespaces, generate operator friendly manifests for users to apply into their DOKS cluster. Applying the manifest generated here to a DOKS cluster is the same as doing:
cc @adamwg , @timoreimann