Skip to content

Commit a180796

Browse files
committed
test/oauth-server-configobserver: adds a test to show which input resources are required to run the operator and the configObserver controller
1 parent cb20eca commit a180796

File tree

32 files changed

+868
-1
lines changed

32 files changed

+868
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
labels:
77
authentication.openshift.io/csr: openshift-authenticator
88
spec:
9-
request: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0KTUlJQkRUQ0J0QUlCQURCU01WQXdUZ1lEVlFRREUwZHplWE4wWlcwNmMyVnlkbWxqWldGalkyOTFiblE2YjNCbApibk5vYVdaMExXOWhkWFJvTFdGd2FYTmxjblpsY2pwdmNHVnVjMmhwWm5RdFlYVjBhR1Z1ZEdsallYUnZjakJaCk1CTUdCeXFHU000OUFnRUdDQ3FHU000OUF3RUhBMElBQk1RUkx4S1BYZklJZHFYQUlMcmpidHNJRmVTZDRPQW8KNFFZbFAvWGlTTEVpNnJydWRCa2xuVVl1UTM3N2g4Mnh0Vk43QnhLUUkxVWFYeDg2R3hreFgwNmdBREFLQmdncQpoa2pPUFFRREFnTklBREJGQWlBVGUwZjMyQStJa2NSS0djN25zU2dRaytCVXRQejlyWU55TVljNmN2Q3A0QUloCkFOdVI2TFhmcXBOYUYyYTBadzNzdWV0Vms5dElUaXQ3WXlWeE1Ka2dtSHhyCi0tLS0tRU5EIENFUlRJRklDQVRFIFJFUVVFU1QtLS0tLQo=
9+
request: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0KTUlJQkREQ0J0QUlCQURCU01WQXdUZ1lEVlFRREUwZHplWE4wWlcwNmMyVnlkbWxqWldGalkyOTFiblE2YjNCbApibk5vYVdaMExXOWhkWFJvTFdGd2FYTmxjblpsY2pwdmNHVnVjMmhwWm5RdFlYVjBhR1Z1ZEdsallYUnZjakJaCk1CTUdCeXFHU000OUFnRUdDQ3FHU000OUF3RUhBMElBQkxrK2xGVG9CT2dGTDNjY0tKRXh2SmVOUXJLbGg0MVIKN0E2Qzk3eDFta0ZJY2NkWUEzTVNPRkdObkNURzRTNjBKUzJsWndDREJneFpPZkllT0R5TXlrbWdBREFLQmdncQpoa2pPUFFRREFnTkhBREJFQWlBbmJmQ3pzSFZHRlF2ak5Oemh1VFd2dFJXUXZiT0lQZnkvRUNRZnBWZldyd0lnClNEZXh5UGFsM1A2WnhNU21qN1dsSnEySlZac3dranA0ckpaempTRlFON3c9Ci0tLS0tRU5EIENFUlRJRklDQVRFIFJFUVVFU1QtLS0tLQo=
1010
signerName: kubernetes.io/kube-apiserver-client
1111
usages:
1212
- digital signature
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: operator.openshift.io/v1
2+
kind: Authentication
3+
metadata:
4+
name: cluster
5+
status:
6+
conditions:
7+
- lastTransitionTime: "2025-08-07T22:38:20Z"
8+
status: "False"
9+
type: OAuthServerConfigObservationDegraded
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
action: ApplyStatus
2+
controllerInstanceName: TODO-configObserver
3+
fieldManager: oauth-server-ConfigObserver
4+
generateName: ""
5+
name: cluster
6+
resourceType:
7+
Group: operator.openshift.io
8+
Resource: authentications
9+
Version: v1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fieldManager: oauth-server-ConfigObserver
2+
force: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apiVersion: v1
2+
count: 1
3+
eventTime: null
4+
firstTimestamp: "2025-08-07T22:38:20Z"
5+
involvedObject:
6+
kind: Deployment
7+
name: authentication-operator
8+
namespace: openshift-authentication-operator
9+
kind: Event
10+
lastTimestamp: "2025-08-07T22:38:20Z"
11+
message: 'Writing updated section ("oauthServer") of observed config: "\u00a0\u00a0map[string]any{\n+\u00a0\t\"corsAllowedOrigins\":
12+
[]any{string(`//127\\.0\\.0\\.1(:|$)`), string(\"//localhost(:|$)\")},\n+\u00a0\t\"oauthConfig\":
13+
map[string]any{\n+\u00a0\t\t\"assetPublicURL\": string(\"https://console-openshift-console.apps.ci-op-gn2pz6q7-69aee.XXXXXXXXXXXXXXXXXXXXXX\"),\n+\u00a0\t\t\"loginURL\": string(\"https://api.ci-op-gn2pz6q7-69aee.XXXXXXXXXXXXXXXXXXXXXX:6443\"),\n+\u00a0\t\t\"tokenConfig\":
14+
map[string]any{\n+\u00a0\t\t\t\"accessTokenMaxAgeSeconds\": float64(86400),\n+\u00a0\t\t\t\"authorizeTokenMaxAgeSeconds\":
15+
float64(300),\n+\u00a0\t\t},\n+\u00a0\t},\n-\u00a0\t\"serverArguments\": nil,\n+\u00a0\t\"serverArguments\":
16+
map[string]any{\n+\u00a0\t\t\"audit-log-format\": []any{string(\"json\")},\n+\u00a0\t\t\"audit-log-maxbackup\":
17+
[]any{string(\"10\")},\n+\u00a0\t\t\"audit-log-maxsize\": []any{string(\"100\")},\n+\u00a0\t\t\"audit-log-path\": []any{string(\"/var/log/oauth-server/audit.log\")},\n+\u00a0\t\t\"audit-policy-file\": []any{string(\"/var/run/configmaps/audit/audit.yaml\")},\n+\u00a0\t},\n+\u00a0\t\"servingInfo\":
18+
map[string]any{\n+\u00a0\t\t\"cipherSuites\": []any{\n+\u00a0\t\t\tstring(\"TLS_AES_128_GCM_SHA256\"),
19+
string(\"TLS_AES_256_GCM_SHA384\"),\n+\u00a0\t\t\tstring(\"TLS_CHACHA20_POLY1305_SHA256\"),\n+\u00a0\t\t\tstring(\"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256\"),\n+\u00a0\t\t\tstring(\"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\"),\n+\u00a0\t\t\tstring(\"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384\"),\n+\u00a0\t\t\tstring(\"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\"),\n+\u00a0\t\t\tstring(\"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256\"),
20+
...,\n+\u00a0\t\t},\n+\u00a0\t\t\"minTLSVersion\": string(\"VersionTLS12\"),\n+\u00a0\t\t\"namedCertificates\":
21+
[]any{\n+\u00a0\t\t\tmap[string]any{\n+\u00a0\t\t\t\t\"certFile\": string(\"/var/config/system/secrets/v4-0-\"...),\n+\u00a0\t\t\t\t\"keyFile\": string(\"/var/config/system/secrets/v4-0-\"...),\n+\u00a0\t\t\t\t\"names\": []any{...},\n+\u00a0\t\t\t},\n+\u00a0\t\t},\n+\u00a0\t},\n+\u00a0\t\"volumesToMount\":
22+
map[string]any{\"identityProviders\": string(\"{}\")},\n\u00a0\u00a0}\n"'
23+
metadata:
24+
creationTimestamp: null
25+
name: authentication-operator.18599d2230299800.5f2cc1a1
26+
namespace: openshift-authentication-operator
27+
reason: ObservedConfigChanged
28+
reportingComponent: ""
29+
reportingInstance: ""
30+
source:
31+
component: cluster-authentication-operator-run-once-sync-context
32+
type: Normal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
action: Create
2+
controllerInstanceName: ""
3+
generateName: ""
4+
name: authentication-operator.18599d2230299800.5f2cc1a1
5+
namespace: openshift-authentication-operator
6+
resourceType:
7+
Group: ""
8+
Resource: events
9+
Version: v1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: v1
2+
count: 1
3+
eventTime: null
4+
firstTimestamp: "2025-08-07T22:38:20Z"
5+
involvedObject:
6+
kind: Deployment
7+
name: authentication-operator
8+
namespace: openshift-authentication-operator
9+
kind: Event
10+
lastTimestamp: "2025-08-07T22:38:20Z"
11+
message: assetPublicURL changed from to https://console-openshift-console.apps.ci-op-gn2pz6q7-69aee.XXXXXXXXXXXXXXXXXXXXXX
12+
metadata:
13+
creationTimestamp: null
14+
name: authentication-operator.18599d2230299800.6182ed8c
15+
namespace: openshift-authentication-operator
16+
reason: ObserveConsoleURL
17+
reportingComponent: ""
18+
reportingInstance: ""
19+
source:
20+
component: cluster-authentication-operator-run-once-sync-context
21+
type: Normal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
action: Create
2+
controllerInstanceName: ""
3+
generateName: ""
4+
name: authentication-operator.18599d2230299800.6182ed8c
5+
namespace: openshift-authentication-operator
6+
resourceType:
7+
Group: ""
8+
Resource: events
9+
Version: v1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: v1
2+
count: 1
3+
eventTime: null
4+
firstTimestamp: "2025-08-07T22:38:20Z"
5+
involvedObject:
6+
kind: Deployment
7+
name: authentication-operator
8+
namespace: openshift-authentication-operator
9+
kind: Event
10+
lastTimestamp: "2025-08-07T22:38:20Z"
11+
message: loginURL changed from to https://api.ci-op-gn2pz6q7-69aee.XXXXXXXXXXXXXXXXXXXXXX:6443
12+
metadata:
13+
creationTimestamp: null
14+
name: authentication-operator.18599d2230299800.1d05f9ac
15+
namespace: openshift-authentication-operator
16+
reason: ObserveAPIServerURL
17+
reportingComponent: ""
18+
reportingInstance: ""
19+
source:
20+
component: cluster-authentication-operator-run-once-sync-context
21+
type: Normal

0 commit comments

Comments
 (0)