1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
#!/bin/bash
mkdir -p /kubernetes-api-resources/apis/oauth.openshift.io/v1
cat << EOF > /kubernetes-api-resources/apis/oauth.openshift.io/v1/oauthclients
{
"apiVersion": "v1",
"items": [
{
"apiVersion": "oauth.openshift.io/v1",
"grantMethod": "auto",
"kind": "OAuthClient",
"accessTokenInactivityTimeoutSeconds": "10m0s",
"metadata": {
"annotations": {
"include.release.openshift.io/ibm-cloud-managed": "true",
"include.release.openshift.io/self-managed-high-availability": "true",
"include.release.openshift.io/single-node-developer": "true",
"release.openshift.io/create-only": "true"
},
"creationTimestamp": "2022-06-20T15:51:44Z",
"name": "console",
"ownerReferences": [
{
"apiVersion": "config.openshift.io/v1",
"kind": "ClusterVersion",
"name": "version",
"uid": "e4f746bf-dbf8-40b5-8e8f-7c5f918328c3"
}
],
"resourceVersion": "21576",
"uid": "ba27a93a-2269-40b5-9968-e15a5ce7a8e7"
},
"redirectURIs": [
"https://console-openshift-console.apps.wenshen-51.devcluster.openshift.com/auth/callback"
]
},
{
"apiVersion": "oauth.openshift.io/v1",
"grantMethod": "auto",
"kind": "OAuthClient",
"accessTokenInactivityTimeoutSeconds": "600",
"metadata": {
"creationTimestamp": "2022-06-20T15:52:50Z",
"name": "openshift-browser-client",
"resourceVersion": "21486",
"uid": "8579d21b-2743-4766-8d0a-7fd20ac4d936"
},
"redirectURIs": [
"https://oauth-openshift.apps.wenshen-51.devcluster.openshift.com/oauth/token/display"
]
},
{
"apiVersion": "oauth.openshift.io/v1",
"grantMethod": "auto",
"kind": "OAuthClient",
"accessTokenInactivityTimeoutSeconds": "10m0s",
"metadata": {
"creationTimestamp": "2022-06-20T15:52:50Z",
"name": "openshift-challenging-client",
"resourceVersion": "21492",
"uid": "144506bf-484d-49ab-a3de-663aa54d2e69"
},
"redirectURIs": [
"https://oauth-openshift.apps.wenshen-51.devcluster.openshift.com/oauth/token/implicit"
],
"respondWithChallenges": true
}
],
"kind": "List",
"metadata": {
"resourceVersion": "",
"selfLink": ""
}
}
EOF
|