|
1 | 1 | # Warning: currently, the oc-mirror plugin is officially downloadable to amd64 only. |
| 2 | +# Please refer to docs set-variables-group-vars.md for instructions on how to create this configuration file for disconnected. |
2 | 3 | disconnected: |
3 | | - enabled: False |
| 4 | + enabled: false |
4 | 5 | registry: |
5 | 6 | url: 'registry url' |
6 | | - pull_secret: '' # this is similar to env.redhat.pull_secret but it will only contain secrets to be applied to the cluster in disconnected mode. |
7 | | - mirror_pull_secret: '' # this should contain a pull secret that contains the combination of env.redhat.pull_secret and pull secret with push access to mirror registry for mirroring |
8 | | - ca_trusted: False |
| 7 | + ip: 'registry reachable ip' |
| 8 | + pull_secret: '' |
| 9 | + mirror_pull_secret: '' |
| 10 | + ca_trusted: false |
9 | 11 | ca_cert: | |
10 | 12 | -----BEGIN CERTIFICATE----- |
11 | | - if ca_trusted is False, then this ca will be added to mirror host anchors as well as to the install config of cluster |
| 13 | + if ca_trusted is False, then this ca will be added to mirror host anchors |
| 14 | + as well as to the install config of cluster |
12 | 15 | -----END CERTIFICATE----- |
13 | 16 | mirroring: |
14 | | - host: # this is the host that can access the internet as well as the registry |
| 17 | + # this is the host that can access the internet as well as the registry |
| 18 | + host: |
15 | 19 | name: hosname |
16 | 20 | ip: x.x.x.x |
17 | 21 | user: mirroruser # with become access |
18 | 22 | pass: mirrorpassword |
19 | | - file_server: # in disconnected mode, the client binaries and rhcos will be put on env.file_server and then downloaded to the final destination from there. For now, its only oc-mirror. Rest of artifacts will be downloaded from urls |
| 23 | + # In disconnected mode client binaries and RHCOS will be placed on the |
| 24 | + # file server (env.file_server) and then downloaded to the final |
| 25 | + # destination from there. Currently only oc-mirror is handled this way. |
| 26 | + file_server: |
20 | 27 | clients_dir: 'clients' |
21 | | - oc_mirror_tgz: 'oc-mirror.tar.gz' # name of oc-mirror plugin binary in clients_dir. should be a tar.gz file. You must place this in your ftp server after downloading it yourself from https://console.redhat.com/openshift/downloads for amd64 (or building it yourself if your mirror host is s390x) |
22 | | - client_download: # this will download oc binary to the mirror host for use on the mirror host for mirroring |
| 28 | + oc_mirror_tgz: 'oc-mirror.tar.gz' |
| 29 | + # this will download oc binary to the mirror host for use on the mirror host for mirroring |
| 30 | + client_download: |
23 | 31 | ocp_download_url: "https://mirror.openshift.com/pub/openshift-v4/multi/clients/ocp/4.13.1/amd64/" |
24 | | - ocp_client_tgz: 'openshift-client-linux.tar.gz' # name of the oc binary. Should be a tar.gz file |
| 32 | + ocp_client_tgz: 'openshift-client-linux.tar.gz' |
25 | 33 | legacy: |
26 | | - platform: False # if true then platform is mirrored in the old way and install config will be patched with the imagecontentsourcepolicy |
| 34 | + platform: false |
27 | 35 | ocp_quay_release_image_tag: '4.13.1-s390x' |
28 | 36 | ocp_org: 'ocp4' |
29 | 37 | ocp_repo: 'openshift4' |
30 | | - ocp_tag: 'v4.13.1' # platform images will be pushed to {tegistry_url}/{ocp_org}/{ocp_repo}:{ocp_tag} |
| 38 | + ocp_tag: 'v4.13.1' # platform images will be pushed to {registry_url}/{ocp_org}/{ocp_repo}:{ocp_tag} |
31 | 39 | oc_mirror: |
32 | 40 | oc_mirror_args: |
33 | | - continue_on_error: False |
34 | | - source_skip_tls: False |
| 41 | + continue_on_error: false |
| 42 | + source_skip_tls: false |
35 | 43 | post_mirror: |
36 | 44 | mapping: |
37 | 45 | replace: |
38 | | - enabled: False |
| 46 | + enabled: false |
39 | 47 | list: |
40 | | - - regexp: what |
41 | | - replace: with |
| 48 | + - regexp: what |
| 49 | + replace: with |
42 | 50 | release_image_tag: '4.13.1-multi' |
43 | | - image_set: # this field is a standard image set from oc-mirror documentation. The only exception is the storageConfig which is altered to allow substitution of disconnected.registry.url |
| 51 | + release_image_registry: 'brew.registry.redhat.io' |
| 52 | + image_set: |
| 53 | + # this field is a standard image set from oc-mirror documentation. |
| 54 | + # The only exception is the storageConfig which is altered to allow substitution of disconnected.registry.url |
| 55 | + apiVersion: mirror.openshift.io/v2alpha1 # update the version with v2alpha1 for oc-mirror v2 plugin and v1alpha2 for v1 plugin |
44 | 56 | storageConfig: |
| 57 | + enable: false # enable this flag if oc-mirror v1 plugin is used since storageConfig is removed for v2 plugin |
45 | 58 | registry: |
46 | | - enabled: True # use registry storage backend. Currently only method supproted |
| 59 | + enabled: true # use registry storage backend. Currently only method supported |
47 | 60 | imageURL: # the final value will be {imageURL: disconnected.registry.url/org/repo} |
48 | 61 | org: mirror |
49 | 62 | repo: oc-mirror-metadata |
50 | 63 | skipTLS: false # standard field form oc-mirror schema |
51 | | - mirror: # this field is also atandard from the oc-mirror schema. It will be substituted as is into the final image set. |
| 64 | + mirror: # this field is also standard from the oc-mirror schema. It will be substituted as is into the final image set. |
52 | 65 | platform: |
53 | 66 | architectures: |
54 | | - - multi # note: while image tags such as `multi-s390x` are also available on quay, we cannot mirror these, so list can only contain pure architecture names such as `s390x` or the multiarch `multi` |
| 67 | + - multi |
| 68 | + # Note: cannot mirror tags like multi-s390x; list must contain pure |
| 69 | + # architecture names (e.g. s390x) or the multiarch token 'multi'. |
55 | 70 | channels: |
56 | | - - name: stable-4.13 |
57 | | - full: false |
58 | | - minVersion: 4.13.1 |
59 | | - maxVersion: 4.13.1 |
| 71 | + - name: stable-4.13 |
| 72 | + full: false |
| 73 | + minVersion: 4.13.1 |
| 74 | + maxVersion: 4.13.1 |
60 | 75 | operators: |
61 | 76 | - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.13 |
62 | 77 | full: false |
63 | 78 | packages: |
64 | | - - name: serverless-operator |
65 | | - channels: |
66 | | - - name: stable |
67 | | - #minVersion: '2.4.1-0' |
68 | | - #maxVersion: '2.4.1-0' |
| 79 | + - name: serverless-operator |
| 80 | + channels: |
| 81 | + - name: stable |
| 82 | + # minVersion: '2.4.1-0' |
| 83 | + # maxVersion: '2.4.1-0' |
69 | 84 | additionalImages: |
70 | | - - name: registry.redhat.io/ubi8/ubi:latest |
| 85 | + - name: registry.redhat.io/ubi8/ubi:latest |
71 | 86 | helm: {} |
0 commit comments