apiVersion: argoproj.io/v1beta1 kind: ArgoCD metadata: annotations: argocd.argoproj.io/compare-options: IgnoreExtraneous argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true argocd.argoproj.io/sync-wave: "0" kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"argoproj.io/v1beta1","kind":"ArgoCD","metadata":{"annotations":{"argocd.argoproj.io/compare-options":"IgnoreExtraneous","argocd.argoproj.io/sync-options":"SkipDryRunOnMissingResource=true","argocd.argoproj.io/sync-wave":"0"},"labels":{"argocd.argoproj.io/instance":"kub-ctl-001-argocd","kubus-it.de/cp-app":"cp-team","kubus-it.de/cp-sm":"SM-475","kubus-it.de/cp-tenant":"kub","tenant":"kub-cp"},"name":"argocd","namespace":"cp-argocd"},"spec":{"applicationSet":{"logLevel":"warn"},"controller":{"logFormat":"json","logLevel":"warn","processors":{"operation":100,"status":100},"sharding":{"clustersPerShard":1,"dynamicScalingEnabled":true,"maxShards":7,"minShards":1}},"disableAdmin":true,"extraConfig":{"accounts.pipeline":"apiKey","application.instanceLabelKey":"argocd.argoproj.io/instance","exec.enabled":"false"},"helpChatText":"","helpChatURL":"","initialSSHKnownHosts":{"excludedefaulthosts":true},"nodePlacement":{"nodeSelector":{"node-role.kubernetes.io/infra":""},"tolerations":[{"effect":"NoSchedule","key":"node-role.kubernetes.io/infra","operator":"Equal"}]},"rbac":{"defaultPolicy":"role:readonly","policy":"g, KUB-R-CP-CTL-ADMIN, role:admin\ng, pipeline, role:admin\n","scopes":"[groups]"},"redis":{"autotls":"openshift"},"repo":{"logFormat":"json","logLevel":"warn"},"resourceExclusions":"- apiGroups:\n - \"*\"\n kinds:\n - \"PipelineRun\"\n - \"TaskRun\"\n clusters:\n - \"*\"\n","resourceHealthChecks":[{"check":"hs = {}\nhs.status = \"Progressing\"\nhs.message = \"\"\nif obj.status ~= nil then\n if obj.status.health ~= nil then\n hs.status = obj.status.health.status\n if obj.status.health.message ~= nil then\n hs.message = obj.status.health.message\n end\n end\nend\nreturn hs\n","group":"argoproj.io","kind":"Application"},{"check":"health_status = {}\nif obj.status ~= nil then\n if obj.status.conditions ~= nil then\n numDegraded = 0\n numPending = 0\n msg = \"\"\n for i, condition in pairs(obj.status.conditions) do\n msg = msg .. i .. \": \" .. condition.type .. \" | \" .. condition.status .. \"\\n\"\n if condition.type == \"InstallPlanPending\" and condition.status == \"True\" then\n numPending = numPending + 1\n elseif (condition.type == \"CatalogSourcesUnhealthy\" or condition.type == \"InstallPlanMissing\" or condition.type == \"InstallPlanFailed\" or condition.type == \"ResolutionFailed\") and condition.status == \"True\" then\n numDegraded = numDegraded + 1\n end\n end\n if numDegraded == 0 and numPending == 0 then\n health_status.status = \"Healthy\"\n health_status.message = msg\n return health_status\n elseif numPending \u003e 0 and numDegraded == 0 then\n if obj.spec.installPlanApproval == \"Manual\" then\n health_status.status = \"Suspended\"\n else\n health_status.status = \"Progressing\"\n end\n health_status.message = \"An install plan for a subscription is pending installation\"\n return health_status\n else\n health_status.status = \"Degraded\"\n health_status.message = msg\n return health_status\n end\n end\nend\nhealth_status.status = \"Progressing\"\nhealth_status.message = \"An install plan for a subscription is pending installation\"\nreturn health_status\n","group":"operators.coreos.com","kind":"Subscription"}],"resourceIgnoreDifferences":{"resourceIdentifiers":[{"customization":{"managedFieldsManagers":["openshift-controller-manager"]},"group":"","kind":"ServiceAccount"}]},"server":{"host":"argocd.apps.kub-ctl-001.cp.kubus-it.de","logFormat":"json","logLevel":"warn","route":{"enabled":true,"tls":{"insecureEdgeTerminationPolicy":"Redirect","termination":"reencrypt"}}},"sso":{"dex":{"openShiftOAuth":true},"provider":"dex"},"statusBadgeEnabled":true,"usersAnonymousEnabled":false}} creationTimestamp: "2021-12-17T14:01:29Z" finalizers: - argoproj.io/finalizer generation: 40 labels: argocd.argoproj.io/instance: kub-ctl-001-argocd kubus-it.de/cp-app: cp-team kubus-it.de/cp-sm: SM-475 kubus-it.de/cp-tenant: kub tenant: kub-cp name: argocd namespace: cp-argocd resourceVersion: "1668886528" uid: 9394a828-d3cd-483c-9f35-17575e1b7b32 spec: applicationSet: logLevel: warn webhookServer: ingress: enabled: false route: enabled: false controller: logFormat: json logLevel: warn processors: operation: 100 status: 100 sharding: clustersPerShard: 1 dynamicScalingEnabled: true maxShards: 10 minShards: 1 disableAdmin: true extraConfig: accounts.pipeline: apiKey application.instanceLabelKey: argocd.argoproj.io/instance exec.enabled: "false" grafana: enabled: false ingress: enabled: false route: enabled: false ha: enabled: false helpChatText: "" helpChatURL: "" initialSSHKnownHosts: excludedefaulthosts: true monitoring: enabled: false nodePlacement: nodeSelector: node-role.kubernetes.io/infra: "" tolerations: - effect: NoSchedule key: node-role.kubernetes.io/infra operator: Equal notifications: enabled: false prometheus: enabled: false ingress: enabled: false route: enabled: false rbac: defaultPolicy: role:readonly policy: | g, KUB-R-CP-CTL-ADMIN, role:admin g, pipeline, role:admin scopes: '[groups]' redis: autotls: openshift repo: logFormat: json logLevel: warn resourceExclusions: | - apiGroups: - "*" kinds: - "PipelineRun" - "TaskRun" clusters: - "*" resourceHealthChecks: - check: | hs = {} hs.status = "Progressing" hs.message = "" if obj.status ~= nil then if obj.status.health ~= nil then hs.status = obj.status.health.status if obj.status.health.message ~= nil then hs.message = obj.status.health.message end end end return hs group: argoproj.io kind: Application - check: | health_status = {} if obj.status ~= nil then if obj.status.conditions ~= nil then numDegraded = 0 numPending = 0 msg = "" for i, condition in pairs(obj.status.conditions) do msg = msg .. i .. ": " .. condition.type .. " | " .. condition.status .. "\n" if condition.type == "InstallPlanPending" and condition.status == "True" then numPending = numPending + 1 elseif (condition.type == "CatalogSourcesUnhealthy" or condition.type == "InstallPlanMissing" or condition.type == "InstallPlanFailed" or condition.type == "ResolutionFailed") and condition.status == "True" then numDegraded = numDegraded + 1 end end if numDegraded == 0 and numPending == 0 then health_status.status = "Healthy" health_status.message = msg return health_status elseif numPending > 0 and numDegraded == 0 then if obj.spec.installPlanApproval == "Manual" then health_status.status = "Suspended" else health_status.status = "Progressing" end health_status.message = "An install plan for a subscription is pending installation" return health_status else health_status.status = "Degraded" health_status.message = msg return health_status end end end health_status.status = "Progressing" health_status.message = "An install plan for a subscription is pending installation" return health_status group: operators.coreos.com kind: Subscription resourceIgnoreDifferences: resourceIdentifiers: - customization: managedFieldsManagers: - openshift-controller-manager group: "" kind: ServiceAccount server: autoscale: enabled: false grpc: ingress: enabled: false host: argocd.apps.kub-ctl-001.cp.kubus-it.de ingress: enabled: false logFormat: json logLevel: warn route: enabled: true tls: insecureEdgeTerminationPolicy: Redirect termination: reencrypt service: type: "" sso: dex: openShiftOAuth: true provider: dex statusBadgeEnabled: true tls: ca: {} usersAnonymousEnabled: false status: applicationController: Running applicationSetController: Running host: argocd.apps.kub-ctl-001.cp.kubus-it.de phase: Available redis: Running redisTLSChecksum: bb81946cc8e0b1191dca2c1b2683755bad283686f3616a35890e2e7219b8a347 repo: Running server: Running sso: Running