Skip to content

Commit

Permalink
Test deployment with values-global clusterGroupName changed
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiol committed Aug 7, 2024
1 parent ba5f47c commit 4203328
Show file tree
Hide file tree
Showing 7 changed files with 201 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/all/cluster-ops/base/banner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleNotification
metadata:
name: purpose-banner
spec:
text: Jonny Rocks FIPS
location: BannerTop
color: '#fff'
backgroundColor: '#000000'
5 changes: 5 additions & 0 deletions charts/all/cluster-ops/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- banner.yaml
8 changes: 8 additions & 0 deletions charts/all/cluster-ops/overlays/edge-1/banner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleNotification
metadata:
name: purpose-banner
spec:
text: EDGE-1
backgroundColor: '#00ff00'
8 changes: 8 additions & 0 deletions charts/all/cluster-ops/overlays/edge-1/kustimization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
../../base/

patchesStrategicMerge:
- banner.yaml
8 changes: 8 additions & 0 deletions charts/all/cluster-ops/overlays/hub/banner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: console.openshift.io/v1
kind: ConsoleNotification
metadata:
name: purpose-banner
spec:
text: HUBPROD
backgroundColor: '#ff0000'
8 changes: 8 additions & 0 deletions charts/all/cluster-ops/overlays/hub/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
../../base/

patchesStrategicMerge:
- banner.yaml
154 changes: 154 additions & 0 deletions values-hub-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
clusterGroup:
name: hub-prod
isHubCluster: true
namespaces:
- open-cluster-management
- vault
- golang-external-secrets
- config-demo
- hello-world
subscriptions:
acm:
name: advanced-cluster-management
namespace: open-cluster-management
channel: release-2.10
#csv: advanced-cluster-management.v2.6.1
projects:
- hub
- config-demo
- hello-world

sharedValueFiles:
- '/overrides/values-{{ $.Values.global.clusterPlatform }}.yaml'

applications:
acm:
name: acm
namespace: open-cluster-management
project: hub
path: common/acm
ignoreDifferences:
- group: internal.open-cluster-management.io
kind: ManagedClusterInfo
jsonPointers:
- /spec/loggingCA
banner:
name: cluster-ops
namespace: cluster-ops
kustomize: true
project: cluster-ops
path: charts/all/cluster-ops/overlay/hub-prod

vault:
name: vault
namespace: vault
project: hub
path: common/hashicorp-vault
golang-external-secrets:
name: golang-external-secrets
namespace: golang-external-secrets
project: hub
path: common/golang-external-secrets
config-demo:
name: config-demo
namespace: config-demo
project: config-demo
path: charts/all/config-demo
hello-world:
name: hello-world
namespace: hello-world
project: hello-world
path: charts/all/hello-world
imperative:
jobs:
- name: hello-world
# ansible playbook to be run
playbook: common/ansible/playbooks/hello-world/hello-world.yaml
# per playbook timeout in seconds
timeout: 234
# verbosity: "-v"
managedClusterGroups:
exampleRegion:
name: group-one
acmlabels:
- name: clusterGroup
value: group-one
helmOverrides:
- name: clusterGroup.isHubCluster
value: false

# Before enabling cluster provisioning, ensure AWS and/or Azure
# credentials and OCP pull secrets are defined in Vault.
# See values-secret.yaml.template
#
#clusterPools:
# exampleAWSPool:
# name: aws-ap
# openshiftVersion: 4.10.18
# baseDomain: blueprints.rhecoeng.com
# platform:
# aws:
# region: ap-southeast-2
# clusters:
# - One
#
# exampleAzurePool:
# name: azure-us
# openshiftVersion: 4.10.18
# baseDomain: blueprints.rhecoeng.com
# platform:
# azure:
# baseDomainResourceGroupName: dojo-dns-zones
# region: eastus
# clusters:
# - Two
# - Three
# To have apps in multiple flavors, use namespaces and use helm overrides as appropriate
#
# pipelines:
# name: pipelines
# namespace: production
# project: datacenter
# path: applications/pipeline
# repoURL: https://github.com/you/applications.git
# targetRevision: stable
# overrides:
# - name: myparam
# value: myparam
#
# pipelines_staging:
# - name: pipelines
# namespace: staging
# project: datacenter
# path: applications/pipeline
# repoURL: https://github.com/you/applications.git
# targetRevision: main
#
# Additional applications
# Be sure to include additional resources your apps will require
# +X machines
# +Y RAM
# +Z CPU
# vendor-app:
# name: vendor-app
# namespace: default
# project: vendor
# path: path/to/myapp
# repoURL: https://github.com/vendor/applications.git
# targetRevision: main

# managedSites:
# factory:
# name: factory
# # repoURL: https://github.com/dagger-refuse-cool/manuela-factory.git
# targetRevision: main
# path: applications/factory
# helmOverrides:
# - name: site.isHubCluster
# value: false
# clusterSelector:
# matchExpressions:
# - key: vendor
# operator: In
# values:
# - OpenShift

0 comments on commit 4203328

Please sign in to comment.