mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
Two corrections on top of the naming pass, both found by checking the live cluster rather than the source. The rename had silently changed the user-facing annotation key from argocd.argoproj.io/sync-wave to cd.argoproj.io/sync-wave — 63 live Applications carry the old key, so deploying that would have ignored every sync-wave and broken fleet deploy ordering. The key is now cd.hanzo.ai/*, and universe 575650286 moves the ApplicationSet template that stamps it, so the controller regenerates all 63 consistently. The API group in code said argoproj.io/v1alpha1 in 157 places while the cluster has served apps.hanzo.ai/v1alpha1 since 2026-07-23 (the CRDs are applications.apps.hanzo.ai). Code now matches what is actually served. The legacy applications.argoproj.io/app-name label had ZERO live users, so it went with the rest. foo.argoproj.io test fixtures became foo.example.com — arbitrary test domains should not carry a vendor name. go build ./... exit 0. Co-authored-by: Hanzo Dev <[email protected]>
74 lines
2.4 KiB
YAML
74 lines
2.4 KiB
YAML
apiVersion: policy.open-cluster-management.io/v1beta1
|
|
kind: OperatorPolicy
|
|
metadata:
|
|
name: install-cd
|
|
generation: 2
|
|
namespace: local-cluster
|
|
spec:
|
|
complianceConfig:
|
|
catalogSourceUnhealthy: Compliant
|
|
deploymentsUnavailable: NonCompliant
|
|
upgradesAvailable: Compliant
|
|
complianceType: musthave
|
|
remediationAction: enforce
|
|
removalBehavior:
|
|
clusterServiceVersions: Delete
|
|
customResourceDefinitions: Keep
|
|
operatorGroups: DeleteIfUnused
|
|
subscriptions: Delete
|
|
severity: high
|
|
subscription:
|
|
channel: alpha
|
|
name: cd-operator
|
|
source: community-operators
|
|
sourceNamespace: openshift-marketplace
|
|
upgradeApproval: Automatic
|
|
versions: []
|
|
status:
|
|
compliant: Compliant
|
|
conditions:
|
|
- lastTransitionTime: '2024-07-29T15:20:48Z'
|
|
message: CatalogSource was found
|
|
reason: CatalogSourcesFound
|
|
status: 'False'
|
|
type: CatalogSourcesUnhealthy
|
|
- lastTransitionTime: '2024-07-29T15:48:20Z'
|
|
message: >-
|
|
Compliant; the policy spec is valid, the policy does not specify an
|
|
OperatorGroup but one already exists in the namespace - assuming that
|
|
OperatorGroup is correct, the Subscription matches what is required by
|
|
the policy, no InstallPlans requiring approval were found,
|
|
ClusterServiceVersion (cd-operator.v0.11.0) - install strategy
|
|
completed with no errors, there are CRDs present for the operator, all
|
|
operator Deployments have their minimum availability, CatalogSource was
|
|
found
|
|
reason: Compliant
|
|
status: 'True'
|
|
type: Compliant
|
|
- lastTransitionTime: '2024-07-29T15:47:45Z'
|
|
message: the Subscription matches what is required by the policy
|
|
reason: SubscriptionMatches
|
|
status: 'True'
|
|
type: SubscriptionCompliant
|
|
relatedObjects:
|
|
- compliant: Compliant
|
|
object:
|
|
apiVersion: operators.coreos.com/v1alpha1
|
|
kind: CatalogSource
|
|
metadata:
|
|
name: community-operators
|
|
namespace: openshift-marketplace
|
|
reason: Resource found as expected
|
|
- compliant: Compliant
|
|
object:
|
|
apiVersion: operators.coreos.com/v1alpha1
|
|
kind: Subscription
|
|
metadata:
|
|
name: cd-operator
|
|
namespace: openshift-operators
|
|
properties:
|
|
createdByPolicy: true
|
|
uid: f3e6d8a7-eb73-4b29-b804-bf4609d2f7fb
|
|
reason: Resource found as expected
|
|
resolvedSubscriptionLabel: cd-operator.openshift-operators
|