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

Upgrade golang to v1.20.3 and k8s deps to 1.26 release #2586

Merged
merged 3 commits into from Apr 19, 2023

Conversation

hjiawei
Copy link
Contributor

@hjiawei hjiawei commented Apr 17, 2023

Description

  • Update golang to v1.20.3 / go-build v0.84 and then make gen-files.
  • Update k8s libs and utils to v1.26 release.

For PR author

  • Tests for change.
  • If changing pkg/apis/, run make gen-files
  • If changing versions, run make gen-versions

For PR reviewers

A note for code reviewers - all pull requests must have the following:

  • Milestone set according to targeted release.
  • Appropriate labels:
    • kind/bug if this is a bugfix.
    • kind/enhancement if this is a a new feature.
    • enterprise if this PR applies to Calico Enterprise only.

@hjiawei hjiawei requested a review from a team as a code owner April 17, 2023 20:41
@marvin-tigera marvin-tigera added this to the v1.30.0 milestone Apr 17, 2023
@hjiawei hjiawei force-pushed the go-1.20.3 branch 2 times, most recently from 3551fa1 to 66f5325 Compare April 18, 2023 02:09
@hjiawei hjiawei changed the title Upgrade golang to v1.20.3 (go-build v0.84) Upgrade golang to v1.20.3 and k8s deps to 1.26 release Apr 18, 2023
@@ -230,7 +230,7 @@ $(BINDIR)/operator-$(ARCH): $(SRC_FILES)
mkdir -p $(BINDIR)
$(CONTAINERIZED) -e CGO_ENABLED=$(CGO_ENABLED) -e GOEXPERIMENT=$(GOEXPERIMENT) $(CALICO_BUILD) \
sh -c '$(GIT_CONFIG_SSH) \
go build -buildvcs=false -v -o $(BINDIR)/operator-$(ARCH) -tags "$(TAGS)" -ldflags "-X $(PACKAGE_NAME)/version.VERSION=$(GIT_VERSION) -w" ./main.go'
go build -buildvcs=false -v -o $(BINDIR)/operator-$(ARCH) -tags "$(TAGS)" -ldflags "-X $(PACKAGE_NAME)/version.VERSION=$(GIT_VERSION) -s -w" ./main.go'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We already have -w ldflags and may as well add the -s flag to reduce binary size / strip symbols.

Copy link
Member

@tmjd tmjd left a comment

Choose a reason for hiding this comment

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

LGTM, I added a comment about a trivial update, I don't need to review it again unless there are other changes made.

pkg/controller/utils/component_test.go Outdated Show resolved Hide resolved
@tmjd tmjd merged commit 51e1ad6 into tigera:master Apr 19, 2023
5 checks passed
@hjiawei hjiawei deleted the go-1.20.3 branch April 19, 2023 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants