3.9.
3.9.1.
3.9.1.1.
3.9.1.1.1.
사전 요구 사항
절차
- Register application을 클릭합니다.
$ echo -n '<github_oauth_client_id>' | base64
$ echo -n '<github_oauth_client_secret>' | base64
추가 리소스
3.9.1.1.2.
사전 요구 사항
절차
kind: Secret apiVersion: v1 metadata: name: github-oauth-config namespace: openshift-devspaces 1 labels: app.kubernetes.io/part-of: che.eclipse.org app.kubernetes.io/component: oauth-scm-configuration annotations: che.eclipse.org/oauth-scm-server: github che.eclipse.org/scm-server-endpoint: <github_server_url> 2 type: Opaque data: id: <Base64_GitHub_OAuth_Client_ID> 3 secret: <Base64_GitHub_OAuth_Client_Secret> 4
$ oc apply -f - <<EOF <Secret_prepared_in_the_previous_step> EOF
3.9.1.2.
3.9.1.2.1.
사전 요구 사항
절차
$ echo -n '<gitlab_application_id>' | base64
$ echo -n '<gitlab_client_secret>' | base64
추가 리소스
3.9.1.2.2.
사전 요구 사항
- GitLab Client Secret
절차
kind: Secret apiVersion: v1 metadata: name: gitlab-oauth-config namespace: openshift-devspaces 1 labels: app.kubernetes.io/part-of: che.eclipse.org app.kubernetes.io/component: oauth-scm-configuration annotations: che.eclipse.org/oauth-scm-server: gitlab che.eclipse.org/scm-server-endpoint: <gitlab_server_url> 2 type: Opaque data: id: <Base64_GitLab_Application_ID> 3 secret: <Base64_GitLab_Client_Secret> 4
$ oc apply -f - <<EOF <Secret_prepared_in_the_previous_step> EOF
3.9.1.3.
3.9.1.3.1.
사전 요구 사항
절차
$ openssl genrsa -out private.pem 2048 && \ openssl pkcs8 -topk8 -inform pem -outform pem -nocrypt -in private.pem -out privatepkcs8.pem && \ cat privatepkcs8.pem | sed 's/-----BEGIN PRIVATE KEY-----//g' | sed 's/-----END PRIVATE KEY-----//g' | tr -d '\n' | base64 | tr -d '\n' > privatepkcs8-stripped.pem && \ openssl rsa -in private.pem -pubout > public.pub && \ cat public.pub | sed 's/-----BEGIN PUBLIC KEY-----//g' | sed 's/-----END PUBLIC KEY-----//g' | tr -d '\n' > public-stripped.pub && \ openssl rand -base64 24 > bitbucket-consumer-key && \ openssl rand -base64 24 > bitbucket-shared-secret
추가 리소스
3.9.1.3.2.
사전 요구 사항
-
privatepkcs8-stripped.pem
-
bitbucket-consumer-key
-
bitbucket-shared-secret
-
절차
kind: Secret apiVersion: v1 metadata: name: bitbucket-oauth-config namespace: openshift-devspaces 1 labels: app.kubernetes.io/component: oauth-scm-configuration app.kubernetes.io/part-of: che.eclipse.org annotations: che.eclipse.org/oauth-scm-server: bitbucket che.eclipse.org/scm-server-endpoint: <bitbucket_server_url> 2 type: Opaque data: private.key: <Base64_content_of_privatepkcs8-stripped.pem> 3 consumer.key: <Base64_content_of_bitbucket-consumer-key> 4 shared_secret: <Base64_content_of_bitbucket-shared-secret> 5
$ oc apply -f - <<EOF <Secret_prepared_in_the_previous_step> EOF
3.9.1.4.
3.9.1.4.1.
사전 요구 사항
절차
$ echo -n '<bitbucket_oauth_consumer_key>' | base64
$ echo -n '<bitbucket_oauth_consumer_secret>' | base64
추가 리소스
3.9.1.4.2.
사전 요구 사항
절차
kind: Secret apiVersion: v1 metadata: name: bitbucket-oauth-config namespace: openshift-devspaces 1 labels: app.kubernetes.io/part-of: che.eclipse.org app.kubernetes.io/component: oauth-scm-configuration annotations: che.eclipse.org/oauth-scm-server: bitbucket type: Opaque data: id: <Base64_Bitbucket_Oauth_Consumer_Key> 2 secret: <Base64_Bitbucket_Oauth_Consumer_Secret> 3
$ oc apply -f - <<EOF <Secret_prepared_in_the_previous_step> EOF
3.9.2.
절차
3.1.2절. “”을 참조하십시오.
spec: components: cheServer: extraProperties: CHE_SYSTEM_ADMIN__NAME: '<admin>'
추가 리소스
3.9.3.
사전 요구 사항
- 3.9.2절. “”을 참조하십시오.
절차
$ oc delete namespace <username>-devspaces
추가 리소스