disposab1e / sealed-secrets-operator-helm

[DEPRECATED] Sealed Secrets Operator (Helm) installs Sealed Secrets in OpenShift and Kubernetes.
http://sealed-secrets-operator-helm.rtfd.io/
Apache License 2.0
10 stars 16 forks source link

Installation of sealed-secrets-operator stuck on status "UpgradePending" in a fresh openshift cluster #9

Closed amitkrout closed 4 years ago

amitkrout commented 4 years ago

Steps to reproduce

Step 1: Spinup a fresh 4.6 openshift cluster

Step 2: Login to the cluster as kubeadmin

Step 3: Apply the sealed-secrets-operator subscription through oc command

oc create -f - <<EOF
  apiVersion: operators.coreos.com/v1alpha1
  kind: Subscription
  metadata: 
    labels: 
      operators.coreos.com/sealed-secrets-operator-helm.cicd: ""
    managedFields: 
      - 
        apiVersion: operators.coreos.com/v1alpha1
        manager: olm
        operation: Update
      - 
        apiVersion: operators.coreos.com/v1alpha1
        manager: catalog
        operation: Update
    name: sealed-secrets-operator-helm
    namespace: cicd
  spec: 
    channel: alpha
    installPlanApproval: Automatic
    name: sealed-secrets-operator-helm
    source: community-operators
    sourceNamespace: openshift-marketplace
    startingCSV: sealed-secrets-operator-helm.v0.0.2
EOF

Step 4: Check the operator status from the openshift console

Screen Shot 2020-10-05 at 10 22 36 PM
amitkrout commented 4 years ago

The steps i have mentioned above works fine after one round of creation and deletion of sealed secrets operator through web console.

amitkrout commented 4 years ago

@bigkevmcd Even after removing the white spaces from the subscription yaml, i am hitting the same issue on a fresh cluster.

Steps to reproduce:

  1. Create a fresh cluster (Use cluster-bot)
  2. Fetch pr https://github.com/redhat-developer/kam/pull/54/
  3. login to the cluster
  4. create namespace cicd and argocd
    $ oc create namespace cicd
    $ oc create namespace argocd
  5. Run the operator script
    $ ./scripts/setup-operators.sh

    Details log - https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/redhat-developer_kam/54/pull-ci-redhat-developer-kam-master-v4.5-integration-e2e/1315961750822064128/artifacts/integration-e2e/integration-e2e-steps/container-logs/test.log

NOTE: The steps i have mentioned above works fine after one round of creation and deletion of sealed operator through web console.

amitkrout commented 4 years ago

Reference - https://docs.openshift.com/container-platform/4.5/operators/admin/olm-adding-operators-to-cluster.html#olm-installing-operator-from-operatorhub-using-cli_olm-adding-operators-to-a-cluster