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

config: remove placeholder secret #793

Merged
merged 7 commits into from Apr 7, 2022
Merged

Conversation

cirocosta
Copy link
Contributor

Changes proposed by this PR

in order to make the installation of Cartographer in carvel-based
packaging easier, we used to have this secret that gets filled by
secretgen-controller as part of the set of objects shipped in the
release, but given that it's such a packaging-specific detail, here we
get rid of it favoring package-for-cartographer as the location for
doing so.

see vmware-tanzu/package-for-cartographer#23 for
the PR where that addition of a secret to the package takes place (file:
src/cartographer/config/overlays/image-pull-secret.yaml)

Release Note

  • Remove secretgen-controller placeholder secret from Cartographer release

PR Checklist

Note: Please do not remove items. Mark items as done [x] or use strikethrough if you believe they are not relevant

  • Linked to a relevant issue. Eg: Fixes #123 or Updates #123
  • Removed non-atomic or wip commits
  • Filled in the Release Note section above
  • Modified the docs to match changes

in order to make the installation of Cartographer in carvel-based
packaging easier, we used to have this secret that gets filled by
secretgen-controller as part of the set of objects shipped in the
release, but given that it's such a packaging-specific detail, here we
get rid of it favoring `package-for-cartographer` as the location for
doing so.

see vmware-tanzu/package-for-cartographer#23 for
the PR where that addition of a secret to the package takes place (file:
src/cartographer/config/overlays/image-pull-secret.yaml)

Signed-off-by: Ciro S. Costa <ciroscosta@vmware.com>
@netlify
Copy link

netlify bot commented Apr 6, 2022

Deploy Preview for elated-stonebraker-105904 canceled.

Name Link
🔨 Latest commit c8d1060
🔍 Latest deploy log https://app.netlify.com/sites/elated-stonebraker-105904/deploys/624eec7e52334e00091461c5

when installing cartographer, such object is not included anymore, so it
wouldn't show up in the list of objects that kapp is managing

Signed-off-by: Ciro S. Costa <ciroscosta@vmware.com>
@cirocosta
Copy link
Contributor Author

cirocosta commented Apr 6, 2022

uhhh hack/setup.sh when building the release that we use in the tests actually pushes to the local registry that is enforcing authentication, so e2e tests will currently fail. marking it draft until there's a fix in place.

done

@cirocosta cirocosta marked this pull request as draft April 6, 2022 13:51
Ciro S. Costa added 4 commits April 6, 2022 21:07
any carvel packaging related to cartographer now takes place under
`vmware-tanzu/package-for-cartographer`, so, get rid of this leftover.

Signed-off-by: Ciro S. Costa <ciroscosta@vmware.com>
we used to bring up the registry with authentication enabled so that we
could be sure that the packaging work was right w/ regards to providing
credentials via secretgen's placeholder secrets, but now that such
responsability has shifted towards the packaging efforts under
`vmware-tanzu/package-for-cartographer`, we can now get rid of this
requirement from this repository

Signed-off-by: Ciro S. Costa <ciroscosta@vmware.com>
with the registry used by those not requiring any more auth, we can get
rid of those credentials from the setup.

Signed-off-by: Ciro S. Costa <ciroscosta@vmware.com>
with the removal of the need for authenticating against the registry
where we publish the release of cartographer, we can now skip all the
references to the previously `hack/registry-auth` directory where a
secretexport was placed for the credentials to the local registry

Signed-off-by: Ciro S. Costa <ciroscosta@vmware.com>
@cirocosta cirocosta marked this pull request as ready for review April 7, 2022 13:32
hack/setup.sh Show resolved Hide resolved
packaging/overlays/strip-status.yaml Show resolved Hide resolved
Signed-off-by: Ciro S. Costa <ciroscosta@vmware.com>
@cirocosta cirocosta merged commit 68b5b4b into main Apr 7, 2022
@cirocosta cirocosta deleted the config/remove-placeholder-secret branch April 7, 2022 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants