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

Refactor federation spec.uri to spec.uriSecret #144

Merged
merged 1 commit into from
May 27, 2021

Conversation

ChunyiLyu
Copy link
Contributor

@ChunyiLyu ChunyiLyu commented May 27, 2021

This closes #

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed
Note to contributors: remember to re-generate client set if there are any API changes

Summary Of Changes

  • federation upstream uri contains credentials and should not be saved in a CR manifest directly
  • controller does not watch the uriSecret for now; this will be addressed in a separate issue and PR that will add same function to schema replication CR as well (issue: The Operator could watch objects it depends on to reconcile #126).

Additional Context

properties:
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the TODO still meant to be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It comes from kubernetes api corev1.LocalObjectReference directly: https://github.com/kubernetes/api/blob/b0d9a0e45e6f6f7c5f18d76d950a4d19e41d1f50/core/v1/types.go#L5407

- federation upstream uri contains credentials and
should not be saved in a CR manifest directly
@ChunyiLyu ChunyiLyu merged commit 19ce30d into main May 27, 2021
@ChunyiLyu ChunyiLyu deleted the federation-uri-secret branch May 27, 2021 13:32
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