Skip to content

Commit c256ca0

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

File tree

20 files changed

+1728
-66
lines changed

20 files changed

+1728
-66
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: v1
2+
count: 1
3+
eventTime: null
4+
firstTimestamp: "2024-10-14T22:38:20Z"
5+
involvedObject:
6+
kind: Deployment
7+
name: authentication-operator
8+
namespace: openshift-authentication-operator
9+
kind: Event
10+
lastTimestamp: "2024-10-14T22:38:20Z"
11+
message: 'Writing updated section ("oauthServer") of observed config: "\u00a0\u00a0map[string]any(\n-\u00a0\tnil,\n+\u00a0\t{\n+\u00a0\t\t\"corsAllowedOrigins\":
12+
[]any{string(`//127\\.0\\.0\\.1(:|$)`), string(\"//localhost(:|$)\")},\n+\u00a0\t\t\"oauthConfig\":
13+
map[string]any{\n+\u00a0\t\t\t\"loginURL\": string(\"https://api.ostest.test.metalkube.org:6443\"),\n+\u00a0\t\t\t\"tokenConfig\":
14+
map[string]any{\n+\u00a0\t\t\t\t\"accessTokenMaxAgeSeconds\": float64(86400),\n+\u00a0\t\t\t\t\"authorizeTokenMaxAgeSeconds\":
15+
float64(300),\n+\u00a0\t\t\t},\n+\u00a0\t\t},\n+\u00a0\t\t\"serverArguments\": map[string]any{\n+\u00a0\t\t\t\"audit-log-format\": []any{string(\"json\")},\n+\u00a0\t\t\t\"audit-log-maxbackup\":
16+
[]any{string(\"10\")},\n+\u00a0\t\t\t\"audit-log-maxsize\": []any{string(\"100\")},\n+\u00a0\t\t\t\"audit-log-path\": []any{string(\"/var/log/oauth-server/audit.log\")},\n+\u00a0\t\t\t\"audit-policy-file\": []any{string(\"/var/run/configmaps/audit/audit.\"...)},\n+\u00a0\t\t},\n+\u00a0\t\t\"servingInfo\":
17+
map[string]any{\n+\u00a0\t\t\t\"cipherSuites\": []any{\n+\u00a0\t\t\t\tstring(\"TLS_AES_128_GCM_SHA256\"),
18+
string(\"TLS_AES_256_GCM_SHA384\"),\n+\u00a0\t\t\t\tstring(\"TLS_CHACHA20_POLY1305_SHA256\"),\n+\u00a0\t\t\t\tstring(\"TLS_ECDHE_ECDSA_WITH_AES_128_GCM\"...),
19+
...,\n+\u00a0\t\t\t},\n+\u00a0\t\t\t\"minTLSVersion\": string(\"VersionTLS12\"),\n+\u00a0\t\t},\n+\u00a0\t},\n\u00a0\u00a0)\n"'
20+
metadata:
21+
creationTimestamp: null
22+
name: authentication-operator.17fe72c59b829800.b2cdb588
23+
namespace: openshift-authentication-operator
24+
reason: ObservedConfigChanged
25+
reportingComponent: ""
26+
reportingInstance: ""
27+
source:
28+
component: cluster-authentication-operator-run-once-sync-context
29+
type: Normal
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
action: Create
22
controllerInstanceName: ""
33
generateName: ""
4-
name: authentication-operator.17fe72c59b829800.57eb8535
4+
name: authentication-operator.17fe72c59b829800.b2cdb588
55
namespace: openshift-authentication-operator
66
resourceType:
77
Group: ""

test-data/apply-configuration/overall/minimal-cluster/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/6471-body-authentication-operator.17fe72c59b829800.57eb8535.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: v1
2+
count: 1
3+
eventTime: null
4+
firstTimestamp: "2024-10-14T22:38:20Z"
5+
involvedObject:
6+
kind: Deployment
7+
name: authentication-operator
8+
namespace: openshift-authentication-operator
9+
kind: Event
10+
lastTimestamp: "2024-10-14T22:38:20Z"
11+
message: 'Writing updated section ("oauthAPIServer") of observed config: "\u00a0\u00a0map[string]any(\n-\u00a0\tnil,\n+\u00a0\t{\n+\u00a0\t\t\"apiServerArguments\":
12+
map[string]any{\n+\u00a0\t\t\t\"api-audiences\": []any{string(\"https://kubernetes.default.svc\")},\n+\u00a0\t\t\t\"cors-allowed-origins\":
13+
[]any{string(`//127\\.0\\.0\\.1(:|$)`), string(\"//localhost(:|$)\")},\n+\u00a0\t\t\t\"feature-gates\": []any{},\n+\u00a0\t\t\t\"tls-cipher-suites\":
14+
[]any{\n+\u00a0\t\t\t\tstring(\"TLS_AES_128_GCM_SHA256\"), string(\"TLS_AES_256_GCM_SHA384\"),\n+\u00a0\t\t\t\tstring(\"TLS_CHACHA20_POLY1305_SHA256\"),\n+\u00a0\t\t\t\tstring(\"TLS_ECDHE_ECDSA_WITH_AES_128_GCM\"...),
15+
...,\n+\u00a0\t\t\t},\n+\u00a0\t\t\t\"tls-min-version\": string(\"VersionTLS12\"),\n+\u00a0\t\t},\n+\u00a0\t},\n\u00a0\u00a0)\n"'
16+
metadata:
17+
creationTimestamp: null
18+
name: authentication-operator.17fe72c59b829800.5aa4f723
19+
namespace: openshift-authentication-operator
20+
reason: ObservedConfigChanged
21+
reportingComponent: ""
22+
reportingInstance: ""
23+
source:
24+
component: cluster-authentication-operator-run-once-sync-context
25+
type: Normal
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
action: Create
22
controllerInstanceName: ""
33
generateName: ""
4-
name: authentication-operator.17fe72c59b829800.2a24f1b5
4+
name: authentication-operator.17fe72c59b829800.5aa4f723
55
namespace: openshift-authentication-operator
66
resourceType:
77
Group: ""

test-data/apply-configuration/overall/minimal-cluster/expected-output/Management/Create/namespaces/openshift-authentication-operator/core/events/de10-body-authentication-operator.17fe72c59b829800.2a24f1b5.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.
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: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0KTUlJQkRUQ0J0QUlCQURCU01WQXdUZ1lEVlFRREUwZHplWE4wWlcwNmMyVnlkbWxq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es.io/kube-apiserver-client
1111
usages:
1212
- digital signature
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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: Created ConfigMap/v4-0-config-system-cliconfig -n openshift-authentication
12+
because it was missing
13+
metadata:
14+
creationTimestamp: null
15+
name: authentication-operator.18599d2230299800.18b41977
16+
namespace: openshift-authentication-operator
17+
reason: ConfigMapCreated
18+
reportingComponent: ""
19+
reportingInstance: ""
20+
source:
21+
component: cluster-authentication-operator-run-once-sync-context
22+
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.18b41977
5+
namespace: openshift-authentication-operator
6+
resourceType:
7+
Group: ""
8+
Resource: events
9+
Version: v1

0 commit comments

Comments
 (0)