-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'GoogleCloudPlatform:master' into add-poco-test
- Loading branch information
Showing
1,570 changed files
with
194,177 additions
and
29,328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
mockgcp/generated/** linguist-generated=true | ||
pkg/clients/generated/** linguist-generated=true | ||
**/*.generated.go linguist-generated=true | ||
|
||
**/go.sum linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
lint: | ||
name: lint | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 7 | ||
timeout-minutes: 12 | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
@@ -47,3 +47,4 @@ jobs: | |
uses: golangci/[email protected] | ||
with: | ||
version: v1.59.1 # should match the version in Makefile | ||
args: --timeout=10m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
# limitations under the License. | ||
|
||
run: | ||
timeout: 5m | ||
timeout: 10m | ||
issues: | ||
exclude-dirs: | ||
- third_party | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,15 @@ You need to set up your own DEV environment before contributing to this project. | |
|
||
We follow the typical contribution flow similar to most OSS projects on GitHub. | ||
|
||
### Configure Variables | ||
|
||
Export the `GITHUB_USERNAME` environment variable which will be used in subsequent | ||
steps. | ||
|
||
``` | ||
export GITHUB_USERNAME=YOUR_USERNAME | ||
``` | ||
|
||
### Fork and pull | ||
|
||
We follow the | ||
|
@@ -64,13 +73,13 @@ summary, you perform the follow steps to get your fork ready: | |
https://docs.github.com/en/get-started/quickstart/fork-a-repo#cloning-your-forked-repository | ||
|
||
We recommend you to create the local clone under the path | ||
`~/go/src/github.com/YOUR_USERNAME`. This will help to avoid a few known | ||
`~/go/src/github.com/$GITHUB_USERNAME`. This will help to avoid a few known | ||
build frictions related to generated code. | ||
|
||
```shell | ||
mkdir -p ~/go/src/github.com/YOUR_USERNAME | ||
cd ~/go/src/github.com/YOUR_USERNAME | ||
git clone https://github.com/YOUR_USERNAME/k8s-config-connector # If you use ssh key auth, this will be [email protected]:YOUR_USERNAME/k8s-config-connector.git | ||
mkdir -p ~/go/src/github.com/$GITHUB_USERNAME | ||
cd ~/go/src/github.com/$GITHUB_USERNAME | ||
git clone https://github.com/$GITHUB_USERNAME/k8s-config-connector # If you use ssh key auth, this will be [email protected]:$GITHUB_USERNAME/k8s-config-connector.git | ||
``` | ||
|
||
### Set up your environment | ||
|
@@ -96,7 +105,7 @@ repo to quickly set up a local dev environment. | |
1. Change to environment-setup directory. | ||
|
||
```shell | ||
cd ~/go/src/github.com/YOUR_USERNAME/k8s-config-connector/scripts/environment-setup | ||
cd ~/go/src/github.com/$GITHUB_USERNAME/k8s-config-connector/scripts/environment-setup | ||
``` | ||
|
||
1. Set up sudoless Docker. | ||
|
@@ -115,7 +124,7 @@ repo to quickly set up a local dev environment. | |
1. Install Golang. | ||
|
||
```shell | ||
cd ~/go/src/github.com/YOUR_USERNAME/k8s-config-connector/scripts/environment-setup | ||
cd ~/go/src/github.com/$GITHUB_USERNAME/k8s-config-connector/scripts/environment-setup | ||
./golang-setup.sh | ||
source ~/.profile | ||
``` | ||
|
@@ -153,7 +162,7 @@ repo to quickly set up a local dev environment. | |
validate creation of this resource in the next step. So we can do: | ||
```shell | ||
cd ~/go/src/github.com/YOUR_USERNAME/k8s-config-connector | ||
cd ~/go/src/github.com/$GITHUB_USERNAME/k8s-config-connector | ||
make manifests | ||
kubectl apply -f config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_artifactregistryrepositories.artifactregistry.cnrm.cloud.google.com.yaml | ||
``` | ||
|
@@ -172,6 +181,20 @@ repo to quickly set up a local dev environment. | |
make deploy-controller | ||
``` | ||
1. If you want to install config connector on a brand new GKE cluster, the following command will install all CRDs, locally build, push and deploy all workloads to a standard GKE cluster. | ||
```shell | ||
make deploy-kcc-standard | ||
make install | ||
``` | ||
For autopilot clusters, please use the following command. | ||
```shell | ||
make deploy-kcc-autopilot | ||
make install | ||
``` | ||
### Validate your environment | ||
The script `gcp-setup.sh` annotates your `default` namespace in the GKE cluster | ||
|
Oops, something went wrong.