-
Notifications
You must be signed in to change notification settings - Fork 112
Add support for default key in operator boilerplate #65
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
Conversation
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enj, stlaz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
We don't necessary need to remove The only trouble I'm seeing is that now we have the constant default defined in two different places in the code, but meh. |
|
/hold cancel |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/hold I do not think we need it for beta2 and I want to mull on the shape of |
c855fb1 to
094be9c
Compare
|
New changes are detected. LGTM label has been removed. |
This change allows us to support flows where the key of the operator does not exist (i.e. in case it is deleted). It also adds generic support for defaulting the key. Signed-off-by: Monis Khan <mkhan@redhat.com>
This change makes it so that we render an empty operatorv1.Authentication on start. This is then defaulted to the managed state at runtime. A missing Authentication resource is treated as the same as an empty one. The defaults are stored once in the defaultCopyAuthenticationFunc function (they are not duplicated in any manifests). They are also applied regardless of if the resource exists in the API (any unset field means "give me the default"). Signed-off-by: Monis Khan <mkhan@redhat.com>
094be9c to
c10c8b4
Compare
|
Tested locally. Handles missing key as expected. |
|
/hold cancel |
|
/retest |
|
The code looks good, yet the logs of console suggest once again that it can't find the oauth well-known endpoint: |
Signed-off-by: Monis Khan <mkhan@redhat.com>
|
/hold I see the issue. Will address next week. |
|
@enj: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@enj: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/close |
|
@enj: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Add support for default key in operator boilerplate
This change allows us to support flows where the key of the operator
does not exist (i.e. in case it is deleted).
It also adds generic support for defaulting the key.
Signed-off-by: Monis Khan mkhan@redhat.com
Add defaulting for operatorv1.Authentication
This change makes it so that we render an empty
operatorv1.Authentication on start. This is then defaulted to the
managed state at runtime. A missing Authentication resource is
treated as the same as an empty one.
The defaults are stored once in the defaultCopyAuthenticationFunc
function (they are not duplicated in any manifests). They are also
applied regardless of if the resource exists in the API (any unset
field means "give me the default").
Signed-off-by: Monis Khan mkhan@redhat.com