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

changes for controller runtime upgrade #72

Merged
merged 9 commits into from
Sep 14, 2020
Merged

Conversation

anishakj
Copy link
Contributor

@anishakj anishakj commented Sep 4, 2020

Signed-off-by: anisha.kj anisha.kj@dell.com

Change log description

Update controller run time to 0.5.2 and operator-sdk to v0.17.0

Purpose of the change

Fixes #69

What the code does

With controller run time upgrade, webhook validation mechanism changes. We have to create webhook svc, Also for validation a certificate needs to be installed.

How to verify it

  1. Installing bookkeeper operator and bookkeeper cluster is verified by manual installation and helm charts.
  2. Upgrading bookkeeper operator and bookkeeper cluster is verified by manual installation and helm charts.

Signed-off-by: anisha.kj <anisha.kj@dell.com>
@codecov-commenter
Copy link

codecov-commenter commented Sep 4, 2020

Codecov Report

Merging #72 into master will decrease coverage by 0.45%.
The diff coverage is 91.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
- Coverage   86.77%   86.31%   -0.46%     
==========================================
  Files           9        9              
  Lines        1474     1542      +68     
==========================================
+ Hits         1279     1331      +52     
- Misses        138      153      +15     
- Partials       57       58       +1     
Impacted Files Coverage Δ
pkg/util/bookkeepercluster.go 96.29% <ø> (-0.48%) ⬇️
pkg/util/k8sutil.go 100.00% <ø> (+5.93%) ⬆️
.../bookkeepercluster/bookkeepercluster_controller.go 59.58% <87.50%> (-3.34%) ⬇️
...pis/bookkeeper/v1alpha1/bookkeepercluster_types.go 94.60% <91.32%> (-5.40%) ⬇️
pkg/controller/bookkeepercluster/bookie.go 100.00% <100.00%> (ø)
pkg/controller/bookkeepercluster/upgrade.go 74.12% <100.00%> (ø)
pkg/util/zookeeper_util.go 23.52% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 659f239...2ba2232. Read the comment docs.

Signed-off-by: anisha.kj <anisha.kj@dell.com>
Signed-off-by: anisha.kj <anisha.kj@dell.com>
@anishakj anishakj marked this pull request as ready for review September 10, 2020 11:21
@anishakj anishakj changed the title Initial changes for controller runtime upgrade changes for controller runtime upgrade Sep 10, 2020
Signed-off-by: anisha.kj <anisha.kj@dell.com>
Signed-off-by: anisha.kj <anisha.kj@dell.com>
Signed-off-by: anisha.kj <anisha.kj@dell.com>
Signed-off-by: anisha.kj <anisha.kj@dell.com>
Copy link
Contributor

@Prabhaker24 Prabhaker24 left a comment

Choose a reason for hiding this comment

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

Just add the "how to verify" section in the PR description other than that this PR LGTM.

charts/bookkeeper-operator/README.md Outdated Show resolved Hide resolved
- name: webhook-cert
secret:
{{- if .Values.webhookCert.generate }}
secretName: {{ template "bookkeeper-operator.fullname" . }}-cert-tls
Copy link
Contributor

Choose a reason for hiding this comment

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

Name of the secret should be {{ template "bookkeeper-operator.fullname" . }}-cert-tls-bk

tools/operatorUpgrade.sh Outdated Show resolved Hide resolved
tools/manifest_files/patch.yaml Outdated Show resolved Hide resolved
doc/operator-upgrade.md Outdated Show resolved Hide resolved
Signed-off-by: anisha.kj <anisha.kj@dell.com>
Signed-off-by: anisha.kj <anisha.kj@dell.com>
Copy link
Contributor

@SrishT SrishT left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade controller-runtime and operator-sdk
4 participants