Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add instructions to upgrade admission controller #9372

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

BlaineEXE
Copy link
Member

In 1.8, the admission controller has merged with the operator and the
operator needs an emptyDir and a volume mount to store the webhook
certificates.

Co-authored-by: Blaine Gardner blaine.gardner@redhat.com
Co-authored-by: Sébastien Han seb@redhat.com

Signed-off-by: Blaine Gardner blaine.gardner@redhat.com

Description of your changes:

Which issue is resolved by this Pull Request:
Resolves #

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Skip Tests for Docs: Add the flag for skipping the build if this is only a documentation change. See here for the flag.
  • Skip Unrelated Tests: Add a flag to run tests for a specific storage provider. See test options.
  • Reviewed the developer guide on Submitting a Pull Request
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.
  • Pending release notes updated with breaking and/or notable changes, if necessary.
  • Upgrade from previous release is tested and upgrade user guide is updated, if necessary.
  • Code generation (make codegen) has been run to update object specifications, if necessary.

Copy link
Member

@travisn travisn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The co-authored-by should only be necessary for Seb since you are author on the commit.

kubectl apply -f deploy/examples/monitoring/rbac.yaml
```

* [Admission controller](admission-controller-usage.md): The admission controller has been
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be part of step 3 where the operator is updated? This is inside step 1 where the RBAC and CRDs are updated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to do it here. It is an optional resource, and so there is already a section for it. A user could get mixed up an accidentally skip step 2, but that step is also optional of a sort, so I'm not terribly worried about it breaking things.

@BlaineEXE BlaineEXE force-pushed the upgrade-doc-admission-controller branch 2 times, most recently from 4cf6d3f to fb1c0a0 Compare December 9, 2021 19:15
Copy link
Member

@travisn travisn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few minor suggestions

there are additional updates. The admission controller has been integrated inside the operator
instead of a separate deployment. This means that the webhook server certificates are now stored in
the operator, and the operator manifest must be updated to use the one provided in
`deploy/examples/operator.yaml`. If you are using Helm to manage the deployment there is nothing to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`deploy/examples/operator.yaml`. If you are using Helm to manage the deployment there is nothing to
`deploy/examples/operator.yaml`. If you are using Helm to manage the deployment this handled automatically.

@@ -340,6 +340,24 @@ When the operator is updated, it will proceed to update all of the Ceph daemons.
kubectl -n $ROOK_OPERATOR_NAMESPACE set image deploy/rook-ceph-operator rook-ceph-operator=rook/ceph:v1.8.0
```

#### Admission controller
At the same time, if you use the optional [Admission controller](admission-controller-usage.md),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
At the same time, if you use the optional [Admission controller](admission-controller-usage.md),
If you enabled the optional [Admission controller](admission-controller-usage.md),

do.

When updating the operator deployment with the latest example from Rook, there is some risk of
overwriting changes you have made to the deployment or to the `rook-ceph-operator-config` ConfigMap.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
overwriting changes you have made to the deployment or to the `rook-ceph-operator-config` ConfigMap.
overwriting changes if you have customized the operator deployment or the `rook-ceph-operator-config` ConfigMap.

In 1.8, the admission controller has merged with the operator and the
operator needs an emptyDir and a volume mount to store the webhook
certificates.

Co-authored-by: Blaine Gardner <blaine.gardner@redhat.com>
Co-authored-by: Sébastien Han <seb@redhat.com>

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
@BlaineEXE BlaineEXE force-pushed the upgrade-doc-admission-controller branch from fb1c0a0 to 6c09de6 Compare December 9, 2021 19:39
@BlaineEXE BlaineEXE merged commit f36f080 into rook:master Dec 9, 2021
@BlaineEXE BlaineEXE deleted the upgrade-doc-admission-controller branch December 9, 2021 19:41
BlaineEXE added a commit that referenced this pull request Dec 9, 2021
docs: add instructions to upgrade admission controller (backport #9372)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants