Skip to content

Commit 18ad2cd

Browse files
authored
Update version to 3.4.2 (#683)
1 parent fa72cad commit 18ad2cd

File tree

28 files changed

+105
-68
lines changed

28 files changed

+105
-68
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ ARG operator_image
1313

1414
LABEL "com.oracle.coherence.application"="operator"
1515
LABEL "com.oracle.coherence.version"="$version"
16+
LABEL "org.opencontainers.image.description"="The Oracle Coherece Kubernetes Operator image ($target)"
17+
LABEL "org.opencontainers.image.source"="https://github.com/oracle/coherence-operator"
1618

1719
ENV COHERENCE_IMAGE=$coherence_image \
1820
OPERATOR_IMAGE=$operator_image
1921

20-
COPY bin/linux/$target/* /files/
22+
COPY bin/linux/$target/* /files/
2123
COPY java/coherence-operator/target/docker/lib/*.jar /files/lib/
2224
COPY java/coherence-operator/target/docker/logging/logging.properties /files/logging/logging.properties
2325

Makefile

Lines changed: 53 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@
1515
# ======================================================================================================================
1616

1717
# The version of the Operator being build - this should be a valid SemVer format
18-
VERSION ?= 3.4.1
18+
VERSION ?= 3.4.2
1919
MVN_VERSION ?= $(VERSION)
2020

2121
# The version number to be replaced by this release
22-
PREV_VERSION ?= 3.4.0
22+
PREV_VERSION ?= 3.4.1
23+
NEXT_VERSION := $(shell sh ./hack/next-version.sh "$(VERSION)")
2324

2425
# The operator version to use to run certification tests against
2526
CERTIFICATION_VERSION ?= $(VERSION)
2627

2728
# The previous Operator version used to run the compatibility tests.
28-
COMPATIBLE_VERSION ?= 3.4.0
29+
COMPATIBLE_VERSION ?= 3.4.1
2930
# The selector to use to find Operator Pods of the COMPATIBLE_VERSION (do not put in double quotes!!)
3031
COMPATIBLE_SELECTOR ?= control-plane=coherence
3132

@@ -61,7 +62,7 @@ TEST_COHERENCE_GID ?= com.oracle.coherence.ce
6162
# The current working directory
6263
CURRDIR := $(shell pwd)
6364

64-
GH_TOKEN ?=
65+
GH_TOKEN ?=
6566
ifeq ("$(GH_TOKEN)", "")
6667
GH_AUTH := 'Foo: Bar'
6768
else
@@ -364,7 +365,7 @@ ISTIO_VERSION ?=
364365
# ----------------------------------------------------------------------------------------------------------------------
365366
# The version of Tanzu to install, leave empty for the latest
366367
TANZU_VERSION ?=
367-
TANZU =
368+
TANZU =
368369

369370
# ======================================================================================================================
370371
# Makefile targets start here
@@ -420,11 +421,15 @@ $(BUILD_PROPS):
420421
# Clean-up all of the build artifacts
421422
# ----------------------------------------------------------------------------------------------------------------------
422423
.PHONY: clean
423-
clean: ## Cleans the build
424+
clean: ## Cleans the build
424425
-rm -rf $(BUILD_OUTPUT) || true
425426
-rm -rf $(BUILD_BIN) || true
426427
-rm -rf bundle || true
428+
rm config/crd/bases/*.yaml || true
429+
rm -rf config/crd-small || true
427430
rm pkg/data/zz_generated_*.go || true
431+
rm pkg/data/assets/*.yaml || true
432+
rm pkg/data/assets/*.json || true
428433
./mvnw -f java clean $(MAVEN_BUILD_OPTS)
429434
./mvnw -f examples clean $(MAVEN_BUILD_OPTS)
430435

@@ -2074,7 +2079,7 @@ ifeq ($(OPERATOR_RELEASE_IMAGE), $(OPERATOR_IMAGE))
20742079
--amend $(OPERATOR_IMAGE)-amd64 \
20752080
--amend $(OPERATOR_IMAGE)-arm64
20762081
docker manifest annotate $(OPERATOR_IMAGE) $(OPERATOR_IMAGE)-arm64 --arch arm64
2077-
docker manifest push $(OPERATOR_IMAGE)
2082+
docker manifest push $(OPERATOR_IMAGE)
20782083
else
20792084
@echo "Tagging $(OPERATOR_IMAGE)-amd64 as $(OPERATOR_RELEASE_IMAGE)-amd64"
20802085
docker tag $(OPERATOR_IMAGE)-amd64 $(OPERATOR_RELEASE_IMAGE)-amd64
@@ -2354,6 +2359,10 @@ serve-docs:
23542359
cd $(BUILD_OUTPUT)/docs; \
23552360
python -m SimpleHTTPServer 8080
23562361

2362+
# ======================================================================================================================
2363+
# Release targets
2364+
# ======================================================================================================================
2365+
##@ Release Targets
23572366

23582367
# ----------------------------------------------------------------------------------------------------------------------
23592368
# Pre-Release Tasks
@@ -2373,23 +2382,6 @@ pre-release:
23732382
.PHONY: post-release
23742383
post-release: check-new-version new-version
23752384

2376-
.PHONY: check-new-version
2377-
check-new-version:
2378-
ifeq (, $(NEW_VERSION))
2379-
@echo "You must specify the NEW_VERSION parameter"
2380-
exit 1
2381-
else
2382-
@echo "Updating version from $(VERSION) to $(NEW_VERSION)"
2383-
endif
2384-
2385-
.PHONY: new-version
2386-
new-version:
2387-
$(SED) 's/$(subst .,\.,$(PREV_VERSION))/$(VERSION)/g' MAKEFILE
2388-
$(SED) 's/$(subst .,\.,$(VERSION))/$(NEW_VERSION)/g' MAKEFILE
2389-
find config \( -name '*.yaml' -o -name '*.json' \) -exec $(SED) 's/$(subst .,\.,$(VERSION))/$(NEW_VERSION)/g' {} +
2390-
find java \( -name 'pom.xml' \) -exec $(SED) 's/<version>$(subst .,\.,$(VERSION))<\/version>/<version>$(NEW_VERSION)<\/version>/g' {} +
2391-
2392-
23932385
# ----------------------------------------------------------------------------------------------------------------------
23942386
# Release the Coherence Operator dashboards
23952387
# ----------------------------------------------------------------------------------------------------------------------
@@ -2498,14 +2490,50 @@ push-snapshot-docs: $(BUILD_TARGETS)/generate $(BUILD_TARGETS)/manifests docs
24982490
# Release the Coherence Operator.
24992491
# ----------------------------------------------------------------------------------------------------------------------
25002492
.PHONY: release
2501-
release:
2493+
release: ## Release the Operator
25022494
ifeq (true, $(RELEASE_DRY_RUN))
25032495
release: build-all-images release-ghpages
25042496
@echo "release dry-run: would have pushed images"
25052497
else
25062498
release: build-all-images push-release-images release-ghpages
25072499
endif
25082500

2501+
# ----------------------------------------------------------------------------------------------------------------------
2502+
# Update the Operator version and all references to the previous version
2503+
# ----------------------------------------------------------------------------------------------------------------------
2504+
.PHONY: new-version
2505+
new-version: ## Update the Operator Version (must be run with NEXT_VERSION=x.y.z specified)
2506+
$(SED) 's/$(subst .,\.,$(VERSION))/$(NEXT_VERSION)/g' MAKEFILE
2507+
$(SED) 's/$(subst .,\.,$(PREV_VERSION))/$(VERSION)/g' MAKEFILE
2508+
find docs \( -name '*.adoc' -o -name '*.yaml' \) -exec $(SED) 's/$(subst .,\.,$(VERSION))/$(NEXT_VERSION)/g' {} +
2509+
find examples \( -name 'pom.xml' \) -exec $(SED) 's/<version>$(subst .,\.,$(VERSION))<\/version>/<version>$(NEXT_VERSION)<\/version>/g' {} +
2510+
find examples \( -name '*.adoc' -o -name 'Dockerfile' \) -exec $(SED) 's/$(subst .,\.,$(VERSION))/$(NEXT_VERSION)/g' {} +
2511+
find examples \( -name '*.yaml' -o -name '*.json' \) -exec $(SED) 's/$(subst .,\.,$(VERSION))/$(NEXT_VERSION)/g' {} +
2512+
find config \( -name '*.yaml' -o -name '*.json' \) -exec $(SED) 's/$(subst .,\.,$(VERSION))/$(NEXT_VERSION)/g' {} +
2513+
find helm-charts \( -name '*.yaml' -o -name '*.json' \) -exec $(SED) 's/$(subst .,\.,$(VERSION))/$(NEXT_VERSION)/g' {} +
2514+
$(SED) -e 's/<revision>$(subst .,\.,$(VERSION))<\/revision>/<revision>$(NEXT_VERSION)<\/revision>/g' java/pom.xml
2515+
2516+
GIT_BRANCH="version-update-$(VERSION)"
2517+
GIT_LABEL="version-update"
2518+
2519+
.PHONY: new-version-pr
2520+
new-version-pr: ## Create a PR to update the version
2521+
git config user.email "[email protected]"
2522+
git config user.name "GitHub Action"
2523+
git checkout -b $(GIT_BRANCH)
2524+
git commit -am "Version update to $(VERSION)"
2525+
git push --set-upstream origin $(GIT_BRANCH)
2526+
2527+
gh label create "$(GIT_LABEL)" \
2528+
--description "Pull requests with version update" \
2529+
--force \
2530+
|| true
2531+
2532+
gh pr create \
2533+
--title "Version update to $(VERSION)" \
2534+
--body "Current pull request contains version update to version $(VERSION)" \
2535+
--label "$(GIT_LABEL)" \
2536+
--head $(GIT_BRANCH)
25092537

25102538
# ----------------------------------------------------------------------------------------------------------------------
25112539
# Create the third-party license file

config/crd/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ commonLabels:
4141
app.kubernetes.io/instance: coherence-operator-crd
4242
app.kubernetes.io/name: coherence-operator
4343
app.kubernetes.io/part-of: coherence-operator
44-
app.kubernetes.io/version: 3.4.1
44+
app.kubernetes.io/version: 3.4.2

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ resources:
99
images:
1010
- name: controller
1111
newName: ghcr.io/oracle/coherence-operator
12-
newTag: 3.4.1
12+
newTag: 3.4.2

config/manager/manager.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ metadata:
88
app.kubernetes.io/name: coherence-operator
99
app: coherence-operator
1010
app.kubernetes.io/instance: coherence-operator-manager
11-
app.kubernetes.io/version: "3.4.1"
12-
version: "3.4.1"
11+
app.kubernetes.io/version: "3.4.2"
12+
version: "3.4.2"
1313
app.kubernetes.io/component: manager
1414
app.kubernetes.io/part-of: coherence-operator
1515
spec:
@@ -24,8 +24,8 @@ spec:
2424
app.kubernetes.io/name: coherence-operator
2525
app: coherence-operator
2626
app.kubernetes.io/instance: coherence-operator-manager
27-
app.kubernetes.io/version: "3.4.1"
28-
version: "3.4.1"
27+
app.kubernetes.io/version: "3.4.2"
28+
version: "3.4.2"
2929
app.kubernetes.io/component: manager
3030
app.kubernetes.io/part-of: coherence-operator
3131
spec:
@@ -106,7 +106,7 @@ spec:
106106
control-plane: coherence
107107
app.kubernetes.io/name: coherence-operator
108108
app.kubernetes.io/instance: coherence-operator-manager
109-
app.kubernetes.io/version: "3.4.1"
109+
app.kubernetes.io/version: "3.4.2"
110110
affinity:
111111
podAntiAffinity:
112112
preferredDuringSchedulingIgnoredDuringExecution:
@@ -117,7 +117,7 @@ spec:
117117
control-plane: coherence
118118
app.kubernetes.io/name: coherence-operator
119119
app.kubernetes.io/instance: coherence-operator-manager
120-
app.kubernetes.io/version: "3.4.1"
120+
app.kubernetes.io/version: "3.4.2"
121121
weight: 50
122122
- podAffinityTerm:
123123
topologyKey: "oci.oraclecloud.com/fault-domain"
@@ -126,7 +126,7 @@ spec:
126126
control-plane: coherence
127127
app.kubernetes.io/name: coherence-operator
128128
app.kubernetes.io/instance: coherence-operator-manager
129-
app.kubernetes.io/version: "3.4.1"
129+
app.kubernetes.io/version: "3.4.2"
130130
weight: 10
131131
- podAffinityTerm:
132132
topologyKey: "kubernetes.io/hostname"
@@ -135,5 +135,5 @@ spec:
135135
control-plane: coherence
136136
app.kubernetes.io/name: coherence-operator
137137
app.kubernetes.io/instance: coherence-operator-manager
138-
app.kubernetes.io/version: "3.4.1"
138+
app.kubernetes.io/version: "3.4.2"
139139
weight: 1

config/manager/service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
control-plane: coherence
88
app.kubernetes.io/name: coherence-operator
99
app.kubernetes.io/instance: coherence-operator-webhook
10-
app.kubernetes.io/version: "3.4.1"
10+
app.kubernetes.io/version: "3.4.2"
1111
app.kubernetes.io/component: webhook
1212
app.kubernetes.io/part-of: coherence-operator
1313
spec:
@@ -18,7 +18,7 @@ spec:
1818
selector:
1919
app.kubernetes.io/name: coherence-operator
2020
app.kubernetes.io/instance: coherence-operator-manager
21-
app.kubernetes.io/version: "3.4.1"
21+
app.kubernetes.io/version: "3.4.2"
2222
app.kubernetes.io/component: manager
2323
---
2424
apiVersion: v1
@@ -30,7 +30,7 @@ metadata:
3030
control-plane: coherence
3131
app.kubernetes.io/name: coherence-operator
3232
app.kubernetes.io/instance: coherence-operator-rest
33-
app.kubernetes.io/version: "3.4.1"
33+
app.kubernetes.io/version: "3.4.2"
3434
app.kubernetes.io/component: rest
3535
app.kubernetes.io/part-of: coherence-operator
3636
spec:
@@ -41,5 +41,5 @@ spec:
4141
selector:
4242
app.kubernetes.io/name: coherence-operator
4343
app.kubernetes.io/instance: coherence-operator-manager
44-
app.kubernetes.io/version: "3.4.1"
44+
app.kubernetes.io/version: "3.4.2"
4545
app.kubernetes.io/component: manager

config/manifests/bases/coherence-operator.clusterserviceversion.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ metadata:
1111
description: >-
1212
Coherence Operator implements features to assist with deploying and
1313
managing Coherence clusters in a Kubernetes environment.
14-
containerImage: 'ghcr.io/oracle/coherence-operator:3.4.1'
14+
containerImage: 'ghcr.io/oracle/coherence-operator:3.4.2'
1515
support: ''
1616
repository: 'https://github.com/oracle/coherence-operator'
1717
operators.operatorframework.io/builder: operator-sdk-v1.0.0
1818
operators.operatorframework.io/project_layout: go.kubebuilder.io/v2
19-
name: coherence-operator.v3.4.1
19+
name: coherence-operator.v3.4.2
2020
namespace: placeholder
2121
spec:
2222
apiservicedefinitions: {}
@@ -65,4 +65,4 @@ spec:
6565
provider:
6666
name: Oracle
6767
url: https://oracle.github.io/coherence-operator/docs/latest
68-
version: 3.4.1
68+
version: 3.4.2

docs/about/03_quickstart.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you want the default Coherence Operator installation then the simplest soluti
2121
2222
[source,bash]
2323
----
24-
kubectl apply -f https://github.com/oracle/coherence-operator/releases/download/v3.4.1/coherence-operator.yaml
24+
kubectl apply -f https://github.com/oracle/coherence-operator/releases/download/v3.4.2/coherence-operator.yaml
2525
----
2626
2727
This will create a namespace called `coherence` and install the Operator into it along with all the required `ClusterRole` and `RoleBinding` resources. The `coherence` namespace can be changed by downloading and editing the yaml file.

docs/installation/01_installation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ If you want the default Coherence Operator installation then the simplest soluti
150150
151151
[source,bash]
152152
----
153-
kubectl apply -f https://github.com/oracle/coherence-operator/releases/download/v3.4.1/coherence-operator.yaml
153+
kubectl apply -f https://github.com/oracle/coherence-operator/releases/download/v3.4.2/coherence-operator.yaml
154154
----
155155
156156
This will create a namespace called `coherence` and install the Operator into it along with all the required `ClusterRole` and `RoleBinding` resources. The `coherence` namespace can be changed by downloading and editing the yaml file.

docs/installation/07_webhooks.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ If installing the operator using the manifest yaml file first replace the occurr
6363
For example:
6464
[source,bash]
6565
----
66-
curl -L https://github.com/oracle/coherence-operator/releases/download/v3.4.1/coherence-operator.yaml \
66+
curl -L https://github.com/oracle/coherence-operator/releases/download/v3.4.2/coherence-operator.yaml \
6767
-o coherence-operator.yaml
6868
sed -i s/self-signed/cert-manager/g coherence-operator.yaml
6969
kubectl apply -f coherence-operator.yaml

0 commit comments

Comments
 (0)