Skip to content

Commit

Permalink
[Casc]: Moving to shared lib and preparing different configuration of…
Browse files Browse the repository at this point in the history
… shared lib for ha vs none-ha
  • Loading branch information
carlosrodlop committed Aug 23, 2024
1 parent 3cff735 commit e083b91
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 17 deletions.
2 changes: 2 additions & 0 deletions blueprints/02-at-scale/cbci/casc/mc/ha/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ allowCapExceptions: true
jcascMergeStrategy: "errorOnConflict"
jcasc:
- jcasc
variables:
- variables
10 changes: 10 additions & 0 deletions blueprints/02-at-scale/cbci/casc/mc/ha/jcasc/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
unclassified:
globalDefaultFlowDurabilityLevel:
durabilityHint: MAX_SURVIVABILITY
globalLibraries:
libraries:
- defaultVersion: ${sharedLibBranch}
name: "common"
retriever:
modernSCM:
libraryPath: ${sharedLibPath}
scm:
git:
remote: ${sharedLibRepo}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
variables:
- sharedLibRepo: "https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon.git"
- sharedLibBranch: shared-lib
- sharedLibPath: "blueprints/02-at-scale/cbci/shared-lib"
2 changes: 2 additions & 0 deletions blueprints/02-at-scale/cbci/casc/mc/none-ha/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ allowCapExceptions: true
jcascMergeStrategy: "errorOnConflict"
jcasc:
- jcasc
variables:
- variables
10 changes: 10 additions & 0 deletions blueprints/02-at-scale/cbci/casc/mc/none-ha/jcasc/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
unclassified:
globalDefaultFlowDurabilityLevel:
durabilityHint: PERFORMANCE_OPTIMIZED
globalLibraries:
libraries:
- defaultVersion: ${sharedLibBranch}
name: "common"
retriever:
modernSCM:
libraryPath: ${sharedLibPath}
scm:
git:
remote: ${sharedLibRepo}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
variables:
- sharedLibRepo: "https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon.git"
- sharedLibBranch: shared-lib
- sharedLibPath: "blueprints/02-at-scale/cbci/shared-lib"
10 changes: 0 additions & 10 deletions blueprints/02-at-scale/cbci/casc/mc/parent/jcasc/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ unclassified:
endpoint: ${ot_endpoint}
cascItemsConfiguration:
variableInterpolationEnabledForAdmin: true
globalLibraries:
libraries:
- defaultVersion: ${sharedLibBranch}
name: "common"
retriever:
modernSCM:
libraryPath: ${sharedLibPath}
scm:
git:
remote: ${sharedLibRepo}
aws:
awsCredentials:
region: "${sec_awsRegion}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ variables:
- ot_endpoint: "http://tempo.kube-prometheus-stack.svc.cluster.local:4317"
- s3bucketPreffix: "cbci"
- regSecretsName: "cbci-sec-reg"
- sharedLibRepo: "https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon.git"
- sharedLibBranch: develop
- sharedLibPath: "blueprints/02-at-scale/cbci/shared-lib"

4 changes: 2 additions & 2 deletions blueprints/02-at-scale/cbci/casc/oc/items/root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ items:
"cloudbees.prometheus": "true"
properties:
- configurationAsCode:
bundle: "develop/none-ha"
bundle: "shared-lib/none-ha"
# Casc, HA
- kind: managedController
name: team-c-ha
Expand Down Expand Up @@ -100,4 +100,4 @@ items:
"cloudbees.prometheus": "true"
properties:
- configurationAsCode:
bundle: "develop/ha"
bundle: "shared-lib/ha"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
- message: "Welcome to the CloudBees CI blueprint add-on: At scale!"
- cascRepo: "https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon.git"
- cascBranch: develop
- cascBranch: shared-lib
- cascPathController: "/blueprints/02-at-scale/cbci/casc/mc/"
- ldapManagerDN: "cn=admin,dc=acme,dc=org"
- ldapRootDN: "dc=acme,dc=org"
Expand Down
2 changes: 1 addition & 1 deletion blueprints/02-at-scale/k8s/cbci-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ OperationsCenter:
Retriever:
Enabled: true
scmRepo: "https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon.git"
scmBranch: develop
scmBranch: shared-lib
scmBundlePath: blueprints/02-at-scale/cbci/casc/oc
scmPollingInterval: PT20M
Persistence:
Expand Down

0 comments on commit e083b91

Please sign in to comment.