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

Moved to new setup-envtest script #637

Merged
merged 4 commits into from Aug 25, 2021
Merged

Moved to new setup-envtest script #637

merged 4 commits into from Aug 25, 2021

Conversation

ellistarn
Copy link
Contributor

@ellistarn ellistarn commented Aug 24, 2021

Issue, if available:

Description of changes:
Upgrading to a newer version of the Kubernetes API Server broke something with Pod Eviction. I spent some cycles trying to get the test fixed (hence all the pdb related code), but wasn't able to sort it out. I think the cleanup changes I made to pdbs are good cleanups anyways, so I left them in.

Will fast follow with reenabling the test soon.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@netlify
Copy link

netlify bot commented Aug 24, 2021

✔️ Deploy Preview for karpenter-docs-prod canceled.

🔨 Explore the source changes: cf3e3e5

🔍 Inspect the deploy log: https://app.netlify.com/sites/karpenter-docs-prod/deploys/61266a61a518b10007188e32

sudo mkdir -p /usr/local/kubebuilder/bin/
sudo mv $TEMP_DIR/kubebuilder_2.3.1_${os}_${arch}/bin/* /usr/local/kubebuilder/bin/
echo 'Add kubebuilder to your path `export PATH=$PATH:/usr/local/kubebuilder/bin/`'
KUBEBUILDER_ASSETS="/usr/local/kubebuilder"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be /usr/local/bin/kubebuilder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's unfortunately how the mv command works. I need to clear the previous folder to rename the new folder into place. Otherwise the files get copied into the existing folder.

KUBEBUILDER_ASSETS="/usr/local/kubebuilder"
sudo rm -rf $KUBEBUILDER_ASSETS
sudo mkdir -p $KUBEBUILDER_ASSETS
sudo mv "$(setup-envtest use -p path 1.19.x)" $KUBEBUILDER_ASSETS/bin
Copy link
Contributor

Choose a reason for hiding this comment

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

If the following is a yes, this should change too

@@ -116,6 +116,8 @@ github.com/ashanbrown/makezero v0.0.0-20210520155254-b6261585ddde/go.mod h1:oG9D
github.com/aws/aws-sdk-go v1.23.20/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go v1.25.37/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go v1.36.30/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we're adding this in?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just go.sum dependency closure stuff

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah do you know which library depends on this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like zap 1.19

go mod graph | grep clock
go.uber.org/zap@v1.19.0 github.com/benbjohnson/clock@v1.1.0
github.com/spf13/viper@v1.7.0 github.com/jonboulle/clockwork@v0.1.0
github.com/spf13/viper@v1.4.0 github.com/jonboulle/clockwork@v0.1.0
go.etcd.io/etcd@v0.0.0-20191023171146-3cf2f69b5738 github.com/jonboulle/clockwork@v0.1.0
github.com/google/certificate-transparency-go@v1.1.1 github.com/jonboulle/clockwork@v0.2.0
github.com/spf13/viper@v1.7.1 github.com/jonboulle/clockwork@v0.1.0
go.etcd.io/etcd@v0.0.0-20200513171258-e048e166ab9c github.com/jonboulle/clockwork@v0.1.0

@ellistarn ellistarn merged commit 137587c into aws:main Aug 25, 2021
@ellistarn ellistarn deleted the kb branch August 25, 2021 16:14
gfcroft pushed a commit to gfcroft/karpenter-provider-aws that referenced this pull request Nov 25, 2023
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.

None yet

2 participants