Details
-
Bug
-
Resolution: Not a Bug
-
Minor
-
None
-
None
-
1
-
False
-
None
-
False
Description
Description of problem:
From github issue- "We are using operatorhub.io to install and manage ArgoCd. Our ApplicationSets do not create applications anymore. (It was working before)"
Github issue: https://github.com/argoproj-labs/argocd-operator/issues/898
Prerequisites (if any, like setup, operators/versions):
argocd-operator v0.6.0{}
Steps to Reproduce
apply the following to your cluster:
- Chart:
apiVersion: v2 name: argocd-operator description: Deploys the OLM resources to start an ArgoCD operator type: application version: 0.1.0 appVersion: "v0.3.0"
- Applicationset manifest:
# Source: team-ns/templates/argocd/argocd-applicationset.yaml apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: team-admin-nodejs-helloworld namespace: argocd # ApplicationSets must always be in the argocd namespace spec: generators: - git: repoURL: https://gitea.174.138.106.115.nip.io/otomi/values.git revision: HEAD files: - path: "env/teams/workloads/admin/nodejs-helloworld.yaml" template: metadata: name: 'team-admin-nodejs-helloworld' spec: project: 'team-admin' # project is restricted source: repoURL: 'https://github.com/redkubes/nodejs-helloworld.git' targetRevision: 'HEAD' path: 'chart/hello-world' chart: '' helm: # The argocd template the values parameter is taken from the git generator path values: '{{values}}' releaseName: 'nodejs-helloworld' syncPolicy: automated: allowEmpty: false prune: false selfHeal: true retry: backoff: duration: 10s factor: 3 limit: 3 syncOptions: [] destination: server: 'https://kubernetes.default.svc' namespace: 'team-admin' # helm-specific config ---
Actual results:
describe argocd/team-admin-nodejs-helloworld shows:
Name: team-admin-nodejs-helloworld Namespace: argocd Labels: app.kubernetes.io/managed-by=Helm Annotations: meta.helm.sh/release-name: team-ns-admin meta.helm.sh/release-namespace: team-admin API Version: argoproj.io/v1alpha1 Kind: ApplicationSet Metadata: Creation Timestamp: 2023-04-30T20:00:18Z Generation: 1 Managed Fields: API Version: argoproj.io/v1alpha1 Fields Type: FieldsV1 fieldsV1: f:metadata: f:annotations: .: f:meta.helm.sh/release-name: f:meta.helm.sh/release-namespace: f:labels: .: f:app.kubernetes.io/managed-by: f:spec: .: f:generators: f:template: .: f:metadata: .: f:name: f:spec: .: f:destination: .: f:namespace: f:server: f:project: f:source: .: f:helm: .: f:releaseName: f:values: f:path: f:repoURL: f:targetRevision: f:syncPolicy: .: f:automated: .: f:allowEmpty: f:prune: f:selfHeal: f:retry: .: f:backoff: .: f:duration: f:factor: f:limit: f:syncOptions: Manager: helm Operation: Update Time: 2023-04-30T20:00:18Z Resource Version: 27198 UID: 2d8c1f2e-12b2-4ef4-a222-114543c34f44 Spec: Generators: Git: Files: Path: env/teams/workloads/admin/nodejs-helloworld.yaml Repo URL: https://gitea.52.215.106.110.nip.io/otomi/values.git Revision: HEAD Template: Metadata: Name: team-admin-nodejs-helloworld Spec: Destination: Namespace: team-admin Server: https://kubernetes.default.svc Project: team-admin Source: Helm: Release Name: nodejs-helloworld Values: {{values}} Path: chart/hello-world Repo URL: https://github.com/redkubes/nodejs-helloworld.git Target Revision: HEAD Sync Policy: Automated: Allow Empty: false Prune: false Self Heal: true Retry: Backoff: Duration: 10s Factor: 3 Limit: 3 Sync Options: Events: <none>
(Notice there also is no events or status)
Expected results:
Application should popup within argocd console.
Reproducibility (Always/Intermittent/Only Once):
Acceptance criteria:
Definition of Done:
Additional info (Such as Logs, Screenshots, etc):
Logs from olm/olm-operator:
time="2023-04-30T23:44:28Zlevel=debug msg="failed to get the owner subscription csv=packageserver time="2023-04-30T23:44:28Zlevel=debug msg="no env var to inject into csvcsv=packageserver time="2023-04-30T23:44:28Zlevel=debug msg="skipping copy for OwnNamespace operatorgroupcsv=packageserver id=9RZ/t namespace=olm phase=Succeeded time="2023-04-30T23:44:28Zlevel=debug msg="skipping copy for OwnNamespace operatorgroupcsv=argocd-operator.v0.6.0 id=F+Ztq namespace=argocd phase=Succ time="2023-04-30T23:44:43Zlevel=debug msg="Processing olmConfig time="2023-04-30T23:46:20Zlevel=debug msg="syncing CSVcsv=packageserver id=Abhp+ namespace=olm phase=Succeeded time="2023-04-30T23:46:20Zlevel=debug msg="syncing CSVcsv=argocd-operator.v0.6.0 id=hzRJ5 namespace=argocd phase=Succeeded time="2023-04-30T23:46:20Zlevel=debug msg="annotations correctannotationTargets=olm opgroupTargets=olm time="2023-04-30T23:46:20Zlevel=debug msg="annotations correctannotationTargets=argocd opgroupTargets=argocd time="2023-04-30T23:46:20Zlevel=debug msg="csv in operatorgroupcsv=packageserver id=yWlNd namespace=olm opgroup=olm-operators phase=Succeeded time="2023-04-30T23:46:20Zlevel=debug msg="csv in operatorgroupcsv=argocd-operator.v0.6.0 id=UQ4/M namespace=argocd opgroup=argocd-operator phase=Succ time="2023-04-30T23:46:20Zlevel=debug msg="no intersecting operatorgroups provide the same apisapis=PackageManifest.v1.packages.operators.coreos.com c time="2023-04-30T23:46:20Zlevel=debug msg="no intersecting operatorgroups provide the same apisapis="AppProject.v1alpha1.argoproj.io,Application.v1alp time="2023-04-30T23:46:20Zlevel=debug msg="checking packageserver time="2023-04-30T23:46:20Zlevel=debug msg="checking if csv is replacing an older version time="2023-04-30T23:46:20Zlevel=debug msg="checking argocd-operator.v0.6.0 time="2023-04-30T23:46:20Zlevel=debug msg="checking if csv is replacing an older version time="2023-04-30T23:46:20Zlevel=debug msg="unable to get previous csverror="clusterserviceversions.operators.coreos.com \"argocd-operator.v0.5.0\not time="2023-04-30T23:46:20Zlevel=debug msg="perm.ServiceAccountName: olm-operator-serviceaccount time="2023-04-30T23:46:20Zlevel=debug msg="perm.ServiceAccountName: argocd-operator-controller-manager time="2023-04-30T23:46:20Zlevel=debug msg="failed to get the owner subscription csv=packageserver time="2023-04-30T23:46:20Zlevel=debug msg="no env var to inject into csvcsv=packageserver time="2023-04-30T23:46:20Zlevel=debug msg="perm.ServiceAccountName: argocd-operator-controller-manager time="2023-04-30T23:46:20Zlevel=debug msg="skipping copy for OwnNamespace operatorgroupcsv=argocd-operator.v0.6.0 id=hzRJ5 namespace=argocd phase=Succ time="2023-04-30T23:46:20Zlevel=debug msg="skipping copy for OwnNamespace operatorgroupcsv=packageserver id=Abhp+ namespace=olm phase=Succeeded