Skip to content
Closed
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions openapi/generated_openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -29375,6 +29375,10 @@
"managementState"
],
"properties": {
"imageRegistryAuthTokenType": {
"description": "imageRegistryAuthTokenType directs the openshift-controller-manager to use either a legacy,(unbound, long-lived) service acccount tokens or a bound service account token when generating image pull secrets for the integrated image registry.",
"type": "string"
},
"logLevel": {
"description": "logLevel is an intent based logging for an overall component. It does not give fine grained control, but it is a simple way to manage coarse grained logging choices that operators have to interpret for their operands.\n\nValid values are: \"Normal\", \"Debug\", \"Trace\", \"TraceAll\". Defaults to \"Normal\".",
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ spec:
type: object
spec:
properties:
imageRegistryAuthTokenType:
default: Bound
description: imageRegistryAuthTokenType directs the openshift-controller-manager
to use either a legacy,(unbound, long-lived) service acccount tokens
or a bound service account token when generating image pull secrets
for the integrated image registry.
enum:
- Legacy
- Bound
type: string
logLevel:
default: Normal
description: "logLevel is an intent based logging for an overall component.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ tests:
apiVersion: operator.openshift.io/v1
kind: OpenShiftControllerManager
spec:
imageRegistryAuthTokenType: Bound
logLevel: Normal
operatorLogLevel: Normal
15 changes: 15 additions & 0 deletions operator/v1/types_openshiftcontrollermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,23 @@ type OpenShiftControllerManager struct {

type OpenShiftControllerManagerSpec struct {
OperatorSpec `json:",inline"`

// imageRegistryAuthTokenType directs the openshift-controller-manager to use either a
// legacy,(unbound, long-lived) service acccount tokens or a bound service account
// token when generating image pull secrets for the integrated image registry.
// +kubebuilder:default=Bound
// +kubebuilder:validation:Enum=Legacy;Bound
// +optional
ImageRegistryAuthTokenType ServiceAccountTokenType `json:"imageRegistryAuthTokenType,omitempty"`
}

type ServiceAccountTokenType string

const (
ServiceAccountLegacyTokenType ServiceAccountTokenType = "Legacy"
ServiceAccountBoundTokenType ServiceAccountTokenType = "Bound"
)

type OpenShiftControllerManagerStatus struct {
OperatorStatus `json:",inline"`
}
Expand Down
8 changes: 8 additions & 0 deletions operator/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.