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

Update Golang to 1.18 and k8s to 0.24.2 #329

Merged
merged 11 commits into from
Dec 5, 2022

Conversation

ranakan19
Copy link
Contributor

@ranakan19 ranakan19 commented Nov 24, 2022

Description

This PR has changes for the following:

  1. Upgrade golang to 1.18
  2. Upgrade k8s from 0.24 to 0.24.2
  3. Upgrade operator-sdk to v1.23

Checks

  1. Did you run make generate target? yes

  2. Did make generate change anything in other projects (host-operator, member-operator)? yes

  3. In case of new CRD, did you the following? N?A

  4. In case other projects are changed, please provides PR links.

@@ -1,3 +1,4 @@
//go:build tools
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added as result of make lint

@@ -21,7 +21,7 @@ define go-get-tool
cd $${TMP_DIR} ;\
go mod init tmp ;\
echo "Downloading ${2}" ;\
GOBIN=$(PROJECT_DIR)/bin go get ${2}@${3} ;\
GOBIN=$(PROJECT_DIR)/bin go install ${2}@${3} ;\
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make target 'controller-gen' wasn't creating the new version controller-gen when the old one existed. Because with golang 1.17 installing executables with go get is deprecated, changing this script to go install.
For this script to work as expected, local golang should be updated to 1.18 as well.

@@ -78,6 +78,7 @@ type NSTemplateSetSpaceRole struct {
TemplateRef string `json:"templateRef"`

// Usernames the usernames to which the template applies
// +listType=atomic
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added to avoid the following in make generate:
API rule violation: list_type_missing,github.com/codeready-toolchain/api/api/v1alpha1,NSTemplateSetSpaceRole,Usernames

@ranakan19
Copy link
Contributor Author

/retest

@xcoulon xcoulon merged commit 245f157 into codeready-toolchain:master Dec 5, 2022
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.

4 participants