Skip to content

Commit 8265e5d

Browse files
committed
Remove daemonset code
1 parent ef71abb commit 8265e5d

File tree

9 files changed

+3
-6902
lines changed

9 files changed

+3
-6902
lines changed

apis/v1alpha2/nginxproxy_types.go

+1-22
Original file line numberDiff line numberDiff line change
@@ -358,22 +358,14 @@ const (
358358
NginxPlusAllowIPAddressType NginxPlusAllowAddressType = "IPAddress"
359359
)
360360

361-
// Kubernetes contains the configuration for the nginx deployment and service Kubernetes objects.
362-
// +kubebuilder:validation:XValidation:message="Only one of deployment or daemonset can be specified",rule="((!has(self.deployment) && !has(self.daemonset)) || (has(self.deployment) && !has(self.daemonset)) || (!has(self.deployment) && has(self.daemonset)))"
363-
//
364-
//nolint:lll
361+
// KubernetesSpec contains the configuration for the nginx deployment and service Kubernetes objects.
365362
type KubernetesSpec struct {
366363
// Deployment is the configuration for the nginx Deployment.
367364
// This is the default deployment option.
368365
//
369366
// +optional
370367
Deployment *DeploymentSpec `json:"deployment,omitempty"`
371368

372-
// DaemonSet is the configuration for the nginx DaemonSet.
373-
//
374-
// +optional
375-
DaemonSet *DaemonSetSpec `json:"daemonset,omitempty"`
376-
377369
// Service is the configuration for the nginx Service.
378370
//
379371
// +optional
@@ -398,19 +390,6 @@ type DeploymentSpec struct {
398390
Container ContainerSpec `json:"container,omitempty"`
399391
}
400392

401-
// DaemonSet is the configuration for the nginx DaemonSet.
402-
type DaemonSetSpec struct {
403-
// Pod defines Pod-specific fields.
404-
//
405-
// +optional
406-
Pod PodSpec `json:"pod,omitempty"`
407-
408-
// Container defines container fields for the nginx container.
409-
//
410-
// +optional
411-
Container ContainerSpec `json:"container,omitempty"`
412-
}
413-
414393
// PodSpec defines Pod-specific fields.
415394
type PodSpec struct {
416395
// TerminationGracePeriodSeconds is the optional duration in seconds the pod needs to terminate gracefully.

apis/v1alpha2/zz_generated.deepcopy.go

-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/nginx-gateway-fabric/templates/nginxproxy.yaml

-12
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ spec:
2323
{{- end }}
2424
image:
2525
{{- toYaml .Values.nginx.image | nindent 10 }}
26-
{{- else if eq .Values.nginx.kind "daemonset" }}
27-
daemonset:
28-
{{- if .Values.nginx.pod }}
29-
pod:
30-
{{- toYaml .Values.nginx.pod | nindent 8 }}
31-
{{- end }}
32-
container:
33-
{{- if .Values.nginx.container }}
34-
{{- toYaml .Values.nginx.container | nindent 8 }}
35-
{{- end }}
36-
image:
37-
{{- toYaml .Values.nginx.image | nindent 10 }}
3826
{{- end }}
3927
{{- if .Values.nginx.service }}
4028
service:

charts/nginx-gateway-fabric/values.schema.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,7 @@
286286
"default": "deployment",
287287
"description": "The kind of NGINX deployment.",
288288
"enum": [
289-
"deployment",
290-
"daemonset"
289+
"deployment"
291290
],
292291
"required": [],
293292
"title": "kind"

charts/nginx-gateway-fabric/values.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ nginx:
179179
# @schema
180180
# enum:
181181
# - deployment
182-
# - daemonset
183182
# @schema
184183
# -- The kind of NGINX deployment.
185184
kind: deployment

config/crd/bases/gateway.nginx.org_nginxproxies.yaml

-3,388
Large diffs are not rendered by default.

deploy/crds.yaml

-3,388
Large diffs are not rendered by default.

internal/mode/static/provisioner/objects.go

-2
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,6 @@ func (p *NginxProvisioner) buildImage(nProxyCfg *graph.EffectiveNginxProxy) (str
478478
if nProxyCfg != nil && nProxyCfg.Kubernetes != nil {
479479
if nProxyCfg.Kubernetes.Deployment != nil {
480480
image, tag, pullPolicy = getImageAndPullPolicy(nProxyCfg.Kubernetes.Deployment.Container)
481-
} else if nProxyCfg.Kubernetes.DaemonSet != nil {
482-
image, tag, pullPolicy = getImageAndPullPolicy(nProxyCfg.Kubernetes.DaemonSet.Container)
483481
}
484482
}
485483

site/content/reference/api.md

+1-65
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,6 @@ sigs.k8s.io/gateway-api/apis/v1alpha2.PolicyStatus
19911991
</h3>
19921992
<p>
19931993
(<em>Appears on: </em>
1994-
<a href="#gateway.nginx.org/v1alpha2.DaemonSetSpec">DaemonSetSpec</a>,
19951994
<a href="#gateway.nginx.org/v1alpha2.DeploymentSpec">DeploymentSpec</a>)
19961995
</p>
19971996
<p>
@@ -2065,54 +2064,6 @@ until the action is complete, unless the container process fails, in which case
20652064
</tr>
20662065
</tbody>
20672066
</table>
2068-
<h3 id="gateway.nginx.org/v1alpha2.DaemonSetSpec">DaemonSetSpec
2069-
<a class="headerlink" href="#gateway.nginx.org%2fv1alpha2.DaemonSetSpec" title="Permanent link">¶</a>
2070-
</h3>
2071-
<p>
2072-
(<em>Appears on: </em>
2073-
<a href="#gateway.nginx.org/v1alpha2.KubernetesSpec">KubernetesSpec</a>)
2074-
</p>
2075-
<p>
2076-
<p>DaemonSet is the configuration for the nginx DaemonSet.</p>
2077-
</p>
2078-
<table class="table table-bordered table-striped">
2079-
<thead>
2080-
<tr>
2081-
<th>Field</th>
2082-
<th>Description</th>
2083-
</tr>
2084-
</thead>
2085-
<tbody>
2086-
<tr>
2087-
<td>
2088-
<code>pod</code><br/>
2089-
<em>
2090-
<a href="#gateway.nginx.org/v1alpha2.PodSpec">
2091-
PodSpec
2092-
</a>
2093-
</em>
2094-
</td>
2095-
<td>
2096-
<em>(Optional)</em>
2097-
<p>Pod defines Pod-specific fields.</p>
2098-
</td>
2099-
</tr>
2100-
<tr>
2101-
<td>
2102-
<code>container</code><br/>
2103-
<em>
2104-
<a href="#gateway.nginx.org/v1alpha2.ContainerSpec">
2105-
ContainerSpec
2106-
</a>
2107-
</em>
2108-
</td>
2109-
<td>
2110-
<em>(Optional)</em>
2111-
<p>Container defines container fields for the nginx container.</p>
2112-
</td>
2113-
</tr>
2114-
</tbody>
2115-
</table>
21162067
<h3 id="gateway.nginx.org/v1alpha2.DeploymentSpec">DeploymentSpec
21172068
<a class="headerlink" href="#gateway.nginx.org%2fv1alpha2.DeploymentSpec" title="Permanent link">¶</a>
21182069
</h3>
@@ -2319,7 +2270,7 @@ PullPolicy
23192270
<a href="#gateway.nginx.org/v1alpha2.NginxProxySpec">NginxProxySpec</a>)
23202271
</p>
23212272
<p>
2322-
<p>Kubernetes contains the configuration for the nginx deployment and service Kubernetes objects.</p>
2273+
<p>KubernetesSpec contains the configuration for the nginx deployment and service Kubernetes objects.</p>
23232274
</p>
23242275
<table class="table table-bordered table-striped">
23252276
<thead>
@@ -2346,20 +2297,6 @@ This is the default deployment option.</p>
23462297
</tr>
23472298
<tr>
23482299
<td>
2349-
<code>daemonset</code><br/>
2350-
<em>
2351-
<a href="#gateway.nginx.org/v1alpha2.DaemonSetSpec">
2352-
DaemonSetSpec
2353-
</a>
2354-
</em>
2355-
</td>
2356-
<td>
2357-
<em>(Optional)</em>
2358-
<p>DaemonSet is the configuration for the nginx DaemonSet.</p>
2359-
</td>
2360-
</tr>
2361-
<tr>
2362-
<td>
23632300
<code>service</code><br/>
23642301
<em>
23652302
<a href="#gateway.nginx.org/v1alpha2.ServiceSpec">
@@ -2805,7 +2742,6 @@ be unique across all targetRef entries in the ObservabilityPolicy.</p>
28052742
</h3>
28062743
<p>
28072744
(<em>Appears on: </em>
2808-
<a href="#gateway.nginx.org/v1alpha2.DaemonSetSpec">DaemonSetSpec</a>,
28092745
<a href="#gateway.nginx.org/v1alpha2.DeploymentSpec">DeploymentSpec</a>)
28102746
</p>
28112747
<p>

0 commit comments

Comments
 (0)