Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit 07d9f5d

Browse files
authored
Release 0.5.0 (#192)
1 parent 2ddfcad commit 07d9f5d

15 files changed

+96
-35
lines changed

Diff for: .github/workflows/ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,17 @@ jobs:
158158
labels: |
159159
org.opencontainers.image.documentation=https://docs.nginx.com/nginx-ingress-controller
160160
org.opencontainers.image.vendor=NGINX Inc <[email protected]>
161+
- name: Output Variables
162+
id: var
163+
run: |
164+
version=${{ steps.meta.outputs.version }}
165+
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
166+
operator_version=v$version
167+
else
168+
tag=$(git describe --tags --abbrev=0)
169+
operator_version=$tag-$version-${{ needs.vars.outputs.sha_short }}
170+
fi
171+
echo "::set-output name=version::$operator_version"
161172
- name: Build Image
162173
uses: docker/build-push-action@v2
163174
with:
@@ -171,6 +182,8 @@ jobs:
171182
load: ${{ github.event_name == 'pull_request' }}
172183
push: ${{ github.event_name != 'pull_request' }}
173184
pull: true
185+
build-args: |
186+
VERSION=${{ steps.var.outputs.version }}
174187
- name: Run Trivy vulnerability scanner
175188
uses: aquasecurity/[email protected]
176189
continue-on-error: true

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 0.5.0
4+
5+
An automatically generated list of changes can be found on Github at: [0.5.0 Release](https://github.com/nginxinc/nginx-ingress-operator/releases/tag/v0.5.0)
6+
37
### 0.4.0
48

59
An automatically generated list of changes can be found on Github at: [0.4.0 Release](https://github.com/nginxinc/nginx-ingress-operator/releases/tag/v0.4.0)

Diff for: Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ COPY config/crd/kic ./config/crd/kic
2525
COPY LICENSE /licenses/
2626

2727
LABEL name="NGINX Ingress Operator" \
28-
vendor="NGINX Inc <[email protected]" \
28+
maintainer="[email protected]" \
29+
vendor="NGINX Inc" \
2930
version="v${VERSION}" \
3031
release="1" \
3132
summary="The NGINX Ingress Operator is a Kubernetes/OpenShift component which deploys and manages one or more NGINX/NGINX Plus Ingress Controllers" \

Diff for: Makefile

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# To re-generate a bundle for another specific version without changing the standard setup, you can:
44
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
55
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
6-
VERSION ?= 0.4.0
6+
VERSION ?= 0.5.0
77

88
# CHANNELS define the bundle channels used in the bundle.
99
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "preview,fast,stable")
@@ -155,18 +155,17 @@ endef
155155

156156
.PHONY: bundle
157157
bundle: manifests kustomize ## Generate bundle manifests and metadata, then validate generated files.
158+
yq eval '.metadata.annotations.containerImage = "${IMG}"' -i config/manifests/bases/nginx-ingress-operator.clusterserviceversion.yaml
158159
operator-sdk generate kustomize manifests -q
159160
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
160161
$(KUSTOMIZE) build config/manifests | operator-sdk generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)
162+
@printf "%s\n" '' 'LABEL com.redhat.openshift.versions="v4.5"' 'LABEL com.redhat.delivery.operator.bundle=true' 'LABEL com.redhat.delivery.backport=true' >> bundle.Dockerfile
161163
operator-sdk bundle validate ./bundle
162164

163165
.PHONY: bundle-build
164166
bundle-build: ## Build the bundle image.
165167
docker build -f bundle.Dockerfile -t $(BUNDLE_IMG) .
166168

167-
openshift-bundle-build: bundle ## Build the bundle image for OpenShift.
168-
@printf "%s\n" '' 'LABEL com.redhat.openshift.versions="v4.5"' 'LABEL com.redhat.delivery.operator.bundle=true' 'LABEL com.redhat.delivery.backport=true' >> bundle.Dockerfile
169-
170169
.PHONY: bundle-push
171170
bundle-push: ## Push the bundle image.
172171
$(MAKE) docker-push IMG=$(BUNDLE_IMG)

Diff for: README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The following table shows the relation between the versions of the two projects:
1212

1313
| NGINX Ingress Controller | NGINX Ingress Operator |
1414
| --- | --- |
15+
| 2.1.x | 0.5.0 |
1516
| 2.0.x | 0.4.0 |
1617
| 1.12.x | 0.3.0 |
1718
| 1.11.x | 0.2.0 |
@@ -38,7 +39,7 @@ See [upgrade docs](./docs/upgrades)
3839
## NGINX Ingress Operator Releases
3940
We publish NGINX Ingress Operator releases on GitHub. See our [releases page](https://github.com/nginxinc/nginx-ingress-operator/releases).
4041

41-
The latest stable release is [0.4.0](https://github.com/nginxinc/nginx-ingress-operator/releases/tag/v0.4.0). For production use, we recommend that you choose the latest stable release.
42+
The latest stable release is [0.5.0](https://github.com/nginxinc/nginx-ingress-operator/releases/tag/v0.5.0). For production use, we recommend that you choose the latest stable release.
4243

4344
## Development
4445

@@ -54,7 +55,7 @@ It is possible to run the operator in your local machine. This is useful for tes
5455
```
5556
2. Run `make run`.
5657
57-
The operator will run in your local machine but will be communicating with the cluster.
58+
The operator will run in your local machine but will be communicating with the cluster.
5859
5960
### Update CRD
6061

Diff for: api/v1alpha1/nginxingresscontroller_types.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,13 @@ type AppProtectDos struct {
283283
// Enable App Protect Dos.
284284
Enable bool `json:"enable"`
285285
// Enable debug mode.
286-
Debug bool `json:"debug"`
286+
Debug bool `json:"debug,omitempty"`
287287
// Max number of ADMD instances.
288-
MaxDaemons int `json:"maxDaemons"`
288+
MaxDaemons int `json:"maxDaemons,omitempty"`
289289
// Max number of nginx processes to support.
290-
MaxWorkers int `json:"maxWorkers"`
290+
MaxWorkers int `json:"maxWorkers,omitempty"`
291291
// RAM memory size in MB.
292-
Memory int `json:"memory"`
292+
Memory int `json:"memory,omitempty"`
293293
}
294294

295295
// Service defines the Service for the Ingress Controller.

Diff for: bundle/manifests/k8s.nginx.org_nginxingresscontrollers.yaml

+28-5
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,34 @@ spec:
4141
nullable: true
4242
properties:
4343
enable:
44-
description: Enable App Protect.
44+
description: Enable App Protect WAF.
4545
type: boolean
4646
required:
4747
- enable
4848
type: object
49+
appProtectDos:
50+
description: App Protect Dos support configuration. Requires enableCRDs
51+
set to true.
52+
nullable: true
53+
properties:
54+
debug:
55+
description: Enable debug mode.
56+
type: boolean
57+
enable:
58+
description: Enable App Protect Dos.
59+
type: boolean
60+
maxDaemons:
61+
description: Max number of ADMD instances.
62+
type: integer
63+
maxWorkers:
64+
description: Max number of nginx processes to support.
65+
type: integer
66+
memory:
67+
description: RAM memory size in MB.
68+
type: integer
69+
required:
70+
- enable
71+
type: object
4972
configMapData:
5073
additionalProperties:
5174
type: string
@@ -241,15 +264,15 @@ spec:
241264
description: The service of the Ingress controller.
242265
nullable: true
243266
properties:
244-
extraLabels:
267+
extraAnnotations:
245268
additionalProperties:
246269
type: string
247-
description: Specifies extra labels of the service.
270+
description: Specifies extra annotations of the service.
248271
type: object
249-
extraAnnotations:
272+
extraLabels:
250273
additionalProperties:
251274
type: string
252-
description: Specifies extra annotations of the service.
275+
description: Specifies extra labels of the service.
253276
type: object
254277
type: object
255278
serviceType:

Diff for: bundle/manifests/nginx-ingress-operator.clusterserviceversion.yaml

+18-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
"image": {
1515
"pullPolicy": "Always",
1616
"repository": "docker.io/nginx/nginx-ingress",
17-
"tag": "2.0.0-ubi"
17+
"tag": "2.1.0-ubi"
1818
},
1919
"ingressClass": "nginx",
2020
"nginxPlus": false,
@@ -24,9 +24,16 @@ metadata:
2424
}
2525
]
2626
capabilities: Basic Install
27+
categories: Monitoring, Networking
28+
certified: "true"
29+
containerImage: nginx/nginx-ingress-operator:0.5.0
30+
description: The NGINX Ingress Operator is a Kubernetes/OpenShift component which
31+
deploys and manages one or more NGINX/NGINX Plus Ingress Controllers
2732
operators.operatorframework.io/builder: operator-sdk-v1.15.0
2833
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
29-
name: nginx-ingress-operator.v0.4.0
34+
repository: https://github.com/nginxinc/nginx-ingress-operator
35+
support: NGINX Inc.
36+
name: nginx-ingress-operator.v0.5.0
3037
namespace: placeholder
3138
spec:
3239
apiservicedefinitions: {}
@@ -52,6 +59,10 @@ spec:
5259
true.
5360
displayName: App Protect
5461
path: appProtect
62+
- description: App Protect Dos support configuration. Requires enableCRDs set
63+
to true.
64+
displayName: App Protect Dos
65+
path: appProtectDos
5566
- description: Initial values of the Ingress Controller ConfigMap. Check https://docs.nginx.com/nginx-ingress-controller/configuration/global-configuration/configmap-resource/
5667
for more information about possible values.
5768
displayName: Config Map Data
@@ -215,6 +226,7 @@ spec:
215226
- update
216227
- apiGroups:
217228
- appprotect.f5.com
229+
- appprotectdos.f5.com
218230
- k8s.nginx.org
219231
resources:
220232
- '*'
@@ -364,7 +376,7 @@ spec:
364376
valueFrom:
365377
fieldRef:
366378
fieldPath: metadata.annotations['olm.targetNamespaces']
367-
image: nginx/nginx-ingress-operator:0.4.0
379+
image: nginx/nginx-ingress-operator:0.5.0
368380
livenessProbe:
369381
httpGet:
370382
path: /healthz
@@ -449,7 +461,8 @@ spec:
449461
450462
name: NGINX Inc
451463
maturity: alpha
464+
minKubeVersion: 1.19.0
452465
provider:
453466
name: NGINX Inc
454-
replaces: nginx-ingress-operator.v0.2.0
455-
version: 0.4.0
467+
replaces: nginx-ingress-operator.v0.4.0
468+
version: 0.5.0

Diff for: config/crd/bases/k8s.nginx.org_nginxingresscontrollers.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,7 @@ spec:
6969
description: RAM memory size in MB.
7070
type: integer
7171
required:
72-
- debug
7372
- enable
74-
- maxDaemons
75-
- maxWorkers
76-
- memory
7773
type: object
7874
configMapData:
7975
additionalProperties:

Diff for: config/manager/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ kind: Kustomization
1313
images:
1414
- name: controller
1515
newName: nginx/nginx-ingress-operator
16-
newTag: 0.4.0
16+
newTag: 0.5.0

Diff for: config/manifests/bases/nginx-ingress-operator.clusterserviceversion.yaml

+13-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ metadata:
44
annotations:
55
alm-examples: '[]'
66
capabilities: Basic Install
7+
categories: Monitoring, Networking
8+
certified: "true"
9+
containerImage: nginx/nginx-ingress-operator:0.5.0
10+
description: The NGINX Ingress Operator is a Kubernetes/OpenShift component which
11+
deploys and manages one or more NGINX/NGINX Plus Ingress Controllers
12+
repository: https://github.com/nginxinc/nginx-ingress-operator
13+
support: NGINX Inc.
714
name: nginx-ingress-operator.v0.0.0
815
namespace: placeholder
916
spec:
@@ -30,6 +37,10 @@ spec:
3037
true.
3138
displayName: App Protect
3239
path: appProtect
40+
- description: App Protect Dos support configuration. Requires enableCRDs set
41+
to true.
42+
displayName: App Protect Dos
43+
path: appProtectDos
3344
- description: Initial values of the Ingress Controller ConfigMap. Check https://docs.nginx.com/nginx-ingress-controller/configuration/global-configuration/configmap-resource/
3445
for more information about possible values.
3546
displayName: Config Map Data
@@ -184,7 +195,8 @@ spec:
184195
185196
name: NGINX Inc
186197
maturity: alpha
198+
minKubeVersion: 1.19.0
187199
provider:
188200
name: NGINX Inc
189-
replaces: nginx-ingress-operator.v0.2.0
201+
replaces: nginx-ingress-operator.v0.4.0
190202
version: 0.0.0

Diff for: config/samples/k8s_v1alpha1_nginxingresscontroller.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spec:
77
nginxPlus: false
88
image:
99
repository: docker.io/nginx/nginx-ingress
10-
tag: 2.0.0-ubi
10+
tag: 2.1.0-ubi
1111
pullPolicy: Always
1212
serviceType: NodePort
1313
ingressClass: nginx

Diff for: docs/manual-installation.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ This will deploy the operator in the `nginx-ingress-operator-system` namespace.
88
```
99
git clone https://github.com/nginxinc/nginx-ingress-operator/
1010
cd nginx-ingress-operator/
11-
git checkout v0.4.0
11+
git checkout v0.5.0
1212
```
1313
1414
2. `Openshift` To deploy the Operator and associated resources to an OpenShift environment, run:
1515
```
16-
make openshift-deploy IMG=registry.connect.redhat.com/nginx/nginx-ingress-operator:0.4.0
16+
make deploy IMG=registry.connect.redhat.com/nginx/nginx-ingress-operator:0.5.0
1717
```
1818
1919
3. Alternatively, to deploy the Operator and associated resources to all other environments:
2020
```
21-
make deploy IMG=nginx/nginx-ingress-operator:0.4.0
21+
make deploy IMG=nginx/nginx-ingress-operator:0.5.0
2222
```
2323
2424
2. Check that the Operator is running:
2525
```
26-
kubectl get deployments -n nginx-ingress-operator-system
26+
kubectl get deployments -n nginx-ingress-operator-system
2727
2828
NAME READY UP-TO-DATE AVAILABLE AGE
2929
nginx-ingress-operator-controller-manager 1/1 1 1 15s

Diff for: examples/deployment-oss-min/nginx-ingress-controller.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ spec:
88
nginxPlus: false
99
image:
1010
repository: nginx/nginx-ingress
11-
tag: 2.0.0-ubi
11+
tag: 2.1.0-ubi
1212
pullPolicy: Always
1313
replicas: 1
1414
serviceType: NodePort
15-

Diff for: examples/deployment-plus-min/nginx-ingress-controller.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
nginxPlus: true
99
image:
1010
repository: nginx-plus-ingress
11-
tag: 2.0.0-ubi
11+
tag: 2.1.0-ubi
1212
pullPolicy: IfNotPresent
1313
replicas: 1
1414
serviceType: NodePort

0 commit comments

Comments
 (0)