argo-events icon indicating copy to clipboard operation
argo-events copied to clipboard

validating-webhook failing on creation of EventBus of type jetstreamExotic

Open EirikAskheim opened this issue 1 year ago • 1 comments

Describe the bug When creating a EventBus of type jetstreamExotic I get the following error

Error from server (BadRequest): error when creating "jetstream.yaml": admission webhook "webhook.argo-events.argoproj.io" denied the request: invalid spec: either "nats" or "jetstream" needs to be specified

I believe jetstreamExotic is a third valid choice here.

To Reproduce Steps to reproduce the behavior:

echo '---
apiVersion: argoproj.io/v1alpha1
kind: EventBus
metadata:
  name: default
spec:
  jetstreamExotic:
      url: nats://nats.nats.svc.cluster.local
' | kubectl create -f -

Expected behavior EventBus get created

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Kubernetes: 1.29.0
  • Argo: N/A
  • Argo Events: 1.7.6

Additional context Add any other context about the problem here.


Message from the maintainers:

If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

EirikAskheim avatar Jan 23 '24 18:01 EirikAskheim

Issue was that I had installed the stable version which does not seam to have the jetstreamExotic feature. The EventBus is created after upgrading to the latest version of Argo-Events.

EirikAskheim avatar Jan 23 '24 18:01 EirikAskheim

@EirikAskheim - thanks! Fixed the stable tagging.

whynowy avatar Jan 27 '24 06:01 whynowy