Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d62fef

Browse files
authored
Shared config repo promotion settings (codefresh-io#1050)
* Update shared-configuration.md* Update ISC with promotion infoUpdated ISC structure with new promotion subfolders and descriptions* Update shared-configuration.md* Update shared-configuration.mdFixed table row and replaced CRDs with manifests, and updated names* Update shared-configuration.mdCommented out link to sample ISC repo* Update shared-configuration.md* Update shared-configuration.md* Update shared-configuration.md* Update shared-configuration.md
1 parent82abf9b commit2d62fef

File tree

2 files changed

+55
-21
lines changed

2 files changed

+55
-21
lines changed

‎_docs/installation/gitops/monitor-manage-runtimes.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Here is a description of the information in the Topology view.
102102
|**Search and View options**| {::nomarkdown}<ul><li>Find a Runtime or its clusters by typing part of the Runtime/cluster name, and then navigate to the entries found. </li> <li>Topology view options: Resize to window, zoom in, zoom out, full screen view.</li></ul> {:/}|
103103

104104
##Designating Configuration Runtimes
105-
Designate any GitOps Runtime, including the Hosted GitOps Runtime, as a Configuration Runtime to manage platform-level resources which are Runtime-agnostic. These resources are crucial for functionality related to Products in GitOps<!---, and Promotions such as Promotion Policies, Promotion Templates, and Promotion Flows-->.
105+
Designate any GitOps Runtime, including the Hosted GitOps Runtime, as a Configuration Runtime to manage platform-level resources which are Runtime-agnostic. These resources are crucial for functionality related to Products in GitOps, and Promotions such as Promotion Policies, Promotion Templates, and Promotion Flows.
106106

107107
#####Single vs multiple Configuration Runtimes
108108
You can designate a single Runtime or multiple Runtimes as Configuration Runtimes. You may want to designate more than one Configuration Runtime for redundancy. Codefresh makes sure that there are no duplicate resources among the designated Configuration Runtimes if there are multiple such Runtimes.

‎_docs/installation/gitops/shared-configuration.md‎

Lines changed: 54 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,27 @@ While it is useful to understand its structure, we recommend using it for refere
2727
***Runtime-specific configuration**
2828
With the Shared Configuration Repository, you can create subdirectories for different GitOps Runtimes, and place configuration manifests that are only applied to specific GitOps Runtimes. You have fine-grained control over the configuration of individual Runtimes without affecting others.
2929

30-
See[Shared Configuration Repo structure](#shared-configuration-repo-structure)
30+
31+
>**NOTE**
32+
In the documentation, we use Shared Configuration Repository or Shared Config Repo for clarity.
33+
In code samples and internal references, it is represented as`isc`.
34+
35+
##Examples of configuration definitions in Shared Repo
36+
37+
Here are a few types of configuration definitions stored in the Shared Configuration Repository:
38+
* In-cluster and[managed clusters]({{site.baseurl}}/docs/installation/gitops/managed-cluster/)
39+
*[Git Sources]({{site.baseurl}}/docs/installation/gitops/git-sources/)
40+
*[Integrations]({{site.baseurl}}/docs/gitops-integrations/image-enrichment-overview/) between Codefresh and third-parties for GitOps
41+
*[OAuth2]({{site.baseurl}}/docs/administration/account-user-management/oauth-setup/) authentication applications
42+
* Manifests for promotion entities:
43+
*[Products]({{site.baseurl}}/docs/products/configure-product-settings/)
44+
*[Promotion Workflows]({{site.baseurl}}/docs/promotions/configuration/promotion-workflow)
45+
*[Promotion Policies]({{site.baseurl}}/docs/promotions/configuration/promotion-policy/)
46+
*[Promotion Flows]({{site.baseurl}}/docs/promotions/configuration/promotion-flow/)
47+
*[Promotion Templates]({{site.baseurl}}/docs/products/configure-product-settings/#configure-promotion-settings)
48+
49+
See[Shared Configuration Repo structure](#shared-configuration-repo-structure).
50+
3151

3252
##GitOps Runtimes & Shared Configuration Repos
3353

@@ -80,33 +100,38 @@ You can see the URL of the Shared Configuration Repo for your Runtime in the **O
80100
max-width="60%"
81101
%}
82102

83-
##Examples of configuration definitions in Shared Repo
84-
85-
Here are a few types of configuration definitions stored in the Shared Configuration Repository:
86-
* In-cluster and[managed clusters]({{site.baseurl}}/docs/installation/gitops/managed-cluster/)
87-
*[Git Sources]({{site.baseurl}}/docs/installation/gitops/git-sources/)
88-
*[Integrations]({{site.baseurl}}/docs/gitops-integrations/image-enrichment-overview/) between Codefresh and third-parties for GitOps
89-
*[OAuth2]({{site.baseurl}}/docs/administration/account-user-management/oauth-setup/) authentication applications
90103

91104
##Shared Configuration Repo structure
92-
Below is a representation of the structure of the repository with the shared configuration.
93-
See a[sample repo](https://github.com/codefresh-contrib/example-shared-config-repo){:target="\_blank"}.
105+
Below is a representation of the structure of the repository with the shared configuration in the GitOps Runtime designated as the Configuration Runtime.
94106

95107
```
96108
97109
├── resources <───────────────────┐
98110
│   ├── all-runtimes-all-clusters │
99111
│   │   ├── cm-all.yaml │
100112
│   │   └── subfolder │
101-
│   │   └── manifest2.yaml │
102-
│   ├── control-planes │
103113
│   │ └── manifest3.yaml │
114+
│ │ └── promotion-workflows │ # stores promotion workflow manifests available to all runtimes
115+
│   │   └── smoke-tests.yaml │
104116
│   ├── runtimes │
105117
│   │ ├── runtime1 │
106118
│   │ │ └── manifest4.yaml │
107119
│   │ └── runtime2 │
108120
│   │ └── manifest5.yaml │
109121
│   └── manifest6.yaml │
122+
└── app-projects │
123+
└── configurations │ # syncs to cluster by runtimes designated as Configuration Runtime
124+
│   ├── products │ # stores product manifests with all product settings except assigned applications
125+
│   │   └── loans.yaml │
126+
│   ├── promotion-flows │ # stores promotion flow manifests with promotion orchestration settings
127+
│   │   ├── base-flow.yaml │
128+
│   │   └── hot-fix.yaml │
129+
│   └── promotion-policies │ # stores promotion policy manifests for products/environments with promotion workflows & promotion action
130+
│   │   ├── base-flow.yaml │
131+
│   │ └── prod-pr.yaml │
132+
│   │ └── loan-policy.yaml │
133+
│   └── promotion-templates │ # stores promotion template manifests for products with source info for version & properties to promote
134+
│   └── demo-template.yaml │
110135
└── runtimes │
111136
├── runtime1 │ # referenced by "production-isc" argo-cd application, applied to the cluster by "cap-app-proxy"
112137
│   ├── in-cluster.yaml ─┤ # manage `include` field determines which dirs/files to sync to cluster
@@ -118,21 +143,29 @@ See a [sample repo](https://github.com/codefresh-contrib/example-shared-config-r
118143

119144
###`resources` directory
120145

121-
The`resources` directoryholds the resources shared by_all_ clusters managed bytheGitOps Runtimes:
146+
The`resources` directorycontains the resources shared by_all_ clusters managed by GitOps Runtimes.
122147

123-
*`resources/all-runtimes-all-clusters`: Every resource manifest in this subdirectory is applied to all the GitOps Runtimes in the account, and to all the clusters managed by those Runtimes. In the above example,`manifest2.yaml` is applied to both`runtime1` and`runtime2`.
124-
*`resources/control-planes`: Optional. When defined, every resource manifest in this subdirectory is applied to each Runtime’s`in-cluster`.
125-
Config map resources for example, when committed to this subdirectory, are deployed to each Runtime’s`in-cluster`.
126-
*`resources/runtimes/<runtime_name>`: Optional. Runtime-specific subdirectory. Every resource manifest in a runtime-specific subdirectory is applied to only the GitOps Runtime defined by`<runtime_name>`.
127-
In the above example,`manifest4.yaml` is applied only to`runtime1`, and`manifest5.yaml` is applied only to`runtime2`.
148+
{: .table .table-bordered .table-hover}
149+
| Shared Configuration Repo| Description|
150+
| ----------| --------|
151+
|`resources/all-runtimes-all-clusters`| Contains resource manifests applied to all the GitOps Runtimes in the account and to all the clusters managed by those Runtimes. In the above example,`manifest2.yaml` is applied to both`runtime1` and`runtime2`.|
152+
|`resources/all-runtimes-all-clusters/promotion-workflows`| Stores manifests of Promotion Workflows, available to all Runtimes in the account.<br>See[Promotion Workflows]({{site.baseurl}}/docs/configuration/promotion-workflow).|
153+
|`resources/control-planes`| Optional. When defined, applies every resource manifest to each Runtime’s`in-cluster`. Config map resources for example, when committed to this subdirectory, are deployed to each Runtime’s`in-cluster`.|
154+
|`resources/app-projects`| Contains application project resources which control deployment destinations for applications.|
155+
|`resources/configurations`| Contains platform-level resources which are Runtime-agnostic, essential for functionality related to product and promotion entities in GitOps.|
156+
|`resources/configurations/products`|Contains manifests of product entities. All settings including source location for application version, promotable properties, promotion flows with trigger conditions if defined are saved. Note that applications assigned to products are not saved in the manifest. Product manifests are available to users with the required ABAC permissions. <br>See[Product Settings]({{site.baseurl}}/docs/products/configure-product-settings/) and[Product YAML]({{site.baseurl}}/docs/promotions/configuration/yaml/product-crd/).|
157+
|`resources/configurations/promotion-flows`| Contains manifests of promotion flows with the trigger and target environments, and custom promotion policy settings, if any.<br>See[Promotion Flow configuration]({{site.baseurl}}/docs/promotions/configuration/promotion-flow/) and[Promotion Flow YAML]({{site.baseurl}}/docs/promotions/configuration/yaml/promotion-flow-crd/).|
158+
|`resources/configurations/promotion-policies`| Contains manifests of promotion policies with the Pre- and Post-Action Workflows if defined, the Promotion Action, and target products and environments.<br>See[Promotion Policy configuration]({{site.baseurl}}/docs/promotions/configuration/promotion-policy/) and[Promotion Policy YAML]({{site.baseurl}}/docs/promotions/configuration/yaml/product-crd/).|
159+
|`resources/configurations/promotion-templates`| Contains manifests of promotion templates defining the sources for the release version and the properties to be promoted. <br>See[Promotion Template configuration]({{site.baseurl}}/docs/products/configure-product-settings/#configure-promotion-settings) and[Promotion Template YAML]({{site.baseurl}}/docs/promotions/configuration/yaml/promotion-template-crd/).|
160+
|`resources/runtimes/<runtime_name>`| Optional. Runtime-specific subdirectory. Every resource manifest in a runtime-specific subdirectory is applied to only the GitOps Runtime defined by`<runtime_name>`. In the above example,`manifest4.yaml` is applied only to`runtime1`, and`manifest5.yaml` is applied only to`runtime2`.|
128161

129162

130163

131164
###`runtimes` directory
132165
The`runtimes` directory includes subdirectories specific to each GitOps Runtime installed in the cluster. Every subdirectory always has an`in-cluster.yaml`, and optionally, application manifest YAMLs for other clusters.
133166
The`runtimes/<runtime1>` subdirectory for example, includes the`in-cluster.yaml`, and a`remote-cluster.yaml` for the remote cluster also managed by the same Runtime.
134167

135-
**Example application manifest for in-cluster.yaml**
168+
#####Example application manifest for in-cluster.yaml
136169

137170
```yaml
138171
apiVersion:argoproj.io/v1alpha1
@@ -264,7 +297,7 @@ Here's how to do this with the Shared Configuration Repo:
264297

265298
{{site.data.callout.callout_tip}}
266299
**TIP**
267-
You can then monitor these applications in the GitOpsOverview Dashboard, and drill down to each application in the GitOps Apps dashboard.
300+
You can then monitor these applications in the GitOpsApps dashboard, and drill down to each application in the GitOps Apps dashboard.
268301
{{site.data.callout.end}}
269302

270303

@@ -274,6 +307,7 @@ You can then monitor these applications in the GitOps Overview Dashboard, and dr
274307
[Hosted GitOps Runtime installation]({{site.baseurl}}/docs/installation/gitops/hosted-runtime/)
275308
[Hybrid GitOps Runtime installation]({{site.baseurl}}/docs/installation/gitops/hybrid-gitops-helm-installation/)
276309

310+
277311

278312

279313

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp