Skip to content

Commit 054a341

Browse files
authored
Merge branch 'master' into modify_makefiles
2 parents 5b765fb + ad769c0 commit 054a341

Some content is hidden

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

42 files changed

+682
-284
lines changed

.github/stale.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
# Number of days of inactivity before an issue becomes stale
2-
daysUntilStale: 60
2+
daysUntilStale: 90
33
# Number of days of inactivity before a stale issue is closed
44
daysUntilClose: 7
55
# Issues with these labels will never be considered stale
66
exemptLabels:
77
- pinned
88
- security
99
# Label to use when marking an issue as stale
10-
staleLabel: wontfix
10+
staleLabel: lifecycle/stale
1111
# Comment to post when marking an issue as stale. Set to `false` to disable
1212
markComment: >
1313
This issue has been automatically marked as stale because it has not had
14-
recent activity. It will be closed if no further activity occurs. Thank you
15-
for your contributions.
16-
# Comment to post when closing a stale issue. Set to `false` to disable
17-
closeComment: false
14+
any recent activity. It will be closed in 7 days if no further activity occurs. Thank you
15+
for your contribution.
16+
17+
For more help on your issue, check out the olm-dev channel on the kubernetes slack [1] and the OLM Dev Working Group [2]
18+
[1] https://kubernetes.slack.com/archives/C0181L6JYQ2
19+
[2] https://github.com/operator-framework/community#operator-lifecycle-manager-wg
20+
# Comment to post when closing a stale Issue or Pull Request.
21+
closeComment: >
22+
This issue has been automatically closed because it has not had
23+
any recent activity. Thank you for your contribution.
24+
# Limit to only `issues` or `pulls`
25+
only: issues

.github/workflows/test-scripts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
curl -sLo minikube "$(curl -sL https://api.github.com/repos/kubernetes/minikube/releases/latest | jq -r '[.assets[] | select(.name == "minikube-linux-amd64")] | first | .browser_download_url')"
2929
chmod +x minikube
3030
sudo mv minikube /bin/
31-
minikube config set vm-driver none
32-
sudo make run-local # vm-driver=none requires root
31+
minikube config set vm-driver docker
32+
make run-local
3333
run-local-kind:
3434
runs-on: ubuntu-latest
3535
steps:

DEVELOPMENT.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
[Docker for Mac]: https://store.docker.com/editions/community/docker-ce-desktop-mac
1212
[kubebuilder docs]: https://book.kubebuilder.io/quick-start.html#installation
1313

14+
#### E2E test environments
15+
16+
| Requirement | install docs |
17+
|-------------|----------------------|
18+
| Minikube | [Minikube docs] |
19+
| Kind | [Kind docs] |
20+
21+
[Minikube docs]: https://minikube.sigs.k8s.io/docs/start
22+
[Kind docs]: https://kind.sigs.k8s.io/docs/user/quick-start
23+
1424
### Usage
1525

1626
#### Testing
@@ -28,6 +38,8 @@ To run the e2e tests locally:
2838
$ make e2e-local
2939
```
3040

41+
**NOTE:** Command `make e2e-local` supports Minikube and Kind environments. If you want to run the e2e tests on Minikube, you need to make sure Minikube is deployed in the local environment. If you want to run the e2e tests on Kind, you need to make sure Kind is deployed in the local environment and switch the kubeconfig to an existing Kind cluster.
42+
3143
To run a specific e2e test locally:
3244

3345
```sh

OWNERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ reviewers:
1717
- anik120
1818
- exdx
1919
- awgreene
20-
- Bowenislandsong
21-
- benluddy
2220
- hasbro17
2321
- ankitathomas
2422
- joelanford
23+
- timflannagan
2524
# Bugzilla component
2625
component: "OLM"

cmd/olm/manager.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ import (
1010
"github.com/operator-framework/operator-lifecycle-manager/pkg/feature"
1111
)
1212

13-
var log = ctrl.Log.WithName("manager")
14-
1513
func Manager(ctx context.Context, debug bool) (ctrl.Manager, error) {
1614
ctrl.SetLogger(zap.New(zap.UseDevMode(debug)))
17-
setupLog := log.WithName("setup").V(4)
15+
setupLog := ctrl.Log.WithName("setup").V(1)
1816

1917
// Setup a Manager
2018
setupLog.Info("configuring manager")

doc/design/channel-naming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ In the diagram above you can see the following:
2727

2828
- A catalog index named “redhat:v4.6”, this catalog is built by a cluster administrator typically
2929
- There are 2 operator packages found in the catalog, myoperator and otheroperator.
30-
- The myoperator has 3 bundles (1.0.0, 1.0.1, 1.0.2). Versions 1.0.1 and 1.0.1 are in multiple channels (fast, stable). Whereas version 1.0.2 is only in the fast channel.
30+
- The myoperator has 3 bundles (1.0.0, 1.0.1, 1.0.2). Versions 1.0.0 and 1.0.1 are in multiple channels (fast, stable). Whereas version 1.0.2 is only in the fast channel.
3131
- The otheroperator has 2 bundles specifying 2 different channels (preview, stable). Version 1.4.0 specifies it is within 2 channels, stable and preview.
3232

3333

doc/design/operatorgroups.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ metadata:
4545
namespace: my-namespace
4646
spec:
4747
selector:
48-
cool.io/prod: "true"
48+
matchLabels:
49+
cool.io/prod: "true"
4950
```
5051
5152
or by explicitly naming target namespaces with the `spec.targetNamespaces` field:

doc/design/release.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# Steps to create a new release
22

3-
## Step 0: Installing Requirements
3+
## Step 0: Review the Release Milestone
4+
If the release you plan to create corresponds with an existing [milestone](https://github.com/operator-framework/operator-lifecycle-manager/milestone/), make sure that all features have been committed. If a feature will not be added to the release be sure to remove it from the milestone.
45

6+
7+
## Step 1: Installing Requirements
58
Ensure you have `autoconf`, `automake`, and `libtool` installed. On Fedora, you can run
69

710
```
811
dnf install autoconf automake libtool
912
```
1013

11-
## Step 1: Verify Manifests
14+
15+
## Step 2: Verify Manifests
1216
We need to ensure that `./manifests` folder is in sync with the templates in `deploy/chart/templates`.
1317
* Make sure you have a clean workspace. `git status` should show no change(s) or untracked file.
1418
* Make sure you pull the latest from `upstream`.
@@ -27,12 +31,12 @@ If you see change(s) in `./manifests` folder, then:
2731
* Consult the team and backport the changes in `./manifests` folder into the templates.
2832

2933

30-
## Step 2: Bump the Version
34+
## Step 3: Bump the Version
3135
* Bump the version in `OLM_VERSION` file. Make a new PR with this change only.
3236
* Wait until the PR has been merged.
3337

3438

35-
## Step 3: Setup Tag
39+
## Step 4: Setup Tag
3640
If git `push` is disabled on `upstream` repository in your fork, then clone this repository so that you can push to `master` directly.
3741

3842
* Pull the latest.
@@ -50,8 +54,7 @@ git push origin 0.11.0
5054

5155
* Confirm that new images have been built here: <https://quay.io/repository/operator-framework/olm?tab=builds>.
5256

53-
54-
## Step 3: Generate Manifests
57+
## Step 5: Generate Manifests
5558
* Make sure you have a clean workspace. `git status` should show no change(s) or untracked file.
5659
* Make sure you pull the latest from `upstream`.
5760
* Run `make release` on `master` branch.
@@ -61,7 +64,7 @@ Verify the following:
6164
* The image digest in manifest file(s) matches the new tag in `quay.io`.
6265
* `./manifests` folder only differs in version and image.
6366

64-
## Step 4: Generate Changelog
67+
## Step 6: Generate Changelog
6568
Changelogs for OLM are generated using [GitHub Changelog Generator](https://github.com/github-changelog-generator/github-changelog-generator).
6669

6770
You need to have `gem` installed on your workstation. Execute the following command to install `github-changelog-generator`.
@@ -82,20 +85,20 @@ github_changelog_generator -u operator-framework -p operator-lifecycle-manager -
8285
```
8386
* Open a new PR with the changelog.
8487

85-
## Step 5: Create a New GitHub Release
88+
## Step 7: Create a New GitHub Release
8689
* Create a new GtiHub release [here](https://github.com/operator-framework/operator-lifecycle-manager/releases/new)
8790
* Choose the new tag matching the version you created.
8891
* You can set `Title` to the same value as the tag name.
8992
* Add the generated `changelog` to the release description.
9093
* Save `draft` of the release.
9194

9295

93-
## Step 5: QuickStart
96+
## Step 8: QuickStart
9497
Edit the GitHub Release:
9598
* Upload the files `crds.yam`, `install.sh` and `olm.yaml` as release artifacts. These files are located in `deploy/upstream/quickstart`
9699
* Add install instruction, see an [example here](https://github.com/operator-framework/operator-lifecycle-manager/releases/tag/0.10.0#Install).
97100

98101

99-
## Step 6: Publish Release
102+
## Step 9: Publish Release
100103
* Ensure that all links are valid and works as expected.
101-
* Publish the release!
104+
* Publish the release!

go.mod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ replace (
6969
google.golang.org/grpc => google.golang.org/grpc v1.27.0
7070
google.golang.org/grpc/examples => google.golang.org/grpc/examples v0.0.0-20200709232328-d8193ee9cc3e
7171

72+
// pinned for webhook authorizer panic fix
73+
// https://github.com/kubernetes/kubernetes/pull/97820
74+
k8s.io/apiserver => k8s.io/apiserver v0.0.0-20210107211418-525d1e3c959d
75+
7276
// pinned because no tag supports 1.18 yet
7377
sigs.k8s.io/structured-merge-diff => sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06
7478
)

go.sum

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7
209209
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8=
210210
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
211211
github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
212-
github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
213212
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f h1:lBNOc5arjvs8E5mO2tbpBpLoyyu8B6e44T7hJy6potg=
214213
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
215214
github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk=
@@ -1461,6 +1460,7 @@ honnef.co/go/tools v0.0.1-2019.2.3 h1:3JgtbtFHMiCmsznwGVTUWbgGov+pVqnlf1dEJTNAXe
14611460
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
14621461
honnef.co/go/tools v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
14631462
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
1463+
k8s.io/api v0.0.0-20201114085527-4a626d306b98/go.mod h1:Vaqh9qFKpET0Mx+jNQHyAcNFyvwkGvuIKOt2htB36BQ=
14641464
k8s.io/api v0.18.0/go.mod h1:q2HRQkfDzHMBZL9l/y9rH63PkQl4vae0xRT+8prbrK8=
14651465
k8s.io/api v0.18.2 h1:wG5g5ZmSVgm5B+eHMIbI9EGATS2L8Z72rda19RIEgY8=
14661466
k8s.io/api v0.18.2/go.mod h1:SJCWI7OLzhZSvbY7U8zwNl9UA4o1fizoug34OV/2r78=
@@ -1472,22 +1472,23 @@ k8s.io/apiextensions-apiserver v0.18.2/go.mod h1:q3faSnRGmYimiocj6cHQ1I3WpLqmDgJ
14721472
k8s.io/apiextensions-apiserver v0.19.2/go.mod h1:EYNjpqIAvNZe+svXVx9j4uBaVhTB4C94HkY3w058qcg=
14731473
k8s.io/apiextensions-apiserver v0.20.0 h1:HmeP9mLET/HlIQ5gjP+1c20tgJrlshY5nUyIand3AVg=
14741474
k8s.io/apiextensions-apiserver v0.20.0/go.mod h1:ZH+C33L2Bh1LY1+HphoRmN1IQVLTShVcTojivK3N9xg=
1475+
k8s.io/apimachinery v0.0.0-20201114085355-859536f6dc9b/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
1476+
k8s.io/apimachinery v0.0.0-20201118005411-2456ebdaba22/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
14751477
k8s.io/apimachinery v0.17.0/go.mod h1:b9qmWdKlLuU9EBh+06BtLcSf/Mu89rWL33naRxs1uZg=
14761478
k8s.io/apimachinery v0.18.0/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftcA=
14771479
k8s.io/apimachinery v0.18.2 h1:44CmtbmkzVDAhCpRVSiP2R5PPrC2RtlIv/MoB8xpdRA=
14781480
k8s.io/apimachinery v0.18.2/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftcA=
14791481
k8s.io/apimachinery v0.19.2/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA=
14801482
k8s.io/apimachinery v0.20.0 h1:jjzbTJRXk0unNS71L7h3lxGDH/2HPxMPaQY+MjECKL8=
14811483
k8s.io/apimachinery v0.20.0/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
1482-
k8s.io/apiserver v0.18.2 h1:fwKxdTWwwYhxvtjo0UUfX+/fsitsNtfErPNegH2x9ic=
1483-
k8s.io/apiserver v0.18.2/go.mod h1:Xbh066NqrZO8cbsoenCwyDJ1OSi8Ag8I2lezeHxzwzw=
1484-
k8s.io/apiserver v0.19.2/go.mod h1:FreAq0bJ2vtZFj9Ago/X0oNGC51GfubKK/ViOKfVAOA=
1485-
k8s.io/apiserver v0.20.0 h1:0MwO4xCoqZwhoLbFyyBSJdu55CScp4V4sAgX6z4oPBY=
1486-
k8s.io/apiserver v0.20.0/go.mod h1:6gRIWiOkvGvQt12WTYmsiYoUyYW0FXSiMdNl4m+sxY8=
1484+
k8s.io/apiserver v0.0.0-20210107211418-525d1e3c959d h1:AwHaJx0oyiEkosJJTottPKSnLW9WGg2trzEJMwrrIFo=
1485+
k8s.io/apiserver v0.0.0-20210107211418-525d1e3c959d/go.mod h1:O+lHiX3CE95WMi7zwU97jfXZV0/s8nwiDeH5mQbCatU=
14871486
k8s.io/cli-runtime v0.18.0 h1:jG8XpSqQ5TrV0N+EZ3PFz6+gqlCk71dkggWCCq9Mq34=
14881487
k8s.io/cli-runtime v0.18.0/go.mod h1:1eXfmBsIJosjn9LjEBUd2WVPoPAY9XGTqTFcPMIBsUQ=
14891488
k8s.io/cli-runtime v0.20.0 h1:UfTR9vGUWshJpwuekl7MqRmWumNs5tvqPj20qnmOns8=
14901489
k8s.io/cli-runtime v0.20.0/go.mod h1:C5tewU1SC1t09D7pmkk83FT4lMAw+bvMDuRxA7f0t2s=
1490+
k8s.io/client-go v0.0.0-20201114085741-77eda6a9395b/go.mod h1:R3qihFfcl88JILYbbgUsqpSaJaGXoIO5T/hd87des+k=
1491+
k8s.io/client-go v0.0.0-20201121005859-fb61a7c88cb9/go.mod h1:UTdyXFcu9VZV4qQRKGXCa0KdMX4HTCXClRs4s7yFdDQ=
14911492
k8s.io/client-go v0.18.0/go.mod h1:uQSYDYs4WhVZ9i6AIoEZuwUggLVEF64HOD37boKAtF8=
14921493
k8s.io/client-go v0.18.2 h1:aLB0iaD4nmwh7arT2wIn+lMnAq7OswjaejkQ8p9bBYE=
14931494
k8s.io/client-go v0.18.2/go.mod h1:Xcm5wVGXX9HAA2JJ2sSBUn3tCJ+4SVlCbl2MNNv+CIU=
@@ -1500,6 +1501,7 @@ k8s.io/code-generator v0.18.2/go.mod h1:+UHX5rSbxmR8kzS+FAv7um6dtYrZokQvjHpDSYRV
15001501
k8s.io/code-generator v0.19.2/go.mod h1:moqLn7w0t9cMs4+5CQyxnfA/HV8MF6aAVENF+WZZhgk=
15011502
k8s.io/code-generator v0.20.0 h1:c8JaABvEEZPDE8MICTOtveHX2axchl+EptM+o4OGvbg=
15021503
k8s.io/code-generator v0.20.0/go.mod h1:UsqdF+VX4PU2g46NC2JRs4gc+IfrctnwHb76RNbWHJg=
1504+
k8s.io/component-base v0.0.0-20201202170850-7742f4bc8284/go.mod h1:g6NgUWq2J9mdXytMdP+mNUKEH3kQqHysQcJz3HJEh/U=
15031505
k8s.io/component-base v0.18.0/go.mod h1:u3BCg0z1uskkzrnAKFzulmYaEpZF7XC9Pf/uFyb1v2c=
15041506
k8s.io/component-base v0.18.2 h1:SJweNZAGcUvsypLGNPNGeJ9UgPZQ6+bW+gEHe8uyh/Y=
15051507
k8s.io/component-base v0.18.2/go.mod h1:kqLlMuhJNHQ9lz8Z7V5bxUUtjFZnrypArGl58gmDfUM=
@@ -1549,9 +1551,6 @@ rsc.io/letsencrypt v0.0.3 h1:H7xDfhkaFFSYEJlKeq38RwX2jYcnTeHuDQyT+mMNMwM=
15491551
rsc.io/letsencrypt v0.0.3/go.mod h1:buyQKZ6IXrRnB7TdkHP0RyEybLx18HHyOSoTyoOLqNY=
15501552
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
15511553
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
1552-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.7 h1:uuHDyjllyzRyCIvvn0OBjiRB0SgBZGqHNYAmjR7fO50=
1553-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.7/go.mod h1:PHgbrJT7lCHcxMU+mDHEm+nx46H4zuuHZkDP6icnhu0=
1554-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.9/go.mod h1:dzAXnQbTRyDlZPJX2SUPEqvnB+j7AJjtlox7PEwigU0=
15551554
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.14 h1:TihvEz9MPj2u0KWds6E2OBUXfwaL4qRJ33c7HGiJpqk=
15561555
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.14/go.mod h1:LEScyzhFmoF5pso/YSeBstl57mOzx9xlU9n85RGrDQg=
15571556
sigs.k8s.io/controller-runtime v0.6.0/go.mod h1:CpYf5pdNY/B352A1TFLAS2JVSlnGQ5O2cftPHndTroo=

0 commit comments

Comments
 (0)