3.9.3. git credetials ストアのワークスペースコンテナーへのマウント
本セクションでは、git credetials ストアをユーザーのプロジェクトから、CodeReady Workspaces のシングルワークスペースまたは複数ワークスペースコンテナーでファイルにシークレットとしてマウントする方法を説明します。
前提条件
- Red Hat CodeReady Workspaces の稼働中のインスタンス。Red Hat CodeReady Workspaces のインスタンスをインストールするには、「 Installing CodeReady Workspaces on OpenShift Container Platform 」を参照してください。
手順
- https://git-scm.com/docs/git-credential-store#_storage_format 形式の git 認証情報ファイルを準備 し ます。
- ファイルのコンテンツを base64 形式にエンコードします。
CodeReady Workspaces ワークスペースが作成される OpenShift プロジェクトで、新しい OpenShift シークレットを作成します。
-
作成するシークレットのラベルは、CodeReady Workspaces の
che.workspace.provision.secret.labelsプロパティーで設定されたラベルのセットと一致する必要があります。デフォルトのラベルは以下のとおりです。 -
app.kubernetes.io/part-of: che.eclipse.org -
app.kubernetes.io/component: workspace-secret:
-
作成するシークレットのラベルは、CodeReady Workspaces の