-
Notifications
You must be signed in to change notification settings - Fork 70
Automate Controller Setup #692
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
Conversation
mikestvz
left a comment
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.
A few comments about versioning for the different packages
Makefile
Outdated
|
|
||
| # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. | ||
| ENVTEST_K8S_VERSION = 1.22 | ||
| ENVTEST_K8S_VERSION = 1.32 |
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.
Have we fully tested with v1.32?
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.
Our current guidance is confusing since we ask users to actually install kubebuilder in different areas that may include use of this old version or the latest. I will run the e2e tests again to confirm they are passing on 1.32 to double-check.
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.
I see the E2E tests have been failing for some time here. I'll need to root cause these to be certain first.
docs/contributing/developer.md
Outdated
| The quickest way to get started is by running `bash ./scripts/setup.sh`, or `make setup` if you already have `make` installed. This script guides you through credential, tool, EKS cluster, and CRD setup. | ||
|
|
||
| ## Prerequisites | ||
| ## Manual Setup |
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 an actual Manual Setup ?
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.
Now is it yes, since this portion is automated with make setup.
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.
Do we need to delete it completely? Could there be others still using 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.
I think it is cleaner to delete since this is not working in its current state, on a fresh setup.
scripts/setup.sh
Outdated
|
|
||
| if ! command -v golangci-lint &> /dev/null; then | ||
| echo "Installing golangci-lint" | ||
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.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.
Will this work if i have another golang version installed?
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.
We have upgraded our golang version since we selected v1.62.2 without issue. On future releases we will continue to confirm. make presubmit will fail in these cases.
scripts/setup.sh
Outdated
| kubectl apply -f https://raw.githubusercontent.com/aws/aws-application-networking-k8s/main/files/controller-installation/deploy-namesystem.yaml | ||
|
|
||
| echo "Setting up the Pod Identities Agent" | ||
| aws eks create-addon --cluster-name $CLUSTER_NAME --addon-name eks-pod-identity-agent --addon-version v1.0.0-eksbuild.1 --no-cli-pager |
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.
Can we check the version of this addon? maybe there is a most recent one
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 actually still the recommended version from here.
scripts/setup.sh
Outdated
| fi | ||
| fi | ||
|
|
||
| read -p "Do you want to install the Gateway API CRDs? (Y/N): " install_crds |
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.
Any particular reason to have the option to override the version? I think we only support v1.2 from last release.
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.
I added this option since some users may need to upgrade to v.1.1.0 first as part of our migration steps to v1.2.0.
Pull request was closed
What type of PR is this?
Feature & Documentation
Which issue does this PR fix:
N/A
What does this PR do / Why do we need it:
This reduces developer onboarding time and simplifies the setup process. It also includes upgrades to our tooling dependencies.
If an issue # is not available please add repro steps and logs from aws-gateway-controller showing the issue:
N/A
Testing done on this change:
make setupwas ran successfully to setup a new cluster withmake presubmitpassing.Automation added to e2e:
N/A
Will this PR introduce any new dependencies?:
No
Will this break upgrades or downgrades. Has updating a running cluster been tested?:
No
Does this PR introduce any user-facing change?:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.