kubeshop / kusk-gateway

Kusk-gateway is an OpenAPI-driven API Gateway for Kubernetes
https://kubeshop.github.io/kusk-gateway/
MIT License
268 stars 20 forks source link

Deploying via Kusk CLI ignores --namespace parameter #1049

Open niklastreml opened 1 year ago

niklastreml commented 1 year ago

Describe the bug Deploying via kusk cli ignores --namespace parameter

To Reproduce Steps to reproduce the behavior:

  1. Follow getting started guide until deployment of the demo openapi spec.
  2. run kusk deploy -i api.yaml --namespace kusk-testing
  3. kubectl get apis.gateway.kusk.io -n kusk-testing No resources found in kusk-testing namespace.
  4. kubectl get apis.gateway.kusk.io -A
    NAMESPACE     NAME               AGE
    default       simple-api         5s
    kusk-system   kusk-gateway-api   58m
  5. Custom resource was created in default namespace instead Expected behavior Expected the apis.gateway.kusk.io custom resource to be created in provided kusk-testing namespace.

Desktop (please complete the following information):

kubeshop/kusk-gateway-api-websocket:v1.5.4 kubeshop/kusk-gateway-dashboard:v1.2.6 kubeshop/kusk-gateway:v1.5.4 gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0 kubeshop/kusk-devportal:v0.1.3 docker.io/envoyproxy/envoy:v1.23.1 kubeshop/kusk-gateway-api:v1.5.4



**Additional context**
Add any other context about the problem here.