Skip to content

Commit

Permalink
add dnspolicy in spec, unify the dnspolicy in podspec to buildpodspec…
Browse files Browse the repository at this point in the history
… function (#4420)

* add dnspolicy configuration

* unify the dnspolicy in podspec to buildpodspec function

* unify the dnspolicy in podspec to buildpodspec function
  • Loading branch information
handlerww authored Feb 17, 2022
1 parent 17b1e59 commit addd8d2
Show file tree
Hide file tree
Showing 18 changed files with 296 additions and 12 deletions.
70 changes: 70 additions & 0 deletions docs/api-references/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,20 @@ Kubernetes core/v1.PodDNSConfig
</tr>
<tr>
<td>
<code>dnsPolicy</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#dnspolicy-v1-core">
Kubernetes core/v1.DNSPolicy
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>DNSPolicy Specifies the DNSPolicy parameters of a pod.</p>
</td>
</tr>
<tr>
<td>
<code>podSecurityContext</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#podsecuritycontext-v1-core">
Expand Down Expand Up @@ -1715,6 +1729,20 @@ Kubernetes core/v1.PodDNSConfig
</tr>
<tr>
<td>
<code>dnsPolicy</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#dnspolicy-v1-core">
Kubernetes core/v1.DNSPolicy
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>DNSPolicy Specifies the DNSPolicy parameters of a pod.</p>
</td>
</tr>
<tr>
<td>
<code>timezone</code></br>
<em>
string
Expand Down Expand Up @@ -4537,6 +4565,20 @@ Kubernetes core/v1.PodDNSConfig
</tr>
<tr>
<td>
<code>dnsPolicy</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#dnspolicy-v1-core">
Kubernetes core/v1.DNSPolicy
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>DNSPolicy Specifies the DNSPolicy parameters of a pod.</p>
</td>
</tr>
<tr>
<td>
<code>terminationGracePeriodSeconds</code></br>
<em>
int64
Expand Down Expand Up @@ -5332,6 +5374,20 @@ Kubernetes core/v1.PodDNSConfig
</tr>
<tr>
<td>
<code>dnsPolicy</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#dnspolicy-v1-core">
Kubernetes core/v1.DNSPolicy
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>DNSPolicy Specifies the DNSPolicy parameters of a pod.</p>
</td>
</tr>
<tr>
<td>
<code>podSecurityContext</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#podsecuritycontext-v1-core">
Expand Down Expand Up @@ -21283,6 +21339,20 @@ Kubernetes core/v1.PodDNSConfig
</tr>
<tr>
<td>
<code>dnsPolicy</code></br>
<em>
<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#dnspolicy-v1-core">
Kubernetes core/v1.DNSPolicy
</a>
</em>
</td>
<td>
<em>(Optional)</em>
<p>DNSPolicy Specifies the DNSPolicy parameters of a pod.</p>
</td>
</tr>
<tr>
<td>
<code>timezone</code></br>
<em>
string
Expand Down
28 changes: 28 additions & 0 deletions manifests/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4639,6 +4639,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -5406,6 +5408,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
enablePVReclaim:
type: boolean
hostNetwork:
Expand Down Expand Up @@ -6959,6 +6963,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -9402,6 +9408,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -13922,6 +13930,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -14689,6 +14699,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
enableDynamicConfiguration:
type: boolean
enablePVReclaim:
Expand Down Expand Up @@ -16257,6 +16269,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
enableDashboardInternalProxy:
type: boolean
env:
Expand Down Expand Up @@ -18671,6 +18685,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -20981,6 +20997,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -23293,6 +23311,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -25820,6 +25840,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -28188,6 +28210,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
enableNamedStatusPort:
type: boolean
env:
Expand Down Expand Up @@ -33745,6 +33769,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -35901,6 +35927,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down
8 changes: 8 additions & 0 deletions manifests/crd/v1/pingcap.com_dmclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -2638,6 +2640,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
enablePVReclaim:
type: boolean
hostNetwork:
Expand Down Expand Up @@ -4191,6 +4195,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -6634,6 +6640,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down
16 changes: 16 additions & 0 deletions manifests/crd/v1/pingcap.com_tidbclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1896,6 +1896,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -2663,6 +2665,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
enableDynamicConfiguration:
type: boolean
enablePVReclaim:
Expand Down Expand Up @@ -4231,6 +4235,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
enableDashboardInternalProxy:
type: boolean
env:
Expand Down Expand Up @@ -6645,6 +6651,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -8955,6 +8963,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -11267,6 +11277,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -13794,6 +13806,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -16162,6 +16176,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
enableNamedStatusPort:
type: boolean
env:
Expand Down
4 changes: 4 additions & 0 deletions manifests/crd/v1/pingcap.com_tidbngmonitorings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -3729,6 +3731,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down
8 changes: 8 additions & 0 deletions manifests/crd/v1beta1/pingcap.com_dmclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1870,6 +1870,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -2636,6 +2638,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
enablePVReclaim:
type: boolean
hostNetwork:
Expand Down Expand Up @@ -4186,6 +4190,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down Expand Up @@ -6625,6 +6631,8 @@ spec:
type: string
type: array
type: object
dnsPolicy:
type: string
env:
items:
properties:
Expand Down
Loading

0 comments on commit addd8d2

Please sign in to comment.