mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * assembly/builds
|
|
|
|
// This module can be included from assemblies using the following include statement:
|
|
// include::<path>/builds-source-secret-combinations-basic-auth-gitconfig-ca.adoc[leveloffset=+1]
|
|
|
|
[id="builds-source-secret-combinations-basic-auth-gitconfig-ca_{context}"]
|
|
= Creating a basic authentication secret with a *_.gitconfig_* file and CA certificate
|
|
|
|
You can combine the different methods for creating source clone secrets for your
|
|
specific needs, such as a secret that combines a basic authentication, *_.gitconfig_* file,
|
|
and CA certificate.
|
|
|
|
.Prerequisites
|
|
|
|
* Basic authentication credentials
|
|
* *_.gitconfig_* file
|
|
* CA certificate
|
|
|
|
.Procedure
|
|
|
|
* Create a basic authentication secret with a *_.gitconfig_* file and CA certificate
|
|
|
|
----
|
|
$ oc create secret generic <secret_name> \
|
|
--from-literal=username=<user_name> \
|
|
--from-literal=password=<password> \
|
|
--from-file=</path/to/.gitconfig> \
|
|
--from-file=ca-cert=</path/to/file> \
|
|
--type=kubernetes.io/basic-auth
|
|
----
|