Skip to content

Commit 4d630ab

Browse files
committed
ci-operator: add cluster-profile-azure4 secrets
azure4 cluster-profile will be used for OpenShift 4 Azure testing.
1 parent 4603e66 commit 4d630ab

File tree

6 files changed

+36
-0
lines changed

6 files changed

+36
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@ azure-secrets:
315315
oc create secret generic codecov-token --from-literal=upload=${CODECOV_UPLOAD_TOKEN} -o yaml --dry-run | oc apply -n azure -f -
316316
.PHONY: azure-secrets
317317

318+
azure4-secrets:
319+
oc create secret generic cluster-secrets-azure4 \
320+
--from-file=cluster/test-deploy/azure4/osServicePrincipal.json \
321+
--from-file=cluster/test-deploy/azure4/pull-secret \
322+
--from-file=cluster/test-deploy/azure4/ssh-privatekey \
323+
--from-file=cluster/test-deploy/azure4/ssh-publickey \
324+
-o yaml --dry-run | oc apply -n ocp -f -
325+
.PHONY: azure4-secrets
326+
318327
metering:
319328
$(MAKE) -C projects/metering
320329
.PHONY: metering

ci-operator/SECRETS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ currently exist:
5454
| `metrics-int.key` | Azure Geneva metrics authentication key |
5555
| `system-docker-config.json` | Root/node/system level docker config.json file, currently holding access registry.redhat.io |
5656

57+
#### `cluster-secrets-azure4`
58+
59+
| Key | Description |
60+
| ----------------------------------| ----------- |
61+
| `osServicePrincipal.json` | Credentials for the Azure API. This is a json file that contains fields described in [upstream credentials doc](https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-create-service-principals#create-a-service-principal-using-a-client-secret). |
62+
| `pull-secret` | Credentials for pulling OpenShift images from Quay and for authenticating to telemetry. Retrieved from [try.openshift.com](https://try.openshift.com) under the [email protected] account, and has the service account token from the `ocp` namespace added with `oc registry login --to=/tmp/pull-secret -z default -n ocp`.|
63+
| `ssh-privatekey` | Private half of the SSH key, for connecting to Azure VMs. |
64+
| `ssh-publickey` | Public half of the SSH key, for connecting to Azure VMs. |
65+
5766
#### `cluster-secrets-vsphere`
5867

5968
| Key | Description |

cluster/ci/config/secret-mirroring/mapping.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ secrets:
1717
to:
1818
namespace: ci-stg
1919
name: cluster-secrets-azure
20+
- from:
21+
namespace: ci
22+
name: cluster-secrets-azure4
23+
to:
24+
namespace: ci-stg
25+
name: cluster-secrets-azure4
2026
- from:
2127
namespace: ci
2228
name: cluster-secrets-gcp

cluster/test-deploy/azure4/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*
2+
!.type
3+
!.gitignore
4+
!OWNERS
5+
!secret_example

cluster/test-deploy/azure4/.type

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
azure4
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"subscriptionId": "xxxxx",
3+
"clientId": "xxxxx",
4+
"clientSecret": "xxxxx",
5+
"tenantId": "xxxxx"
6+
}

0 commit comments

Comments
 (0)