IBM / cloudpak-gitops

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

Instructions for cp-shared installation are missing steps #83

Closed nastacio closed 2 years ago

nastacio commented 2 years ago

Describe the bug The commands in the installation are missing a helm parameter, which fails the installation of the subordinated cp-shared-operator application with a message:

Application.argoproj.io "cp-shared-operators" is invalid: spec.destination.namespace: Invalid value: "null": spec.destination.namespace in body must be of type string: "null"

That parameter in the cp-shared-operators application references a argocd_app_namespace attribute (it really should be .metadata. argocd_app_namespace for consistency with other xxxx-operator apps in other folders,) and that attribute is not specified in step 6.

To Reproduce Steps to reproduce the behavior:

  1. Follow installation instructions
  2. After step "6" is executed, the synchronization of cp-shared never completes, with the message about the error in "cp-shared-operators"
  3. See error

Expected behavior Synchronization should complete without issue.

Screenshots

argocd app get cp-shared-app 
Name:               cp-shared-app
Project:            default
Server:             https://kubernetes.default.svc
Namespace:          openshift-gitops
URL:                https://argocd-cluster-server-openshift-gitops..../applications/cp-shared-app
Repo:               https://github.com/IBM/cloudpak-gitops
Target:             main
Path:               config/argocd-cloudpaks/cp-shared
SyncWindow:         Sync Allowed
Sync Policy:        Automated
Sync Status:        OutOfSync from main (34cd1be)
Health Status:      Missing

GROUP        KIND         NAMESPACE         NAME                   STATUS     HEALTH   HOOK     MESSAGE
batch        Job          openshift-gitops  pre-cp4a-config-map    Succeeded           PreSync  job.batch/pre-cp4a-config-map created
batch        Job          openshift-gitops  pre-common-config-map  Succeeded           PreSync  job.batch/pre-common-config-map created
argoproj.io  Application  openshift-gitops  cp-shared-operators    OutOfSync  Missing           Application.argoproj.io "cp-shared-operators" is invalid: spec.destination.namespace: Invalid value: "null": spec.destination.namespace in body must be of type string: "null"
argoproj.io  Application  openshift-gitops  cp-shared-app          OutOfSync                    application.argoproj.io/cp-shared-app configured. Warning:  apply should be used on resource created by either  create --save-config or  apply

Additional context Add any other context about the problem here.