Skip to content

Commit d99ae79

Browse files
committed
oauth controllers: add doc about controller actions to each
1 parent a418b49 commit d99ae79

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

pkg/console/controllers/oauthclients/oauthclients.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ import (
3636
secretsub "github.com/openshift/console-operator/pkg/console/subresource/secret"
3737
)
3838

39+
// oauthClientsController:
40+
//
41+
// updates:
42+
// - oauthclient.oauth.openshift.io/console (created by CVO)
43+
// writes:
44+
// - consoles.operator.openshift.io/cluster .status.conditions:
45+
// - type=OAuthClientSyncProgressing
46+
// - type=OAuthClientSyncDegraded
3947
type oauthClientsController struct {
4048
oauthClient oauthv1client.OAuthClientsGetter
4149
operatorClient v1helpers.OperatorClient
@@ -47,8 +55,6 @@ type oauthClientsController struct {
4755
routesLister routev1listers.RouteLister
4856
ingressConfigLister configv1lister.IngressLister
4957
targetNSSecretsLister corev1listers.SecretLister
50-
51-
authStatusHandler *status.AuthStatusHandler
5258
}
5359

5460
func NewOAuthClientsController(

pkg/console/controllers/oauthclientsecret/oauthclientsecret.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ import (
3636
// - None - do nothing
3737
//
3838
// The secret written is 'openshift-console/console-oauth-config' in .Data['clientSecret']
39+
//
40+
// ==========
41+
//
42+
// writes:
43+
// - secrets.console-oauth-config -n openshift-console .Data['clientSecret']
44+
// - consoles.operator.openshift.io/cluster .status.conditions:
45+
// - type=OAuthClientSecretSyncProgressing
46+
// - type=OAuthClientSecretSyncDegraded
3947
type oauthClientSecretController struct {
4048
operatorClient v1helpers.OperatorClient
4149
secretsClient corev1clients.SecretsGetter

pkg/console/controllers/oidcsetup/oidcsetup.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,22 @@ import (
3333
utilsub "github.com/openshift/console-operator/pkg/console/subresource/util"
3434
)
3535

36+
// oidcSetupController:
37+
//
38+
// writes:
39+
// - authentication.config.openshift.io/cluster .status.oidcClients:
40+
// - componentName=console
41+
// - componentNamespace=openshift-console
42+
// - currentOIDCClients
43+
// - conditions:
44+
// - Available
45+
// - Progressing
46+
// - Degraded
47+
// - consoles.operator.openshift.io/cluster .status.conditions:
48+
// - type=OIDCClientConfigProgressing
49+
// - type=OIDCClientConfigDegraded
50+
// - type=AuthStatusHandlerProgressing
51+
// - type=AuthStatusHandlerDegraded
3652
type oidcSetupController struct {
3753
operatorClient v1helpers.OperatorClient
3854

0 commit comments

Comments
 (0)