Version v1.16 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. For up-to-date documentation, see the latest version.


Header text for the migration section

Add into the config/manager/manager.yaml the following limits which are now scaffolded by default:

 # TODO(user): Configure the resources accordingly based on the project requirements. # More info: resources:
    cpu: 500m
    memory: 768Mi
    cpu: 10m
    memory: 256Mi```
**IMPORTANT:** Having resource limits is a best-practice and these values are reasonable defaults, but Operator authors should optimize these values based on their project's requirements.

_See [#5274]( for more details._

## Bump operator_sdk.util in requirements.yml

Update `requirements.yml` to point to 0.3.1 of operator_sdk.util instead of 0.2.0

_See [#5462]( for more details._

## Add annotation to specify the default container

Add the following annotation into the file `config/manager/manager.yaml`
```yaml ... template:
    annotations: manager
... ```

_See [#5330]( for more details._

## Add PHONY targets to Makefile

Add PHONY target to all Makefile targets. For example, refer to the `Makefile` in `operator-sdk/testdata` directory of [OperatorSDK]( tagged by the release containing this change.

_See [#5330]( for more details._

## For Golang-based projects, add the flag `ignore-not-found` into the Makefile for the `uninstall` and `undeploy` targets

Update the Makefile with the following changes. 
1) Above `##@ Deployment` add the following:
``` ... ifndef ignore-not-found
  ignore-not-found = false
endif ... ```
2) Replace: ```sh kubectl delete -f - ``` With: ```sh kubectl delete --ignore-not-found=$(ignore-not-found) -f - ``` 

**NOTE**  You can also compare your `Makefile` with the one tagged by this release, in `operator-sdk/testdata` of the [OperatorSDK]( project.

_See [#5330]( for more details._
Last modified January 12, 2022: Release v1.16.0 (#5490) (56004414)