WithIngressAnnotation
Method
func (KubernetesIngressResource) WithIngressAnnotation( key string, value string,) KubernetesIngressResourceSignature
method
WithIngressAnnotation builderAdds a Kubernetes metadata annotation to the generated Ingress resource. These are key-value pairs in the
metadata.annotations field of the K8S Ingress, commonly used to configure ingress controller-specific behavior.WithIngressAnnotation( key string, value string,) KubernetesIngressResourceParameters
keystringThe annotation key (e.g., "nginx.ingress.kubernetes.io/rewrite-target" ).valuestringThe annotation value.Returns
KubernetesIngressResource The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: