Skip to content

Commit ee16ec3

Browse files
committed
test/oauth-server-creation-minimal: adds a test show which input resources are required to run the operator and the controller that creates oauth-server deployment
1 parent cb20eca commit ee16ec3

File tree

27 files changed

+7677
-66
lines changed

27 files changed

+7677
-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: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0KTUlJQkRUQ0J0QUlCQURCU01WQXdUZ1lEVlFRREUwZHplWE4wWlcwNmMyVn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1010
signerName: kubernetes.io/kube-apiserver-client
1111
usages:
1212
- digital signature
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
message: no oauth-openshift.openshift-authentication pods available on any node.
9+
reason: NoPod
10+
status: "False"
11+
type: OAuthServerDeploymentAvailable
12+
- lastTransitionTime: "2025-08-01T18:45:36Z"
13+
reason: AsExpected
14+
status: "False"
15+
type: OAuthServerDeploymentDegraded
16+
- lastTransitionTime: "2025-08-07T22:38:20Z"
17+
message: 'deployment/oauth-openshift.openshift-authentication: 0/1 pods have been
18+
updated to the latest generation and 0/1 pods are available'
19+
reason: PodsUpdating
20+
status: "True"
21+
type: OAuthServerDeploymentProgressing
22+
- lastTransitionTime: "2025-08-01T18:45:36Z"
23+
status: "False"
24+
type: OAuthServerWorkloadDegraded
25+
generations:
26+
- group: apps
27+
lastGeneration: 0
28+
name: oauth-openshift
29+
namespace: openshift-authentication
30+
resource: deployments
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
action: ApplyStatus
2+
controllerInstanceName: TODO-deploymentController
3+
fieldManager: OAuthServer-Workload
4+
generateName: ""
5+
name: cluster
6+
resourceType:
7+
Group: operator.openshift.io
8+
Resource: authentications
9+
Version: v1

0 commit comments

Comments
 (0)