|
| 1 | +--- |
| 2 | +menu: |
| 3 | + learn: |
| 4 | + parent: Validated patterns frameworks |
| 5 | +title: Global configuration reference |
| 6 | +weight: 55 |
| 7 | +aliases: /learn/values-global-configuration/ |
| 8 | +--- |
| 9 | + |
| 10 | +:toc: |
| 11 | +:imagesdir: /images |
| 12 | +:_content-type: ASSEMBLY |
| 13 | +include::modules/comm-attributes.adoc[] |
| 14 | + |
| 15 | +[id="values-global-configuration"] |
| 16 | += Global configuration reference |
| 17 | + |
| 18 | +Every validated pattern includes a `values-global.yaml` file at the repository root. This file defines configuration settings that apply across all clusters and environments in the pattern. |
| 19 | + |
| 20 | +[id="global-section"] |
| 21 | +== `global` section |
| 22 | + |
| 23 | +The `global` section contains settings that Helm distributes to all sub-charts in the pattern. |
| 24 | + |
| 25 | +[id="global-pattern"] |
| 26 | +=== `global.pattern` |
| 27 | + |
| 28 | +Specifies the name of the validated pattern. The framework uses this value internally to identify the pattern. |
| 29 | + |
| 30 | +[source,yaml] |
| 31 | +---- |
| 32 | +global: |
| 33 | + pattern: multicloud-gitops |
| 34 | +---- |
| 35 | + |
| 36 | +Do not change this value unless you are creating a new pattern. |
| 37 | + |
| 38 | +[id="global-options"] |
| 39 | +=== `global.options` |
| 40 | + |
| 41 | +The `options` block sets default behaviors for operator management and ArgoCD synchronization across all clusters. |
| 42 | + |
| 43 | +[source,yaml] |
| 44 | +---- |
| 45 | +global: |
| 46 | + options: |
| 47 | + useCSV: false |
| 48 | + syncPolicy: Automatic |
| 49 | + installPlanApproval: Automatic |
| 50 | +---- |
| 51 | + |
| 52 | +.Options fields |
| 53 | +[cols="2,1,5",options="header"] |
| 54 | +|=== |
| 55 | +| Field | Default | Description |
| 56 | + |
| 57 | +| `syncPolicy` |
| 58 | +| `Automatic` |
| 59 | +| Sets the default ArgoCD synchronization policy. `Automatic` syncs changes from Git to the cluster without manual intervention. `Manual` requires an administrator to trigger each sync. |
| 60 | + |
| 61 | +| `installPlanApproval` |
| 62 | +| `Automatic` |
| 63 | +| Controls how Operator Lifecycle Manager (OLM) handles operator upgrades. With `Automatic`, operators check for and apply updates periodically. `Manual` requires an administrator to approve each upgrade. |
| 64 | + |
| 65 | +| `useCSV` |
| 66 | +| `false` |
| 67 | +| Determines whether subscriptions use specific `ClusterServiceVersions` (CSV) for operator installation. When set to `false`, the subscription channel determines which version to install. Set to `true` when you need to pin operators to specific versions. |
| 68 | +|=== |
| 69 | + |
| 70 | +[id="main-section"] |
| 71 | +== `main` section |
| 72 | + |
| 73 | +The `main` section defines settings for the primary cluster that manages the pattern. |
| 74 | + |
| 75 | +[id="main-clustergroupname"] |
| 76 | +=== `main.clusterGroupName` |
| 77 | + |
| 78 | +Identifies the main ClusterGroup, which acts as the hub or starting point for the pattern. A ClusterGroup represents a set of clusters that share nearly identical configurations and serve a common architectural purpose. |
| 79 | + |
| 80 | +[source,yaml] |
| 81 | +---- |
| 82 | +main: |
| 83 | + clusterGroupName: hub |
| 84 | +---- |
| 85 | + |
| 86 | +The value must match a corresponding `values-<clusterGroupName>.yaml` file in the repository. For example, `clusterGroupName: hub` requires a `values-hub.yaml` file. Most patterns use `hub` for the primary cluster. |
| 87 | + |
| 88 | +For more information about ClusterGroups, see link:/learn/clustergroup-in-values-files/[ClusterGroup in values files]. |
| 89 | + |
| 90 | +[id="main-multisourceconfig"] |
| 91 | +=== `main.multiSourceConfig` |
| 92 | + |
| 93 | +Controls whether ArgoCD uses multi-source applications, enabling Helm charts to be fetched from external repositories in addition to the local Git repository. |
| 94 | + |
| 95 | +[source,yaml] |
| 96 | +---- |
| 97 | +main: |
| 98 | + multiSourceConfig: |
| 99 | + enabled: true |
| 100 | +---- |
| 101 | + |
| 102 | +.multiSourceConfig fields |
| 103 | +[cols="2,1,5",options="header"] |
| 104 | +|=== |
| 105 | +| Field | Default | Description |
| 106 | + |
| 107 | +| `enabled` |
| 108 | +| `true` |
| 109 | +| Enables multi-source ArgoCD applications. This is the recommended setting for most deployments. |
| 110 | + |
| 111 | +| `clusterGroupChartVersion` |
| 112 | +| (optional) |
| 113 | +| Constrains the version of the ClusterGroup Helm chart to fetch. Accepts semver ranges such as `0.9.*`. |
| 114 | + |
| 115 | +| `helmRepoUrl` |
| 116 | +| (optional) |
| 117 | +| Overrides the Helm chart repository URL. Use this for disconnected or air-gapped environments where charts are hosted on an internal registry. |
| 118 | +|=== |
| 119 | + |
| 120 | +For more information about disconnected environments, see link:/learn/disconnected-installation/[Disconnected installation]. |
| 121 | + |
| 122 | +[id="example-values-global"] |
| 123 | +== Example `values-global.yaml` |
| 124 | + |
| 125 | +The following example shows a typical `values-global.yaml` file for the Multicloud GitOps pattern: |
| 126 | + |
| 127 | +[source,yaml] |
| 128 | +---- |
| 129 | +--- |
| 130 | +global: |
| 131 | + pattern: multicloud-gitops |
| 132 | +
|
| 133 | + options: |
| 134 | + useCSV: false |
| 135 | + syncPolicy: Automatic |
| 136 | + installPlanApproval: Automatic |
| 137 | +
|
| 138 | +main: |
| 139 | + clusterGroupName: hub |
| 140 | +
|
| 141 | + multiSourceConfig: |
| 142 | + enabled: true |
| 143 | +---- |
| 144 | + |
| 145 | +For most patterns, the default values provide a working configuration. Customize specific fields only when your environment requires different behavior, such as pinning operator versions or deploying in a disconnected environment. |
| 146 | + |
| 147 | +[id="additional-resources"] |
| 148 | +== Additional resources |
| 149 | + |
| 150 | +* link:/values-files/[Exploring values files] |
| 151 | +* link:/learn/clustergroup-in-values-files/[ClusterGroup in values files] |
| 152 | +* link:/learn/disconnected-installation/[Disconnected installation] |
| 153 | +* link:/learn/vp_add_specific_ops_to_pattern/[Adding a specific operator version to a pattern] |
0 commit comments