Skip to content

Commit

Permalink
Merge pull request #3659 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…3626-to-release-4.13

[release-4.13] OCPBUGS-11302: Fix regex dot in coredns config file
  • Loading branch information
openshift-merge-robot committed May 18, 2023
2 parents 0970749 + 62de2db commit 230bb7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/common/on-prem/files/coredns-corefile.yaml
Expand Up @@ -12,12 +12,12 @@ contents:
cache 30
reload
template IN {{`{{ .Cluster.IngressVIPRecordType }}`}} {{ .DNS.Spec.BaseDomain }} {
match .*.apps.{{ .DNS.Spec.BaseDomain }}
match .*[.]apps.{{ .DNS.Spec.BaseDomain }}
answer "{{`{{"{{ .Name }}"}}`}} 60 in {{`{{"{{ .Type }}"}}`}} {{ if gt (len (onPremPlatformIngressIPs .)) 0 }}{{ index (onPremPlatformIngressIPs .) 0 }}{{ end }}"
fallthrough
}
template IN {{`{{ .Cluster.IngressVIPEmptyType }}`}} {{ .DNS.Spec.BaseDomain }} {
match .*.apps.{{ .DNS.Spec.BaseDomain }}
match .*[.]apps.{{ .DNS.Spec.BaseDomain }}
{{ if gt (len (onPremPlatformIngressIPs .)) 1 }}answer "{{`{{"{{ .Name }}"}}`}} 60 in {{`{{"{{ .Type }}"}}`}} {{ index (onPremPlatformIngressIPs .) 1 }}"{{ end }}
fallthrough
}
Expand Down

0 comments on commit 230bb7e

Please sign in to comment.