Open TeChn4K opened 1 year ago
When I update the conf.yaml to add params
and filter
, I get a new error ...
line 13: field template not found in type notifiers.Notification
line 8: field params not found in type notifiers.Notification
...
main.go: fatal error: failed to get config from GCS: failed to parse configuration from YAML at "xxx/slack/cloud-build/conf.yaml": yaml: unmarshal errors:
conf.yaml
apiVersion: cloud-build-notifiers/v1
kind: SlackNotifier
metadata:
name: cloud-build-slack-notifier
spec:
notification:
filter: build.status == Build.Status.SUCCESS
params:
buildStatus: $(build.status)
delivery:
webhookUrl:
secretRef: webhook-url
template:
type: golang
uri: gs://xxx/slack/cloud-build/message.json
secrets:
- name: webhook-url
value: projects/xxx/secrets/xxx/versions/latest
Hi, which version of the notifier are you using? I believe you need to be using 1.15 (or ideally latest) and you should get these errors resolved.
Hi guys,
I'm getting this error on deployment :
My config file seems reachable. When I specify a not existing config path, it throws a different error.
Any idea?
conf.yaml
message.json