Skip to content

Commit b7d37f6

Browse files
authored
Merge branch 'master' into ci/add-resource-debugging-support
2 parents e7f7d81 + 0fa6f29 commit b7d37f6

File tree

2,100 files changed

+121299
-47543
lines changed

Some content is hidden

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

2,100 files changed

+121299
-47543
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,35 @@ Note: Make sure your branch is rebased to the latest upstream master.
88

99
**Description of the change:**
1010

11-
1211
**Motivation for the change:**
1312

13+
**Architectural changes:**
14+
15+
<!--
16+
If necessary, briefly describe any architectural changes, other options considered, and/or link to any EPs or design docs
17+
-->
18+
19+
**Testing remarks:**
20+
21+
<!--
22+
Call out any information around how you've tested the code change that may be useful for reviewers. For instance:
23+
* any edge-cases you have (dis)covered
24+
* how you have reproduced and tested for regressions in bug fixes
25+
* how you've tested for flakes in e2e tests or flake fixes
26+
-->
27+
1428
**Reviewer Checklist**
1529
- [ ] Implementation matches the proposed design, or proposal is updated to match implementation
1630
- [ ] Sufficient unit test coverage
1731
- [ ] Sufficient end-to-end test coverage
32+
- [ ] Bug fixes are accompanied by regression test(s)
33+
- [ ] e2e tests and flake fixes are accompanied evidence of flake testing, e.g. executing the test 100(0) times
34+
- [ ] tech debt/todo is accompanied by issue link(s) in comments in the surrounding code
35+
- [ ] Tests are comprehensible, e.g. Ginkgo DSL is being used appropriately
1836
- [ ] Docs updated or added to `/doc`
1937
- [ ] Commit messages sensible and descriptive
20-
- [ ] Tests marked as `[FLAKE]` are truly flaky
21-
- [ ] Tests that remove the `[FLAKE]` tag are no longer flaky
38+
- [ ] Tests marked as `[FLAKE]` are truly flaky and have an issue
39+
- [ ] Code is properly formatted
2240

2341

2442
<!--

.github/workflows/e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v1
1919
- uses: actions/setup-go@v2
2020
with:
21-
go-version: '~1.17'
21+
go-version: '~1.18'
2222
- run: mkdir -p artifacts
2323
- run: make e2e-local E2E_TEST_CHUNK=${{ matrix.parallel-id }} E2E_TEST_NUM_CHUNKS=${{ strategy.job-total }} E2E_NODES=2 ARTIFACT_DIR=./artifacts/ SKIP='\[FLAKE\]'
2424
- name: Archive Test Artifacts # test results, failed or not, are always uploaded.

.github/workflows/flaky-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
- uses: actions/checkout@v1
1515
- uses: actions/setup-go@v2
1616
with:
17-
go-version: '~1.17'
17+
go-version: '~1.18'
1818
- run: mkdir -p artifacts
1919
- run: make e2e-local E2E_NODES=1 TEST='\[FLAKE\]' ARTIFACT_DIR=./artifacts/
2020
- name: Archive Test Artifacts # test results, failed or not, are always uploaded.
2121
if: ${{ always() }}
2222
uses: actions/upload-artifact@v2
2323
with:
2424
name: e2e-test-output-${{(github.event.pull_request.head.sha||github.sha)}}-${{ github.run_id }}
25-
path: ${{ github.workspace }}/bin/artifacts/*
25+
path: ${{ github.workspace }}/bin/artifacts/*

.github/workflows/goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v2
1818
with:
19-
go-version: '~1.17'
19+
go-version: '~1.18'
2020

2121
- name: Get the image tag
2222
if: startsWith(github.ref, 'refs/tags')

.github/workflows/run-kind-local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v1
1212
- uses: actions/setup-go@v2
1313
with:
14-
go-version: '~1.17'
14+
go-version: '~1.18'
1515
- name: Install kind
1616
run: |
1717
curl -sLo kind "$(curl -sL https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | jq -r '[.assets[] | select(.name == "kind-linux-amd64")] | first | .browser_download_url')"

.github/workflows/run-minikube-local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v1
1212
- uses: actions/setup-go@v2
1313
with:
14-
go-version: '~1.17'
14+
go-version: '~1.18'
1515
- name: Install minikube
1616
run: |
1717
sudo apt-get install conntrack

.github/workflows/sanity.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v1
1313
- uses: actions/setup-go@v2
1414
with:
15-
go-version: '~1.17'
15+
go-version: '~1.18'
1616
- name: Run sanity checks
1717
run: make vendor && make diff
1818
lint:
@@ -22,4 +22,4 @@ jobs:
2222
- name: Run linting checks
2323
uses: "golangci/golangci-lint-action@v2"
2424
with:
25-
version: "v1.45.2"
25+
version: "v1.46.0"

.github/workflows/unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v1
1515
- uses: actions/setup-go@v2
1616
with:
17-
go-version: '~1.17'
17+
go-version: '~1.18'
1818
- name: Envtest setup
1919
run: |
2020
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v1
1313
- uses: actions/setup-go@v2
1414
with:
15-
go-version: '~1.17'
15+
go-version: '~1.18'
1616

1717
# Note(tflannag): We need to explicitly setup the GOPATH as the generate-internal-groups.sh
1818
# codegen script still relies on $GOPATH being set and will return an error otherwise.

.goreleaser.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,13 @@ changelog:
132132
- '^test:'
133133
release:
134134
draft: true
135+
header: |
136+
## Install
137+
138+
### Scripted
139+
140+
```
141+
curl -L https://github.com/operator-framework/operator-lifecycle-manager/releases/download/{{ .Tag }}/install.sh -o install.sh
142+
chmod +x install.sh
143+
./install.sh {{ .Tag }}
144+
```

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ E2E_TEST_NUM_CHUNKS ?= 4
132132
ifneq (all,$(E2E_TEST_CHUNK))
133133
TEST := $(shell go run ./test/e2e/split/... -chunks $(E2E_TEST_NUM_CHUNKS) -print-chunk $(E2E_TEST_CHUNK) ./test/e2e)
134134
endif
135-
E2E_OPTS ?= $(if $(E2E_SEED),-seed '$(E2E_SEED)') $(if $(SKIP), -skip '$(SKIP)') $(if $(TEST),-focus '$(TEST)') $(if $(ARTIFACT_DIR), -junit-report '$(ARTIFACT_DIR)junit_e2e.xml') -flake-attempts $(E2E_FLAKE_ATTEMPTS) -nodes $(E2E_NODES) -timeout $(E2E_TIMEOUT) -v -randomize-suites -race -trace -progress
135+
E2E_OPTS ?= $(if $(E2E_SEED),-seed '$(E2E_SEED)') $(if $(SKIP), -skip '$(SKIP)') $(if $(TEST),-focus '$(TEST)') $(if $(ARTIFACT_DIR), -output-dir $(ARTIFACT_DIR) -junit-report junit_e2e.xml) -flake-attempts $(E2E_FLAKE_ATTEMPTS) -nodes $(E2E_NODES) -timeout $(E2E_TIMEOUT) -v -randomize-suites -race -trace -progress
136136
E2E_INSTALL_NS ?= operator-lifecycle-manager
137137
E2E_TEST_NS ?= operators
138138

@@ -230,9 +230,6 @@ release: manifests
230230
docker pull $(IMAGE_REPO):$(ver)
231231
$(MAKE) target=upstream ver=$(ver) quickstart=true package
232232

233-
verify-release: release
234-
$(MAKE) diff
235-
236233
package: olmref=$(shell docker inspect --format='{{index .RepoDigests 0}}' $(IMAGE_REPO):$(ver))
237234
package:
238235
ifndef target

OWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ reviewers:
2525
- timflannagan
2626
- perdasilva
2727
- akihikokuroda
28+
- oceanc80

cmd/catalog/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99

1010
configv1client "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
1111
"github.com/sirupsen/logrus"
12-
utilclock "k8s.io/apimachinery/pkg/util/clock"
1312
k8sscheme "k8s.io/client-go/kubernetes/scheme"
1413
"k8s.io/client-go/tools/clientcmd"
14+
utilclock "k8s.io/utils/clock"
1515

1616
"github.com/operator-framework/operator-lifecycle-manager/pkg/api/client"
1717
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog"

cmd/olm/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ var (
6060
tlsKeyPath = pflag.String(
6161
"tls-key", "", "Path to use for private key (requires tls-cert)")
6262

63+
protectedCopiedCSVNamespaces = pflag.String("protectedCopiedCSVNamespaces",
64+
"", "A comma-delimited set of namespaces where global Copied CSVs will always appear, even if Copied CSVs are disabled")
65+
6366
tlsCertPath = pflag.String(
6467
"tls-cert", "", "Path to use for certificate key (requires tls-key)")
6568

@@ -162,6 +165,7 @@ func main() {
162165
olm.WithOperatorClient(opClient),
163166
olm.WithRestConfig(config),
164167
olm.WithConfigClient(versionedConfigClient),
168+
olm.WithProtectedCopiedCSVNamespaces(*protectedCopiedCSVNamespaces),
165169
)
166170
if err != nil {
167171
logger.WithError(err).Fatal("error configuring operator")

0 commit comments

Comments
 (0)