-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This updates the E2E test code so that it actually works against a local kind cluster. It also adds a new test case that checks the controller functionality for the storage bucket resource type.
- Loading branch information
Showing
11 changed files
with
514 additions
and
151 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: does-not-matter | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
env: | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: /config/gcp/key.json | ||
volumeMounts: | ||
- name: gcp-adc | ||
mountPath: /config/gcp | ||
readOnly: true | ||
volumes: | ||
- name: gcp-adc | ||
secret: | ||
secretName: gcp-adc |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
e() { | ||
echo "ERROR: ${BASH_COMMAND}" >&2 | ||
} | ||
|
||
trap e ERR | ||
|
||
ADC_PATH="${GOOGLE_APPLICATION_CREDENTIALS:-$HOME/.config/gcloud/application_default_credentials.json}" | ||
kubectl create secret generic gcp-adc --from-file "key.json=$ADC_PATH" --dry-run=client -o yaml > /dev/stdout |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: kustomize.deliveryhero.io/v1alpha1 | ||
kind: GCPADCGenerator | ||
metadata: | ||
name: gcp-adc-generator | ||
annotations: | ||
config.kubernetes.io/function: | | ||
exec: | ||
path: ./gcp-adc-generator.sh |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace: gcp-config-connector-tagging-operator-system | ||
|
||
resources: | ||
- ../default | ||
|
||
patches: | ||
- path: adc-mount-patch.yaml | ||
target: | ||
kind: Deployment | ||
|
||
generators: | ||
- gcp-adc-generator.yaml | ||
|
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
Oops, something went wrong.