-
Notifications
You must be signed in to change notification settings - Fork 56
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
Update csiaddons to v0.5.0 & point volrep to csiaddons #534
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR is having formating changes and other go mod updates also. please try to keep the change minimal
controllers/drcluster_controller.go
Outdated
@@ -313,17 +313,17 @@ func (u *drclusterInstance) finalizerRemove() error { | |||
} | |||
|
|||
// TODO: | |||
// 1) For now by default fenceStatus is ClusterFenceStateUnfenced. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not related to this PR please revert.
e00aef2
to
af30f7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM expected few go.mod changes
k8s.io/api v0.25.0 | ||
k8s.io/apimachinery v0.25.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a few updates to use Kubernetes 0.25, not sure it can cause any problem, let @ShyamsundarR confirm on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is replaced below,
This automatically done when csi-addons was updated.
go.mod
Outdated
k8s.io/apimachinery => k8s.io/apimachinery v0.23.6 | ||
k8s.io/client-go => k8s.io/client-go v0.23.6 | ||
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20220124234850-424119656bbf | ||
sigs.k8s.io/controller-runtime => sigs.k8s.io/controller-runtime v0.11.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than controller-runtime the other replace directives are to ensure ramen sticks to existing versions of these dependencies? Or, was this required for other reasons?
I typically do not want additional replace clauses, unless required. The controller-runtime is fine, so that we can catch up to the latest and remove the replace clause as time permits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build and golangci is failing,
after normal
go get and go mod tidy
weirdly it is asking for login to github.ibm.com in my vscode, not sure why.
3092913
to
9378e60
Compare
9378e60
to
27f0a81
Compare
sigs.k8s.io/yaml v1.3.0 // indirect | ||
) | ||
|
||
replace k8s.io/client-go => k8s.io/client-go v0.23.6 | ||
replace k8s.io/client-go => k8s.io/client-go v0.25.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for clearing this section up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for clearing this section up.
It was a challenge figuring out what went wrong with the builds.
golangci linter needed update too in .github/workflow,
can you please trigger workflow again ?
27f0a81
to
a79738e
Compare
This commit updates csiaddons to v0.5.0 and other deps. This also points volrep to kubernetes-csi-addons repo now. Signed-off-by: Rakshith R <[email protected]>
a79738e
to
440716f
Compare
https://github.com/RamenDR/ramen/runs/8248656188?check_suite_focus=true
|
Signed-off-by: Rakshith R <[email protected]>
Updated kustomize and handled the errors it threw |
@Madhu-1 @ShyamsundarR Please take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes LGTM, We need to update the build team to use go 1.18 to build ramen in downstream.
@@ -77,8 +77,8 @@ spec: | |||
description: "Condition contains details for one aspect of the current | |||
state of this API Resource. --- This struct is intended for direct | |||
use as an array at the field path .status.conditions. For example, | |||
type FooStatus struct{ // Represents the observations of a foo's | |||
current state. // Known .status.conditions.type are: \"Available\", | |||
\n type FooStatus struct{ // Represents the observations of a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why were these new lines required? Or were these auto generated by make manifests?
- ../crd | ||
- ../rbac | ||
- ../manager | ||
images: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this autogenerated?
@@ -58,3 +58,26 @@ linters: | |||
- goheader # TODO: Introduce back post fixing linter errors | |||
- gci | |||
- interfacer # interfacer linter is archived and deprecated (https://github.com/mvdan/interfacer) | |||
# TODO: fix folloing linter errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these new linters as compared to prior version v1.37.1
-> v1.49.0
of golang? If existing linters are being disabled, we would like to track and add them back, hence checking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo folloing to following
Merging this as is, the linter changes we will look at and rectify if required. |
This commit updates csiaddons to v0.5.0 and other deps. This also points volrep to kubernetes-csi-addons repo now.
Signed-off-by: Rakshith R [email protected]