fluxcd / notification-controller

The GitOps Toolkit event forwarded and notification dispatcher

Home Page:https://fluxcd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notification-controller error with provider sops & azure devops

soufianez75 opened this issue · comments

Hello,

I have an issue when i apply a provider with type azuredevops

{"level":"info","ts":"2022-09-22T14:37:39.284Z","logger":"event-server","msg":"Dispatching event: Provider/ns/notification dry-run failed, error: failed to create typed patch object (ns/notification; notification.toolkit.fluxcd.io/v1beta1, Kind=Provider): .spec.decryption: field not declared in schema\n","reconciler kind":"Kustomization","name":"app","namespace":"ns"}

issue with the CRD ?

There is no .spec.decryption in the notification-controller APIs, what are you trying to do?

I use an secret encrypt with sops

apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Provider
metadata:
name: notification
namespace: ns
spec:
type: azuredevops
address: https://dev.azure.com/xxxxx/Ops./_git/kubernetes-flux2
secretRef:
name: notification-git-auth
decryption:
provider: sops
secretRef:
name: sops-gpg-key

Such a thing is not possible, only Flux Kustomization objects support decryption. Please see here how decryption works: https://fluxcd.io/flux/guides/mozilla-sops/

It's OK thanks a lot