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

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
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 <kubernetes@nginx.com>
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/trivy-action@0.2.1
176189
continue-on-error: true

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
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)

Dockerfile

Lines changed: 2 additions & 1 deletion
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 <kubernetes@nginx.com" \
28+
maintainer="kubernetes@nginx.com" \
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" \

Makefile

Lines changed: 3 additions & 4 deletions
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)

README.md

Lines changed: 3 additions & 2 deletions
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

api/v1alpha1/nginxingresscontroller_types.go

Lines changed: 4 additions & 4 deletions
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.

bundle/manifests/k8s.nginx.org_nginxingresscontrollers.yaml

Lines changed: 28 additions & 5 deletions
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:

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

Lines changed: 18 additions & 5 deletions
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
- email: kubernetes@nginx.com
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

config/crd/bases/k8s.nginx.org_nginxingresscontrollers.yaml

Lines changed: 0 additions & 4 deletions
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:

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)