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

Console Config & Operator Config client additions #130

Conversation

benjaminapetersen
Copy link
Contributor

@benjaminapetersen benjaminapetersen commented Feb 8, 2019

Same as #129! With new and improve release payloads! (hopefully)

  • Updatest mainfests/crd.yaml to crd-operator-config.yaml
  • Adds clients, informers for both ConsoleConfig & ConsoleOperatorConfig
  • Creates default ConsoleConfig, ConsoleOperatorConfig if either are not present
  • disables code-gen as we no longer maintain api resources in this repo

This PR clears the way for:

  • Status
    • ConsoleConfig.Status.PublicHostname
    • ConsoleOperatorConfig.Status (standard operator)
  • Spec
    • ConsoleConfig.Spec.Authentication.LogoutRedirect
    • ConsoleOperatorConfig.Spec.Customization.Brand
    • ConsoleOperatorConfig.Spec.Customization.DocumentationBaseURL

Which can be done as follow-ons.

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Feb 8, 2019
@benjaminapetersen
Copy link
Contributor Author

/assign @spadgett @jhadvig again

@openshift-ci-robot
Copy link
Contributor

@benjaminapetersen: GitHub didn't allow me to assign the following users: again.

Note that only openshift members and repo collaborators can be assigned and that issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @spadgett @jhadvig again

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.

@spadgett
Copy link
Member

spadgett commented Feb 8, 2019

I'm still not seeing the config-operator console CRD in the release payload :(

@jhadvig
Copy link
Member

jhadvig commented Feb 8, 2019

/retest

hack/test-unit.sh Show resolved Hide resolved
pkg/console/operator/operator.go Outdated Show resolved Hide resolved
@spadgett
Copy link
Member

spadgett commented Feb 8, 2019

The manifest is there!

/retest

if errors.IsNotFound(err) && CreateDefaultConsoleFlag {
return c.operatorClient.Create(c.defaultConsole())
if _, err := c.operatorConfigClient.Create(c.defaultConsoleOperatorConfig()); err != nil {
logrus.Errorf("No console operator config found. Creating. %v \n", err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@spadgett agree, this is probably better.

consoleConfig, err := c.consoleConfigClient.Get(api.ResourceName, metav1.GetOptions{})
if errors.IsNotFound(err) && CreateDefaultConsoleFlag {
if _, err := c.consoleConfigClient.Create(c.defaultConsoleConfig()); err != nil {
logrus.Errorf("No console config found. Creating. %v \n", err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

log & return the error.

@benjaminapetersen
Copy link
Contributor Author

It wasnt, then it was, then it wasn't.... Very weird

@spadgett
Copy link
Member

spadgett commented Feb 8, 2019

/retest

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: benjaminapetersen, spadgett

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [benjaminapetersen,spadgett]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@spadgett
Copy link
Member

spadgett commented Feb 8, 2019

/retest

@openshift-merge-robot openshift-merge-robot merged commit 08cc187 into openshift:master Feb 8, 2019
@benjaminapetersen benjaminapetersen deleted the client-go/config-clients branch February 9, 2019 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants