-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 100-argocd-tls
- Loading branch information
Showing
8 changed files
with
96 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
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
12 changes: 12 additions & 0 deletions
12
config/rhacm/seeds/templates/0200-gitops-managed-cluster-set.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 @@ | ||
# https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.7/html/applications/managing-applications#gitops-config | ||
--- | ||
apiVersion: cluster.open-cluster-management.io/v1beta2 | ||
kind: ManagedClusterSet | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: "200" | ||
name: gitops-clusters | ||
spec: | ||
clusterSelector: | ||
selectorType: ExclusiveClusterSetLabel |
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,25 @@ | ||
# Creates a gitopscluster resource | ||
# | ||
# Requires: | ||
# Openshift-GitOps operator be installed in the project "openshift-gitops" | ||
# Placement resource "all-gitops-clusters" exists | ||
# A clusterSet is bound to the openshift-gitops namespace | ||
--- | ||
apiVersion: apps.open-cluster-management.io/v1beta1 | ||
kind: GitOpsCluster | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: "300" | ||
name: argo-acm-importer | ||
namespace: openshift-gitops | ||
spec: | ||
# createBlankClusterSecrets: true | ||
argoServer: | ||
cluster: notused | ||
argoNamespace: openshift-gitops | ||
placementRef: | ||
kind: Placement | ||
apiVersion: cluster.open-cluster-management.io/v1beta1 | ||
name: all-gitops-clusters | ||
namespace: openshift-gitops |
12 changes: 12 additions & 0 deletions
12
config/rhacm/seeds/templates/0301-managed-cluster-set-bindings.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 @@ | ||
# Creates a ManagedClusterSetBinding to the openshift-gitops project | ||
--- | ||
apiVersion: cluster.open-cluster-management.io/v1beta1 | ||
kind: ManagedClusterSetBinding | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: "301" | ||
name: gitops-clusters | ||
namespace: openshift-gitops | ||
spec: | ||
clusterSet: gitops-clusters |
20 changes: 20 additions & 0 deletions
20
config/rhacm/seeds/templates/0302-gitops-cluster-placement-binding.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,20 @@ | ||
--- | ||
apiVersion: cluster.open-cluster-management.io/v1beta1 | ||
kind: Placement | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: "302" | ||
name: all-gitops-clusters | ||
namespace: openshift-gitops | ||
spec: | ||
tolerations: | ||
- key: cluster.open-cluster-management.io/unreachable | ||
operator: Exists | ||
- key: cluster.open-cluster-management.io/unavailable | ||
operator: Exists | ||
predicates: | ||
- requiredClusterSelector: | ||
labelSelector: | ||
matchLabels: | ||
gitops-remote: "true" |
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