-
Notifications
You must be signed in to change notification settings - Fork 82
No olm core recipe #2619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
No olm core recipe #2619
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ba8db14
core recipe init
qpdpQ 92d4ab0
recipe update
qpdpQ 02c897a
cpfs core recipe
qpdpQ 0b2f37f
add resterOverwriteResource
qpdpQ 25e5efc
remove clusterrole and clusterrolebinding from cpfs recipe
qpdpQ 5a9ea97
update cluster rbac
qpdpQ c80ae84
namespace update
qpdpQ 3d013cc
remove cert-manager webhook check
qpdpQ b9f5fbc
update cluster role
qpdpQ 91df6cd
add service to edb chart list
qpdpQ 32f1c94
update namespace name
qpdpQ c01af55
update zen recipe
qpdpQ 31b9f64
label namespaces from common-service-maps
qpdpQ 0da900b
add operator_ns service_ns and tethered ns to ns list
qpdpQ 698f77d
update label in recipe
qpdpQ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
132 changes: 132 additions & 0 deletions
132
velero/spectrum-fusion/recipes/no-olm/core/child-cs-odlm-chart-recipe.yaml
This file contains hidden or 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,132 @@ | ||
| apiVersion: spp-data-protection.isf.ibm.com/v1alpha1 | ||
| kind: Recipe | ||
| metadata: | ||
| labels: | ||
| dp.isf.ibm.com/parent-recipe: cpfs-parent-recipe | ||
| dp.isf.ibm.com/parent-recipe-namespace: <parent recipe namespace> | ||
| name: cs-odlm-child-recipe | ||
| namespace: <child recipe namespace> | ||
| spec: | ||
| appType: common-service | ||
| groups: | ||
| - includeClusterResources: true | ||
| includedResourceTypes: | ||
| - clusterrole | ||
| - clusterrolebinding | ||
| - customresourcedefinitions.apiextensions.k8s.io | ||
| labelSelector: foundationservices.cloudpak.ibm.com=cs-cluster | ||
| name: cs-cluster-resources | ||
| type: resource | ||
| - includeClusterResources: true | ||
| includedResourceTypes: | ||
| - customresourcedefinitions.apiextensions.k8s.io | ||
| labelSelector: foundationservices.cloudpak.ibm.com=crd | ||
| name: cs-crd | ||
| type: resource | ||
| - includeClusterResources: true | ||
| includedResourceTypes: | ||
| # - clusterrole | ||
| # - clusterrolebinding | ||
| - customresourcedefinitions.apiextensions.k8s.io | ||
| labelSelector: foundationservices.cloudpak.ibm.com=odlm-cluster | ||
| name: odlm-cluster-resources | ||
| type: resource | ||
| - includedResourceTypes: | ||
| - role | ||
| - rolebinding | ||
| - serviceaccount | ||
| - deployments | ||
| - secrets | ||
| - commonservices.operator.ibm.com | ||
| labelSelector: foundationservices.cloudpak.ibm.com=cs-chart | ||
bluzarraga marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| name: cs-resources | ||
| type: resource | ||
| - includedResourceTypes: | ||
| - commonservices.operator.ibm.com | ||
| labelSelector: foundationservices.cloudpak.ibm.com=commonservice | ||
| name: cs-cr | ||
| type: resource | ||
| - includedResourceTypes: | ||
| - role | ||
| - rolebinding | ||
| - serviceaccount | ||
| - deployments | ||
| labelSelector: foundationservices.cloudpak.ibm.com=odlm-chart | ||
qpdpQ marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| name: odlm-resources | ||
| type: resource | ||
| - backupRef: cs-resources | ||
| includedResourceTypes: | ||
| - serviceaccount | ||
| - role | ||
| - rolebinding | ||
| - secrets | ||
| name: cs-rbac-resources | ||
| type: resource | ||
| - backupRef: odlm-resources | ||
| includedResourceTypes: | ||
| - serviceaccount | ||
| - role | ||
| - rolebinding | ||
| - secrets | ||
| name: odlm-rbac-resources | ||
| type: resource | ||
| - backupRef: cs-resources | ||
| includeClusterResources: true | ||
| includedResourceTypes: | ||
| - deployments | ||
| name: cs-deployment | ||
| type: resource | ||
| - backupRef: odlm-resources | ||
| includeClusterResources: true | ||
| includedResourceTypes: | ||
| - deployments | ||
| name: odlm-deployment | ||
| type: resource | ||
| hooks: | ||
| - chks: | ||
| - condition: '{$.spec.replicas} == {$.status.readyReplicas}' | ||
| name: podReady | ||
| onError: fail | ||
| timeout: 600 | ||
| name: cs-check | ||
| nameSelector: ibm-common-service-operator | ||
| namespace: <operator_ns> | ||
| onError: fail | ||
| selectResource: deployment | ||
| timeout: 600 | ||
| type: check | ||
| - chks: | ||
| - condition: '{$.spec.replicas} == {$.status.readyReplicas}' | ||
| name: podReady | ||
| onError: fail | ||
| timeout: 600 | ||
| name: odlm-check | ||
| nameSelector: operand-deployment-lifecycle-manager | ||
| namespace: <operator_ns> | ||
| onError: fail | ||
| selectResource: deployment | ||
| timeout: 600 | ||
| type: check | ||
| workflows: | ||
| - name: chart-backup | ||
| priority: 0 | ||
| sequence: | ||
| - group: cs-cluster-resources | ||
| - group: cs-crd | ||
| - group: cs-cr | ||
| - group: cs-resources | ||
| - group: odlm-cluster-resources | ||
| - group: odlm-resources | ||
| - name: chart-restore | ||
| priority: 8 | ||
| sequence: | ||
| - group: cs-cluster-resources | ||
| - group: cs-crd | ||
| - group: cs-rbac-resources | ||
| - group: cs-cr | ||
| - group: cs-deployment | ||
| - hook: cs-check/podReady | ||
| - group: odlm-cluster-resources | ||
| - group: odlm-rbac-resources | ||
| - group: odlm-deployment | ||
| - hook: odlm-check/podReady | ||
139 changes: 139 additions & 0 deletions
139
velero/spectrum-fusion/recipes/no-olm/core/child-csdb-recipe-2.10.0.yaml
This file contains hidden or 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,139 @@ | ||
| apiVersion: spp-data-protection.isf.ibm.com/v1alpha1 | ||
| kind: Recipe | ||
| metadata: | ||
| labels: | ||
| dp.isf.ibm.com/parent-recipe: cpfs-parent-recipe | ||
| dp.isf.ibm.com/parent-recipe-namespace: <parent recipe namespace> | ||
| name: csdb-child | ||
| namespace: <child recipe namespace> | ||
| spec: | ||
| appType: common-service | ||
| groups: | ||
| - labelSelector: foundationservices.cloudpak.ibm.com=cs-db-data | ||
| name: cs-db-volume | ||
| type: volume | ||
| - includeClusterResources: true | ||
| labelSelector: foundationservices.cloudpak.ibm.com=cs-db-data | ||
| includedResourceTypes: | ||
| - serviceaccount | ||
| - role | ||
| - rolebinding | ||
| - configmaps | ||
| name: cs-db-pre-deploy | ||
| type: resource | ||
| - includeClusterResources: true | ||
| labelSelector: foundationservices.cloudpak.ibm.com=cs-db-data | ||
| includedResourceTypes: | ||
| - deployments | ||
| name: cs-db-deployment | ||
| type: resource | ||
| hooks: | ||
| - chks: | ||
| - condition: '{$.status.phase} == {"Running"}' | ||
| name: podReady | ||
| onError: fail | ||
| timeout: 600 | ||
| labelSelector: 'k8s.enterprisedb.io/cluster=common-service-db,role=primary' | ||
| name: common-service-db-check | ||
| namespace: <child recipe namespace> | ||
| onError: fail | ||
| selectResource: pod | ||
| timeout: 600 | ||
| type: check | ||
| - chks: | ||
| - condition: '{$.status.phase} == {"Running"}' | ||
| name: podReady | ||
| onError: fail | ||
| timeout: 600 | ||
| labelSelector: foundationservices.cloudpak.ibm.com=cs-db-data | ||
| name: cs-db-deployment | ||
| namespace: <child recipe namespace> | ||
| onError: fail | ||
| selectResource: pod | ||
| timeout: 600 | ||
| type: check | ||
| - chks: | ||
| - condition: '{$.spec.replicas} == {$.status.readyReplicas}' | ||
| name: podReady | ||
| onError: fail | ||
| timeout: 600 | ||
| name: platform-identity-provider | ||
| nameSelector: platform-identity-provider | ||
| namespace: <child recipe namespace> | ||
| onError: fail | ||
| selectResource: deployment | ||
| timeout: 600 | ||
| type: check | ||
| - chks: | ||
| - condition: '{$.spec.replicas} == {$.status.readyReplicas}' | ||
| name: podReady | ||
| onError: fail | ||
| timeout: 600 | ||
| name: platform-auth-service | ||
| nameSelector: platform-auth-service | ||
| namespace: <child recipe namespace> | ||
| onError: fail | ||
| selectResource: deployment | ||
| timeout: 600 | ||
| type: check | ||
| - chks: | ||
| - condition: '{$.spec.replicas} == {$.status.readyReplicas}' | ||
| name: podReady | ||
| onError: fail | ||
| timeout: 600 | ||
| name: platform-identity-management | ||
| nameSelector: platform-identity-management | ||
| namespace: <child recipe namespace> | ||
| onError: fail | ||
| selectResource: deployment | ||
| timeout: 600 | ||
| type: check | ||
| - labelSelector: foundationservices.cloudpak.ibm.com=cs-db-data | ||
| name: cs-db-data | ||
| namespace: <child recipe namespace> | ||
| onError: fail | ||
| ops: | ||
| - command: | | ||
| ["/bin/bash", "-c", "/cs-db/br_cs-db.sh backup <child recipe namespace>"] | ||
| container: cs-db-br | ||
| name: cs-db-backup-pre | ||
| timeout: 600 | ||
| - command: | | ||
| ["/bin/bash", "-c", "rm -rf /cs-db/cs-db-backup/database"] | ||
| container: cs-db-br | ||
| name: cs-db-backup-post | ||
| timeout: 600 | ||
| - command: | | ||
| ["/bin/bash", "-c", "sleep 120 && /cs-db/br_cs-db.sh restore <child recipe namespace>"] | ||
| container: cs-db-br | ||
| name: restore | ||
| timeout: 2000 | ||
| selectResource: pod | ||
| type: exec | ||
| workflows: | ||
| - name: pre-backup | ||
| priority: 2 | ||
| sequence: | ||
| #csdb | ||
| - hook: cs-db-data/cs-db-backup-pre | ||
| - group: cs-db-pre-deploy | ||
| - group: cs-db-deployment | ||
| - name: post-backup | ||
| priority: 0 | ||
| sequence: | ||
| #volumes (should happen at the end) | ||
| - group: cs-db-volume | ||
| - hook: cs-db-data/cs-db-backup-post | ||
| - name: data-restore | ||
| priority: 2 | ||
| sequence: | ||
| #csdb | ||
| - hook: common-service-db-check/podReady | ||
| - group: cs-db-pre-deploy | ||
| - group: cs-db-volume | ||
| - group: cs-db-deployment | ||
| - hook: cs-db-deployment/podReady | ||
| - hook: platform-identity-management/podReady | ||
| - hook: platform-auth-service/podReady | ||
| - hook: platform-identity-provider/podReady | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.