IBM / cloudpak-gitops

Deployment of IBM Cloud Paks using ArgoCD / Red Hat GitOps operator.
Apache License 2.0
22 stars 23 forks source link

feat: Default to ODF storage classes #89

Closed nastacio closed 2 years ago

nastacio commented 2 years ago

Closes: #88

Description of changes:

Output of argocd app list command or screenshot of the ArgoCD Application synchronization window showing successful application of changes in this branch.

argocd app list
NAME                 CLUSTER                         NAMESPACE         PROJECT  STATUS     HEALTH       SYNCPOLICY  CONDITIONS  REPO                                        PATH                                  TARGET
argo-app             https://kubernetes.default.svc  openshift-gitops  default  Synced     Healthy      Auto-Prune  <none>      https://github.com/IBM/cloudpak-gitops.git  config/argocd-ga                      88-favor-odf-sc
cp-shared-app        https://kubernetes.default.svc  ibm-cloudpaks     default  Synced     Healthy      Auto-Prune  <none>      https://github.com/IBM/cloudpak-gitops.git  config/argocd-cloudpaks/cp-shared     88-favor-odf-sc
cp-shared-operators  https://kubernetes.default.svc  ibm-cloudpaks     default  Synced     Healthy      Auto-Prune  <none>      https://github.com/IBM/cloudpak-gitops.git  config/cloudpaks/cp-shared/operators  88-favor-odf-sc
cp4a-app             https://kubernetes.default.svc  cp4a              default  OutOfSync  Healthy      Auto-Prune  <none>      https://github.com/IBM/cloudpak-gitops.git  config/argocd-cloudpaks/cp4a          88-favor-odf-sc
cp4aiops-app         https://kubernetes.default.svc  cp4aiops          default  Synced     Progressing  Auto-Prune  <none>      https://github.com/IBM/cloudpak-gitops.git  config/argocd-cloudpaks/cp4aiops      88-favor-odf-sc
cp4aiops-operators   https://kubernetes.default.svc  cp4aiops          default  Synced     Healthy      Auto-Prune  <none>      https://github.com/IBM/cloudpak-gitops.git  config/cloudpaks/cp4aiops/operators   88-favor-odf-sc
cp4aiops-resources   https://kubernetes.default.svc  cp4aiops          default  Synced     Progressing  Auto-Prune  <none>      https://github.com/IBM/cloudpak-gitops.git  config/cloudpaks/cp4aiops/resources   88-favor-odf-sc

Evidence of cp-shared app populating the respective ConfigMap objects correctly when the repository is applied against a ROKS cluster containing ODF (the previous version of the code would populate the storage class fields with ROKS storage classes) :

 oc describe ConfigMap argocd-cp4a-config -n openshift-gitops
Name:         argocd-cp4a-config
Namespace:    openshift-gitops
Labels:       <none>
Annotations:  <none>

Data
====
storageclass.gold:
----
ocs-storagecluster-cephfs
storageclass.silver:
----
ocs-storagecluster-cephfs
serviceaccount.argocd_application_controller:
----
openshift-gitops-argocd-application-controller
shared_configuration.sc_deployment_platform:
----
ROKS
storageclass.bronze:
----
ocs-storagecluster-cephfs
oc describe ConfigMap argocd-cp4aiops-config -n openshift-gitops
Name:         argocd-cp4aiops-config
Namespace:    openshift-gitops
Labels:       <none>
Annotations:  <none>

Data
====
cluster_domain:
----
pd-cp4aiops-1e3af63cfd19e855098d645120e18baf-0000.upi.containers.appdomain.cloud
serviceaccount.argocd_application_controller:
----
openshift-gitops-argocd-application-controller
storageclass.rwo:
----
ocs-storagecluster-ceph-rbd
storageclass.rwx:
----
ocs-storagecluster-cephfs