Skip to content

Commit 40bd6ba

Browse files
authored
Merge branch 'operator-framework:main' into sa-err-msg
2 parents ddf9c64 + 46cec30 commit 40bd6ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1835
-809
lines changed

.bingo/Variables.mk

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ $(CRD_REF_DOCS): $(BINGO_DIR)/crd-ref-docs.mod
4141
@echo "(re)installing $(GOBIN)/crd-ref-docs-v0.1.0"
4242
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=crd-ref-docs.mod -o=$(GOBIN)/crd-ref-docs-v0.1.0 "github.com/elastic/crd-ref-docs"
4343

44-
GINKGO := $(GOBIN)/ginkgo-v2.22.2
45-
$(GINKGO): $(BINGO_DIR)/ginkgo.mod
46-
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
47-
@echo "(re)installing $(GOBIN)/ginkgo-v2.22.2"
48-
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=ginkgo.mod -o=$(GOBIN)/ginkgo-v2.22.2 "github.com/onsi/ginkgo/v2/ginkgo"
49-
5044
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.63.4
5145
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
5246
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.

.bingo/ginkgo.mod

Lines changed: 0 additions & 7 deletions
This file was deleted.

.bingo/ginkgo.sum

Lines changed: 0 additions & 8 deletions
This file was deleted.

.bingo/variables.env

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ CRD_DIFF="${GOBIN}/crd-diff-v0.1.0"
1616

1717
CRD_REF_DOCS="${GOBIN}/crd-ref-docs-v0.1.0"
1818

19-
GINKGO="${GOBIN}/ginkgo-v2.22.2"
20-
2119
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.63.4"
2220

2321
GORELEASER="${GOBIN}/goreleaser-v1.26.2"

.github/workflows/catalogd-crd-diff.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/crd-diff.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ jobs:
1414
go-version-file: go.mod
1515

1616
- name: Run make verify-crd-compatibility
17-
run: make verify-crd-compatibility CRD_DIFF_ORIGINAL_REF=${{ github.event.pull_request.base.sha }} CRD_DIFF_UPDATED_SOURCE="git://${{ github.event.pull_request.head.sha }}?path=config/base/crd/bases/olm.operatorframework.io_clusterextensions.yaml"
18-
17+
run: |
18+
make verify-crd-compatibility \
19+
CRD_DIFF_ORIGINAL_REF=${{ github.event.pull_request.base.sha }} \
20+
CRD_DIFF_UPDATED_SOURCE="git://${{ github.event.pull_request.head.sha }}?path=config/base/crd/bases/olm.operatorframework.io_clusterextensions.yaml" \
21+
CATALOGD_CRD_DIFF_UPDATED_SOURCE="git://${{ github.event.pull_request.head.sha }}?path=catalogd/config/base/crd/bases/olm.operatorframework.io_clustercatalogs.yaml"

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ release:
124124
disable: '{{ ne .Env.ENABLE_RELEASE_PIPELINE "true" }}'
125125
extra_files:
126126
- glob: 'operator-controller.yaml'
127+
- glob: './catalogd/config/base/default/clustercatalogs/default-catalogs.yaml'
127128
- glob: 'install.sh'
128129
header: |
129130
## Installation

.tiltignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.md
2+
.txt
3+
.toml
4+
LICENSE
5+
Makefile
6+
.github
7+
.vscode
8+
*_test.go
9+
*/test
10+
.sh

Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,13 @@ bingo-upgrade: $(BINGO) #EXHELP Upgrade tools
142142
.PHONY: verify-crd-compatibility
143143
CRD_DIFF_ORIGINAL_REF := main
144144
CRD_DIFF_UPDATED_SOURCE := file://config/base/crd/bases/olm.operatorframework.io_clusterextensions.yaml
145+
CATALOGD_CRD_DIFF_UPDATED_SOURCE := file://catalogd/config/base/crd/bases/olm.operatorframework.io_clustercatalogs.yaml
145146
CRD_DIFF_CONFIG := crd-diff-config.yaml
147+
146148
verify-crd-compatibility: $(CRD_DIFF) manifests
147149
$(CRD_DIFF) --config="${CRD_DIFF_CONFIG}" "git://${CRD_DIFF_ORIGINAL_REF}?path=config/base/crd/bases/olm.operatorframework.io_clusterextensions.yaml" ${CRD_DIFF_UPDATED_SOURCE}
150+
$(CRD_DIFF) --config="${CRD_DIFF_CONFIG}" "git://${CRD_DIFF_ORIGINAL_REF}?path=catalogd/config/base/crd/bases/olm.operatorframework.io_clustercatalogs.yaml" ${CATALOGD_CRD_DIFF_UPDATED_SOURCE}
151+
148152

149153
.PHONY: test
150154
test: manifests generate fmt vet test-unit test-e2e #HELP Run all tests.
@@ -244,9 +248,10 @@ kind-load: $(KIND) #EXHELP Loads the currently constructed images into the KIND
244248

245249
.PHONY: kind-deploy
246250
kind-deploy: export MANIFEST := ./operator-controller.yaml
251+
kind-deploy: export DEFAULT_CATALOG := ./catalogd/config/base/default/clustercatalogs/default-catalogs.yaml
247252
kind-deploy: manifests $(KUSTOMIZE)
248253
($(KUSTOMIZE) build $(KUSTOMIZE_BUILD_DIR) && echo "---" && $(KUSTOMIZE) build catalogd/config/overlays/cert-manager | sed "s/cert-git-version/cert-$(VERSION)/g") > $(MANIFEST)
249-
envsubst '$$CERT_MGR_VERSION,$$INSTALL_DEFAULT_CATALOGS,$$MANIFEST' < scripts/install.tpl.sh | bash -s
254+
envsubst '$$DEFAULT_CATALOG,$$CERT_MGR_VERSION,$$INSTALL_DEFAULT_CATALOGS,$$MANIFEST' < scripts/install.tpl.sh | bash -s
250255

251256

252257
.PHONY: kind-cluster
@@ -324,10 +329,11 @@ release: $(GORELEASER) #EXHELP Runs goreleaser for the operator-controller. By d
324329
OPERATOR_CONTROLLER_IMAGE_REPO=$(IMAGE_REPO) CATALOGD_IMAGE_REPO=$(CATALOG_IMAGE_REPO) $(GORELEASER) $(GORELEASER_ARGS)
325330

326331
.PHONY: quickstart
327-
quickstart: export MANIFEST := ./operator-controller.yaml
332+
quickstart: export MANIFEST := https://github.com/operator-framework/operator-controller/releases/download/$(VERSION)/operator-controller.yaml
333+
quickstart: export DEFAULT_CATALOG := "https://github.com/operator-framework/operator-controller/releases/download/$(VERSION)/default-catalogs.yaml"
328334
quickstart: $(KUSTOMIZE) manifests #EXHELP Generate the unified installation release manifests and scripts.
329-
($(KUSTOMIZE) build $(KUSTOMIZE_BUILD_DIR) && echo "---" && $(KUSTOMIZE) build catalogd/config/overlays/cert-manager | sed "s/cert-git-version/cert-$(VERSION)/g") > $(MANIFEST)
330-
envsubst '$$CERT_MGR_VERSION,$$INSTALL_DEFAULT_CATALOGS,$$MANIFEST' < scripts/install.tpl.sh > install.sh
335+
($(KUSTOMIZE) build $(KUSTOMIZE_BUILD_DIR) && echo "---" && $(KUSTOMIZE) build catalogd/config/overlays/cert-manager) | sed "s/cert-git-version/cert-$(VERSION)/g" | sed "s/:devel/:$(VERSION)/g" > operator-controller.yaml
336+
envsubst '$$DEFAULT_CATALOG,$$CERT_MGR_VERSION,$$INSTALL_DEFAULT_CATALOGS,$$MANIFEST' < scripts/install.tpl.sh > install.sh
331337

332338
##@ Docs
333339

RELEASE.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,25 @@ Note that throughout this guide, the `upstream` remote refers to the `operator-f
1717
The release process differs slightly based on whether a patch or major/minor release is being made.
1818

1919
### Patch Release
20-
#### Step 1
21-
In this example we will be creating a new patch release from version `v1.2.3`, on the branch `release-v1.2`.
22-
First ensure that the release branch has been updated on remote with the changes from the patch, then perform the following:
20+
21+
In this example, we will be creating a new patch release from version `v1.2.3` on the branch `release-v1.2`.
22+
23+
#### Step 1
24+
First, make sure the `release-v1.2` branch is updated with the latest changes from upstream:
2325
```bash
2426
git fetch upstream release-v1.2
25-
git pull release-v1.2
2627
git checkout release-v1.2
28+
git reset --hard upstream/release-v1.2
2729
```
2830

2931
#### Step 2
32+
Run the following command to confirm that your local branch has the latest expected commit:
33+
```bash
34+
git log --oneline -n 5
35+
```
36+
Check that the most recent commit matches the latest commit in the upstream `release-v1.2` branch.
37+
38+
#### Step 3
3039
Create a new tag, incrementing the patch number from the previous version. In this case, we'll be incrementing from `v1.2.3` to `v1.2.4`:
3140
```bash
3241
## Previous version was v1.2.3, so we bump the patch number up by one

0 commit comments

Comments
 (0)