apiVersion: templating.flanksource.com/v1
kind: Template
metadata:
name: dynamic-ingress-hostnames
spec:
onceoff: true # need to set this flag as otherwise it will trigger an endless loop appending the domain to iteself.
namespaceSelector:
quack.pusher.com/enabled: "true"
objectSelector:
- apiVersion: extensions/v1beta1
kind: Ingress
patches:
- spec:
rules:
# append a dynamic domain specified in a configmap to the domain specified in the ingress
- host: "{{.source.spec.rules[0].host}}.{{- kget "cm/quack/quack-config" "data.domain" -}}"
tls:
hosts:
- "{{.source.spec.rules[0].host}}.{{- kget "cm/quack/quack-config" "data.domain" }}"
Package v1 contains API Schema definitions for the templating.flanksource.com v1 API group +kubebuilder:object:generate=true +groupName=templating.flanksource.com
Package v1 contains API Schema definitions for the templating.flanksource.com v1 API group +kubebuilder:object:generate=true +groupName=templating.flanksource.com
Package kustomize contains helpers for working with embedded kustomize commands Package kustomize contains helpers for working with embedded kustomize commands
Package kustomize contains helpers for working with embedded kustomize commands Package kustomize contains helpers for working with embedded kustomize commands
Click to show internal directories.
Click to hide internal directories.
go.dev uses cookies from Google to deliver and enhance the quality of its services and to
analyze traffic. Learn more.