Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions config/v1/types_authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ type AuthenticationStatus struct {
// +kubebuilder:validation:MaxItems=20
// +openshift:enable:FeatureGate=ExternalOIDC
OIDCClients []OIDCClientStatus `json:"oidcClients"`

// oidcConfig is where components responsible for rolling out the
// provided OIDC configuration report the state of the OIDC configuration
// they observe.
//
// +openshift:enable:FeatureGate=ExternalOIDC
OIDCConfig *OIDCConfigStatus `json:"oidcConfig,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down Expand Up @@ -463,3 +470,15 @@ type TokenRequiredClaim struct {
// +required
RequiredValue string `json:"requiredValue"`
}

type OIDCConfigStatus struct {
// conditions represents the current state of the OIDC configuration.
//
// Known status condition types are TBD.
//
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}