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
Migrate to Go Modules and simplify Makefile #277
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.
One nit
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.
Check the comments, I improved my approach to download/build commands.
Hurray for go mod! Lets do that to CLO as well once we can merge again...
70a57a8
to
c125948
Compare
@@ -32,8 +32,6 @@ type KibanaStatus struct { | |||
Conditions map[string]ClusterConditions `json:"clusterCondition,omitempty"` | |||
} | |||
|
|||
type ClusterConditions []ClusterCondition |
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 are we removing this here but adding it in the elasticsearch_types?
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.
Type aliases should live close to their referenced/aliased types. IMHO it enhances readability.
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.
so this wasn't being used here nor in elasticsearch_types before? why not just drop it here and leave it as that?
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.
It was used in both types but ClusterCondition
lived in elasticsearch_types.go
while this alias in kibana_types.go
0d7e2ed
to
921f6f7
Compare
@@ -150,6 +150,8 @@ type ClusterCondition struct { | |||
Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` | |||
} | |||
|
|||
type ClusterConditions []ClusterCondition |
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.
revert? re: discussion on kibana_types.go comment
61b46a2
to
cf4e603
Compare
/retest |
c85a8fc
to
2779ff4
Compare
/hold |
/lgtm |
/hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jcantrill, periklis The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Motivation
This PR migrates dependency management from dep to go modules to enable forward versioned support for k8s >1.18 api, client-go, library-go. In addition the Makefile includes following enhancements:
GOFLAGS
to-mod=vendor
for vendoring all go module dependencies.operator-sdk
,golangci-lint
,gosec
andimagebuilder
GOBIN
folder.golangci-lint
golang-1.13
as builder base image.