Skip to content

Commit 742940a

Browse files
committed
Bump nginx-operator operator-sdk to 1.39.0
1 parent cf2384c commit 742940a

File tree

9 files changed

+50
-17
lines changed

9 files changed

+50
-17
lines changed

nginx-operator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM quay.io/operator-framework/helm-operator:v1.38.0
2+
FROM quay.io/operator-framework/helm-operator:v1.39.0
33

44
ENV HOME=/opt/helm
55
COPY watches.yaml ${HOME}/watches.yaml

nginx-operator/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ endif
5151

5252
# Set the Operator SDK version to use. By default, what is installed on the system is used.
5353
# This is useful for CI or a project to utilize a specific version of the operator-sdk toolkit.
54-
OPERATOR_SDK_VERSION ?= v1.38.0
54+
OPERATOR_SDK_VERSION ?= v1.39.0
5555

5656
# Image URL to use all building/pushing image targets
5757
IMG ?= registry.metalk8s.lan/nginx-operator:v$(VERSION)
@@ -134,7 +134,7 @@ ifeq (,$(shell which kustomize 2>/dev/null))
134134
@{ \
135135
set -e ;\
136136
mkdir -p $(dir $(KUSTOMIZE)) ;\
137-
curl -sSLo - https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v5.4.2/kustomize_v5.4.2_$(OS)_$(ARCH).tar.gz | \
137+
curl -sSLo - https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v5.4.3/kustomize_v5.4.3_$(OS)_$(ARCH).tar.gz | \
138138
tar xzf - -C bin/ ;\
139139
}
140140
else
@@ -150,7 +150,7 @@ ifeq (,$(shell which helm-operator 2>/dev/null))
150150
@{ \
151151
set -e ;\
152152
mkdir -p $(dir $(HELM_OPERATOR)) ;\
153-
curl -sSLo $(HELM_OPERATOR) https://github.com/operator-framework/operator-sdk/releases/download/v1.38.0/helm-operator_$(OS)_$(ARCH) ;\
153+
curl -sSLo $(HELM_OPERATOR) https://github.com/operator-framework/operator-sdk/releases/download/v1.39.0/helm-operator_$(OS)_$(ARCH) ;\
154154
chmod +x $(HELM_OPERATOR) ;\
155155
}
156156
else

nginx-operator/bundle/manifests/nginx-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ metadata:
506506
}
507507
]
508508
capabilities: Basic Install
509-
createdAt: "2025-01-09T10:08:53Z"
509+
createdAt: "2025-01-28T15:25:05Z"
510510
operators.operatorframework.io/builder: operator-sdk-v1.38.0
511511
operators.operatorframework.io/project_layout: helm.sdk.operatorframework.io/v1
512512
name: nginx-operator.v4.11.3

nginx-operator/bundle/tests/scorecard/config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ stages:
88
- entrypoint:
99
- scorecard-test
1010
- basic-check-spec
11-
image: quay.io/operator-framework/scorecard-test:v1.38.0
11+
image: quay.io/operator-framework/scorecard-test:v1.39.0
1212
labels:
1313
suite: basic
1414
test: basic-check-spec-test
@@ -18,7 +18,7 @@ stages:
1818
- entrypoint:
1919
- scorecard-test
2020
- olm-bundle-validation
21-
image: quay.io/operator-framework/scorecard-test:v1.38.0
21+
image: quay.io/operator-framework/scorecard-test:v1.39.0
2222
labels:
2323
suite: olm
2424
test: olm-bundle-validation-test
@@ -28,7 +28,7 @@ stages:
2828
- entrypoint:
2929
- scorecard-test
3030
- olm-crds-have-validation
31-
image: quay.io/operator-framework/scorecard-test:v1.38.0
31+
image: quay.io/operator-framework/scorecard-test:v1.39.0
3232
labels:
3333
suite: olm
3434
test: olm-crds-have-validation-test
@@ -38,7 +38,7 @@ stages:
3838
- entrypoint:
3939
- scorecard-test
4040
- olm-crds-have-resources
41-
image: quay.io/operator-framework/scorecard-test:v1.38.0
41+
image: quay.io/operator-framework/scorecard-test:v1.39.0
4242
labels:
4343
suite: olm
4444
test: olm-crds-have-resources-test
@@ -48,7 +48,7 @@ stages:
4848
- entrypoint:
4949
- scorecard-test
5050
- olm-spec-descriptors
51-
image: quay.io/operator-framework/scorecard-test:v1.38.0
51+
image: quay.io/operator-framework/scorecard-test:v1.39.0
5252
labels:
5353
suite: olm
5454
test: olm-spec-descriptors-test
@@ -58,7 +58,7 @@ stages:
5858
- entrypoint:
5959
- scorecard-test
6060
- olm-status-descriptors
61-
image: quay.io/operator-framework/scorecard-test:v1.38.0
61+
image: quay.io/operator-framework/scorecard-test:v1.39.0
6262
labels:
6363
suite: olm
6464
test: olm-status-descriptors-test

nginx-operator/config/default/kustomization.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ resources:
2222
#- ../prometheus
2323
# [METRICS] Expose the controller manager metrics service.
2424
- metrics_service.yaml
25+
# [NETWORK POLICY] Protect the /metrics endpoint and Webhook Server with NetworkPolicy.
26+
# Only Pod(s) running a namespace labeled with 'metrics: enabled' will be able to gather the metrics.
27+
# Only CR(s) which requires webhooks and are applied on namespaces labeled with 'webhooks: enabled' will
28+
# be able to communicate with the Webhook Server.
29+
#- ../network-policy
2530

2631
# Uncomment the patches line if you enable Metrics, and/or are using webhooks and cert-manager
2732
patches:
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This NetworkPolicy allows ingress traffic
2+
# with Pods running on namespaces labeled with 'metrics: enabled'. Only Pods on those
3+
# namespaces are able to gathering data from the metrics endpoint.
4+
apiVersion: networking.k8s.io/v1
5+
kind: NetworkPolicy
6+
metadata:
7+
labels:
8+
app.kubernetes.io/name: memcached-operator
9+
app.kubernetes.io/managed-by: kustomize
10+
name: allow-metrics-traffic
11+
namespace: system
12+
spec:
13+
podSelector:
14+
matchLabels:
15+
control-plane: controller-manager
16+
policyTypes:
17+
- Ingress
18+
ingress:
19+
# This allows ingress traffic from any namespace with the label metrics: enabled
20+
- from:
21+
- namespaceSelector:
22+
matchLabels:
23+
metrics: enabled # Only from namespaces with this label
24+
ports:
25+
- port: 8443
26+
protocol: TCP
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
resources:
2+
- allow-metrics-traffic.yaml

nginx-operator/config/scorecard/patches/basic.config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
entrypoint:
55
- scorecard-test
66
- basic-check-spec
7-
image: quay.io/operator-framework/scorecard-test:v1.38.0
7+
image: quay.io/operator-framework/scorecard-test:v1.39.0
88
labels:
99
suite: basic
1010
test: basic-check-spec-test

nginx-operator/config/scorecard/patches/olm.config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
entrypoint:
55
- scorecard-test
66
- olm-bundle-validation
7-
image: quay.io/operator-framework/scorecard-test:v1.38.0
7+
image: quay.io/operator-framework/scorecard-test:v1.39.0
88
labels:
99
suite: olm
1010
test: olm-bundle-validation-test
@@ -14,7 +14,7 @@
1414
entrypoint:
1515
- scorecard-test
1616
- olm-crds-have-validation
17-
image: quay.io/operator-framework/scorecard-test:v1.38.0
17+
image: quay.io/operator-framework/scorecard-test:v1.39.0
1818
labels:
1919
suite: olm
2020
test: olm-crds-have-validation-test
@@ -24,7 +24,7 @@
2424
entrypoint:
2525
- scorecard-test
2626
- olm-crds-have-resources
27-
image: quay.io/operator-framework/scorecard-test:v1.38.0
27+
image: quay.io/operator-framework/scorecard-test:v1.39.0
2828
labels:
2929
suite: olm
3030
test: olm-crds-have-resources-test
@@ -34,7 +34,7 @@
3434
entrypoint:
3535
- scorecard-test
3636
- olm-spec-descriptors
37-
image: quay.io/operator-framework/scorecard-test:v1.38.0
37+
image: quay.io/operator-framework/scorecard-test:v1.39.0
3838
labels:
3939
suite: olm
4040
test: olm-spec-descriptors-test
@@ -44,7 +44,7 @@
4444
entrypoint:
4545
- scorecard-test
4646
- olm-status-descriptors
47-
image: quay.io/operator-framework/scorecard-test:v1.38.0
47+
image: quay.io/operator-framework/scorecard-test:v1.39.0
4848
labels:
4949
suite: olm
5050
test: olm-status-descriptors-test

0 commit comments

Comments
 (0)