I used unstructured.Unstructured for every thing until my istio gateway.
I used "kubectl api-resources | grep gateway" to obtains information relatives to the schema,
kubectl api-resources | grep gateway
gateways gw networking.istio.io/v1beta1 true Gateway
but at the end, I have this error
Failed to create gateway: the server could not find the requested resource
I used unstructured.Unstructured for every thing until my istio gateway. I used "kubectl api-resources | grep gateway" to obtains information relatives to the schema, kubectl api-resources | grep gateway gateways gw networking.istio.io/v1beta1 true Gateway
but at the end, I have this error Failed to create gateway: the server could not find the requested resource
Can someone help me?
Here is my function,
func (c *K8sDynamicClient) CreateGateway(name, namespace string, ingress string, host string) { gatewayRes := schema.GroupVersionResource{ Group: "networking.istio.io", Version: "v1beta1", Resource: "gateways", }
}