You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, Project and Repository resources complain that the managementPolicies I pass in are not recognized
2024-08-15T14:16:31Z INFO provider-argocd Alpha feature enabled {"flag": "EnableAlphaManagementPolicies"}
2024-08-15T14:16:31Z DEBUG provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Observe Update Delete Create LateInitialize] {"controller": "managed/repository", "request": {"name":"xyz-dev-9fgb8-argocd-repo-helm"}, "uid": "15f9b21c-f228-42f6-9835-6b99bf8121ab", "version": "38365739", "external-name": "https://***********/api/v4/projects/160/packages/helm/stable"}
2024-08-15T14:16:31Z DEBUG events `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Observe Update Delete Create LateInitialize] {"type": "Warning", "object": {"kind":"Repository","name":"xyz-dev-9fgb8-argocd-repo-helm","uid":"15f9b21c-f228-42f6-9835-6b99bf8121ab","apiVersion":"repositories.argocd.crossplane.io/v1alpha1","resourceVersion":"38365739"}, "reason": "CannotUseInvalidManagementPolicy"}
2024-08-15T14:16:31Z DEBUG provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Delete Create LateInitialize Observe Update] {"controller": "managed/project", "request": {"name":"xyz-argocd-prj-dev"}, "uid": "4ce50669-9c11-4b31-816a-394b56a43e49", "version": "38365709", "external-name": "xyz-argocd-prj-dev"}
2024-08-15T14:16:31Z DEBUG events `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Delete Create LateInitialize Observe Update] {"type": "Warning", "object": {"kind":"Project","name":"xyz-argocd-prj-dev","uid":"4ce50669-9c11-4b31-816a-394b56a43e49","apiVersion":"projects.argocd.crossplane.io/v1alpha1","resourceVersion":"38365709"}, "reason": "CannotUseInvalidManagementPolicy"}
2024-08-15T14:16:31Z DEBUG provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe Update Delete] {"controller": "managed/repository", "request": {"name":"xyz-dev-9fgb8-argocd-repo-git"}, "uid": "0b5e76f9-b0b9-4bed-b4a3-047c9ba58482", "version": "38365724", "external-name": "https://***********/amdocs/v3-configuration/isv-service-configuration/dev/xyz-dev/xyz-dev.git"}
2024-08-15T14:16:31Z DEBUG events `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe Update Delete] {"type": "Warning", "object": {"kind":"Repository","name":"xyz-dev-9fgb8-argocd-repo-git","uid":"0b5e76f9-b0b9-4bed-b4a3-047c9ba58482","apiVersion":"repositories.argocd.crossplane.io/v1alpha1","resourceVersion":"38365724"}, "reason": "CannotUseInvalidManagementPolicy"}
2024-08-15T14:16:31Z DEBUG provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [LateInitialize Observe Update Delete Create] {"controller": "managed/project", "request": {"name":"xyz-argocd-prj-dev"}, "uid": "4ce50669-9c11-4b31-816a-394b56a43e49", "version": "38369021", "external-name": "xyz-argocd-prj-dev"}
2024-08-15T14:16:31Z DEBUG events `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [LateInitialize Observe Update Delete Create] {"type": "Warning", "object": {"kind":"Project","name":"xyz-argocd-prj-dev","uid":"4ce50669-9c11-4b31-816a-394b56a43e49","apiVersion":"projects.argocd.crossplane.io/v1alpha1","resourceVersion":"38369021"}, "reason": "CannotUseInvalidManagementPolicy"}
2024-08-15T14:16:31Z DEBUG provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe Update Delete] {"controller": "managed/repository", "request": {"name":"xyz-dev-9fgb8-argocd-repo-git"}, "uid": "0b5e76f9-b0b9-4bed-b4a3-047c9ba58482", "version": "38369023", "external-name": "https://***********/amdocs/v3-configuration/isv-service-configuration/dev/xyz-dev/xyz-dev.git"}
2024-08-15T14:16:31Z DEBUG events `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe Update Delete] {"type": "Warning", "object": {"kind":"Repository","name":"xyz-dev-9fgb8-argocd-repo-git","uid":"0b5e76f9-b0b9-4bed-b4a3-047c9ba58482","apiVersion":"repositories.argocd.crossplane.io/v1alpha1","resourceVersion":"38369023"}, "reason": "CannotUseInvalidManagementPolicy"}
2024-08-15T14:16:31Z DEBUG provider-argocd `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [LateInitialize Observe Update Delete Create] {"controller": "managed/project", "request": {"name":"xyz-argocd-prj-dev"}, "uid": "4ce50669-9c11-4b31-816a-394b56a43e49", "version": "38369026", "external-name": "xyz-argocd-prj-dev"}
2024-08-15T14:16:31Z DEBUG events `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [LateInitialize Observe Update Delete Create] {"type": "Warning", "object": {"kind":"Project","name":"xyz-argocd-prj-dev","uid":"4ce50669-9c11-4b31-816a-394b56a43e49","apiVersion":"projects.argocd.crossplane.io/v1alpha1","resourceVersion":"38369026"}, "reason": "CannotUseInvalidManagementPolicy"}
Looking at the trace:
NAME RESOURCE SYNCED READY STATUS
XIsvContinuousDeployment/xyz-dev-9fgb8 True True Available
<omitted>
├─ Project/xyz-argocd-prj-dev xyz-argocd-prj-dev False True ReconcileError: `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe]
├─ Project/xyz-dev-9fgb8-xyz-dev-gitlab-prj xyz-dev-9fgb8-xyz-dev-gitlab-prj True True Available
├─ Repository/xyz-dev-9fgb8-argocd-repo-git xyz-dev-9fgb8-argocd-repo-git False True ReconcileError: `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe]
└─ Repository/xyz-dev-9fgb8-argocd-repo-helm xyz-dev-9fgb8-argocd-repo-helm False True ReconcileError: `spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe]
How can we reproduce it?
apiVersion: repositories.argocd.crossplane.io/v1alpha1kind: Repositorymetadata:
annotations:
crossplane.io/composition-resource-name: xyz-dev-9fgb8-argocd-repo-gitcrossplane.io/external-create-pending: "2024-08-08T22:47:14Z"crossplane.io/external-create-succeeded: "2024-08-08T22:47:14Z"crossplane.io/external-name: https://xxxxxxxxxxxxxxxxxxxxxx/v3-configuration/isv-service-configuration/dev/xyz-dev/xyz-dev.gitcreationTimestamp: "2024-08-08T22:47:14Z"finalizers:
- finalizer.managedresource.crossplane.iogenerateName: xyz-dev-9fgb8-generation: 5labels:
crossplane.io/claim-name: xyz-devcrossplane.io/claim-namespace: isv-onboarding-continuous-deploymentcrossplane.io/composite: xyz-dev-9fgb8name: xyz-dev-9fgb8-argocd-repo-gitownerReferences:
- apiVersion: onboarding.gitops.k8s.dish.io/v1beta1blockOwnerDeletion: truecontroller: truekind: XIsvContinuousDeploymentname: xyz-dev-9fgb8uid: 0b6192f0-236a-4699-9faf-9cd731ea1934resourceVersion: "38369023"uid: 0b5e76f9-b0b9-4bed-b4a3-047c9ba58482spec:
deletionPolicy: OrphanforProvider:
enableLfs: falseenableOCI: falseinheritedCreds: trueinsecure: truename: xyz-argocd-prj-dev-git-repoproject: xyz-argocd-prj-devrepo: https://xxxxxxxxxx/v3-configuration/isv-service-configuration/dev/xyz-dev/xyz-dev.gittype: gitusername: argo-read-repomanagementPolicies:
- Create
- LateInitialize
- Observe
- Update
- DeleteproviderConfigRef:
name: argocd-provider-configstatus:
atProvider:
connectionState:
attemptedAt: "2024-08-13T17:35:05Z"status: Successfulconditions:
- lastTransitionTime: "2024-08-08T22:47:14Z"reason: Availablestatus: "True"type: Ready
- lastTransitionTime: "2024-08-15T14:16:31Z"message: '`spec.managementPolicies` is set to a non-default value but the feature is not enabled: [Create LateInitialize Observe Update Delete]'reason: ReconcileErrorstatus: "False"type: Synced
There is no roadmap for releases. We ususally schedule them once there are changes to be released.
Would it be possible to cut a release soon for this enhancement? Reza (engineer who submitted the PR) and I work on the same project that needs this feature where controlling how updates are performed is an important control on the platform.
What happened?
I have enabled the
--enable-management-policies
using aDeploymentRuntimeConfig
for the ArgoCD provider.The logs show that is enabled during startup
Proof flag is enabled on the pod
However, Project and Repository resources complain that the managementPolicies I pass in are not recognized
Looking at the trace:
How can we reproduce it?
What environment did it happen in?
Crossplane version: 1.16
Crossplane Provider argocd version: v0.8.0
Cloud provider or hardware configuration: AWS EKS
Kubernetes version (use
kubectl version
): 1.29The text was updated successfully, but these errors were encountered: