Verified Commit a02048ca authored by Hugo's avatar Hugo
Browse files

ingress capability

parent a1ecf472
{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
......
{{ if not (.Capabilities.APIVersions.Has "networking.k8s.io/v1") }}
{{ if not (.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") }}
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment