-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from appuio/feature/cluster-pull-secret
Add global cluster pull secret support
- Loading branch information
Showing
6 changed files
with
40 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
parameters: | ||
openshift4_config: | ||
=_metadata: {} | ||
namespace: syn-openshift4-config | ||
globalPullSecret: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
= Parameters | ||
|
||
The parent key for all of the following parameters is `openshift4_config`. | ||
The parent key for all the following parameters is `openshift4_config`. | ||
|
||
== `namespace` | ||
== `globalPullSecret` | ||
|
||
[horizontal] | ||
type:: string | ||
default:: `syn-openshift4-config` | ||
default:: null | ||
|
||
The namespace in which to deploy this component. | ||
A Vault reference pointing to the Vault secret containing the docker configuration file in JSON format. | ||
If the parameter is null, the component doesn't manage the cluster's global pull secret. | ||
|
||
The component writes the value of this parameter into the field `.dockerconfigjson` of the secret `pull-secret` in namespace `openshift-config`. | ||
|
||
== Example | ||
See the OpenShift documentation for more details on https://docs.openshift.com/container-platform/latest/openshift_images/managing_images/using-image-pull-secrets.html#images-update-global-pull-secret_using-image-pull-secret[managing the cluster's global pull secret]. | ||
|
||
[source,yaml] | ||
---- | ||
namespace: example-namespace | ||
---- | ||
[IMPORTANT] | ||
==== | ||
You need to make sure that the existing pull secrets present on a cluster (deployed by the OpenShift installer) are included in the configuration deployed by this component. | ||
Otherwise, OpenShift cluster services may stop working because their respective container images can't be downloaded anymore. | ||
==== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Overwrite parameters here | ||
|
||
# parameters: {...} | ||
parameters: | ||
openshift4_config: | ||
globalPullSecret: ?{vaultkv:${customer:name}/${cluster:name}/openshift4-config/dockercfg} |
12 changes: 12 additions & 0 deletions
12
tests/golden/defaults/openshift4-config/openshift4-config/01_dockercfg.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
data: {} | ||
kind: Secret | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: pull-secret | ||
name: pull-secret | ||
namespace: openshift-config | ||
stringData: | ||
.dockerconfigjson: t-silent-test-1234/c-green-test-1234/openshift4-config/dockercfg | ||
type: Opaque |