snowdrop / istio-java-api

A Java API to generate Istio descriptors, inspired by Fabric8's kubernetes-model.
Apache License 2.0
112 stars 33 forks source link

Unable to create destinationrule in istio-system namespace #76

Closed naitikdani closed 4 years ago

naitikdani commented 4 years ago

I want to create a destinationrule in istio-system namespace, but it is failing with the following error:

DestinationRule drDefault = new DestinationRuleBuilder() .withApiVersion("networking.istio.io/v1alpha3") .withKind("DestinationRule") .withNewMetadata().withName("default").withNamespace("istio-system") .endMetadata() .withNewSpec().withHost("*.local") .withNewTrafficPolicy().withNewTls().withMode(TLSSettingsMode.ISTIO_MUTUAL).endTls() .endTrafficPolicy() .endSpec() .build();

"io.fabric8.kubernetes.client.KubernetesClientException: Namespace mismatch. Item namespace:istio-system. Operation namespace:default.

metacosm commented 4 years ago

I will take a look ASAP.

metacosm commented 4 years ago

You're not supposed to create resources in the istio-system namespace.