Skip to content

Commit

Permalink
release v1.2.0 (operator-framework#4201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Stroczynski authored Nov 9, 2020
1 parent 1cba71c commit 215fc50
Show file tree
Hide file tree
Showing 18 changed files with 57 additions and 181 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## v1.2.0

### Additions

- Enabled definition of custom categories encoded as [JSON file(s)](https://olm.operatorframework.io/docs/tasks/validate-package/#validation) for the `operatorhub` validator. ([#4109](https://github.com/operator-framework/operator-sdk/pull/4109))

### Changes

- Improved `ansible-operator` and `helm-operator` help text. ([#4187](https://github.com/operator-framework/operator-sdk/pull/4187))
- When generating bundles and package manifests, add all resources supported by OLM. ([#4137](https://github.com/operator-framework/operator-sdk/pull/4137))
- `olm` and `run` subcommands will print aggregated resource errors when either OLM or an operator fail to install, respectively. ([#3787](https://github.com/operator-framework/operator-sdk/pull/3787))
- Upgraded `sigs.k8s.io/controller-runtime` from `v0.6.2` to [`v0.6.3`](https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.6.3). ([#4062](https://github.com/operator-framework/operator-sdk/pull/4062))

### Bug Fixes

- Set a generated CSV's `.spec.webhookdefinitions[].{targetPort,containerPort}` values from webhook `Service` ports. ([#4178](https://github.com/operator-framework/operator-sdk/pull/4178))
- Excluded `github.com/spf13/[email protected]` to fix CVE-2018-1098. ([#4199](https://github.com/operator-framework/operator-sdk/pull/4199))
- Added the `kustomize` make dependency to the `bundle` target scaffolded for Golang projects to install `kustomize` before running. ([#4090](https://github.com/operator-framework/operator-sdk/pull/4090))
- Fixed an issue in `operator-sdk cleanup` that caused `CatalogSource` and `OperatorGroup` objects not to be cleaned up if a previous `operator-sdk run` command failed. ([#4089](https://github.com/operator-framework/operator-sdk/pull/4089))
- Fixed an issue during CSV generation that caused incorrect paths to be used in `specDescriptors` and `statusDescriptors`. ([#4166](https://github.com/operator-framework/operator-sdk/pull/4166))
- In Helm projects, fixed operator RBAC permissions to support the OwnerReferencesPermissionEnforcement admission plugin by adding a `<resource>/finalizers` rule in the operator's role. ([#4105](https://github.com/operator-framework/operator-sdk/pull/4105))
- Removed redundant platform information from `operator-sdk version` output. ([#4083](https://github.com/operator-framework/operator-sdk/pull/4083))
- Format version string passed to `olm` subcommands so releases download correctly. ([#4181](https://github.com/operator-framework/operator-sdk/pull/4181))
- In Go, Ansible, and Helm operators, updated the `metrics-reader` ClusterRole to use `rbac.authorization.k8s.io/v1` to be consistent with all other scaffolded RBAC resources. ([#4136](https://github.com/operator-framework/operator-sdk/pull/4136))
- Modified `olm-status-descriptors-test` to only validate if the status-descriptors are present in CRD. ([#4009](https://github.com/operator-framework/operator-sdk/pull/4009))
- Webhook container port specified in CSV defaults to `443` if not specified by the user. ([#4109](https://github.com/operator-framework/operator-sdk/pull/4109))
- For Golang based operators with multigroup support, fixed `envtest.Environment.CRDDirectoryPaths` in scaffolded `controllers/<group>/suite_test.go` files. ([#4062](https://github.com/operator-framework/operator-sdk/pull/4062))

## v1.1.0

### Additions
Expand Down
4 changes: 0 additions & 4 deletions changelog/fragments/CVE-2018-1098.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/fragments/ansible-helm-help-text.yaml

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions changelog/fragments/bundle-pm-supported-kinds.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions changelog/fragments/fix-cleanup.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/fragments/fix-csv-generate-path-segments.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions changelog/fragments/fix-helm-finalizers-permissions.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fragments/go-version-bug.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fragments/olm-version-v.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions changelog/fragments/plugins-use-rbac-v1.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/fragments/return-olm-install-error.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions changelog/fragments/scorecard-status-descriptor-test.yaml

This file was deleted.

54 changes: 0 additions & 54 deletions changelog/fragments/upgrade-kb.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions changelog/fragments/upgrade-operator-framework-api.yaml

This file was deleted.

8 changes: 6 additions & 2 deletions website/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ algolia_docsearch = false
version = "Latest Release"
url = "https://sdk.operatorframework.io"

[[params.versions]]
version = "v1.2"
url = "https://v1-2-x.sdk.operatorframework.io"

[[params.versions]]
version = "v1.1"
url = "https://v1-1-x.sdk.operatorframework.io"
Expand All @@ -119,7 +123,7 @@ algolia_docsearch = false
[params.ui]
# Enable to show the side bar menu in its compact state.
sidebar_menu_compact = true
# Set to true to disable breadcrumb navigation.
# Set to true to disable breadcrumb navigation.
breadcrumb_disable = false
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
sidebar_search_disable = true
Expand Down Expand Up @@ -157,7 +161,7 @@ no = 'Sorry to hear that. Please <a href="https://github.com/operator-framework/
name = "github"
url = "https://github.com/operator-framework/operator-sdk"
icon = "fab fa-github"

#[[params.links.social]]
# name = "slack"
# url = "https://example.org/mail"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $ brew install operator-sdk

```sh
# Set the release version variable
$ RELEASE_VERSION=v1.1.0
$ RELEASE_VERSION=v1.2.0
# Linux
$ curl -LO https://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu
$ curl -LO https://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/ansible-operator-${RELEASE_VERSION}-x86_64-linux-gnu
Expand Down
22 changes: 22 additions & 0 deletions website/content/en/docs/upgrading-sdk-version/v1.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: v1.2.0
weight: 998998000
---

## (Golang based operators) Update Makefile's bundle target

In the `Makefile` file, replace `bundle: manifests` with `bundle: manifests kustomize` to call the kustomize target when the `bundle` target is used.

_See [#4090](https://github.com/operator-framework/operator-sdk/pull/4090) for more details._

## (Golang based operators) Upgrade sigs.k8s.io/controller-runtime version to v0.6.3

In the `go.mod` file replace `sigs.k8s.io/controller-runtime v0.6.2` with `sigs.k8s.io/controller-runtime v0.6.3` and then run `go mod tidy`.

_See [#4062](https://github.com/operator-framework/operator-sdk/pull/4062) for more details._

## (Golang based operators with multigroup support) Fix `CRDDirectoryPath` in `controllers/<group>/suite_test.go`

If your project is multi-group, then replace `CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")},` with `CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")},` in `suite_test.go` files found in `controllers/<group>/` directories. Otherwise, the tests will fail since this EnvTest will not be looking for the CRD's in the correct location. For more info, see [kubebuilder#1665](https://github.com/kubernetes-sigs/kubebuilder/issues/1665).

_See [#4062](https://github.com/operator-framework/operator-sdk/pull/4062) for more details._

0 comments on commit 215fc50

Please sign in to comment.