-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch to driver writing files
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com> ci: update pipeline to test feature Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com> ci: update gotool to 1.16.3 Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
- Loading branch information
Showing
25 changed files
with
520 additions
and
403 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
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,51 @@ | ||
parameters: | ||
- name: driverWriteSecrets | ||
type: object | ||
|
||
jobs: | ||
- ${{ each driverWriteSecret in parameters.driverWriteSecrets }}: | ||
- job: | ||
displayName: ${{ format('e2e_test_kind/driver-write-secrets={0}', driverWriteSecret) }} | ||
timeoutInMinutes: 10 | ||
cancelTimeoutInMinutes: 5 | ||
workspace: | ||
clean: all | ||
|
||
steps: | ||
- task: GoTool@0 | ||
inputs: | ||
version: 1.16 | ||
|
||
- script: | | ||
export REGISTRY="e2e" | ||
export IMAGE_VERSION=e2e-$(git rev-parse --short HEAD) | ||
echo "Image version: ${IMAGE_VERSION}" | ||
echo "##vso[task.setvariable variable=IMAGE_VERSION]${IMAGE_VERSION}" | ||
echo "##vso[task.setvariable variable=REGISTRY]${REGISTRY}" | ||
make e2e-bootstrap | ||
displayName: "Build image" | ||
env: | ||
CI_KIND_CLUSTER: true | ||
- script: | | ||
make e2e-test | ||
displayName: "Run e2e tests on kind cluster" | ||
env: | ||
AZURE_CLIENT_ID: $(AZURE_CLIENT_ID) | ||
AZURE_CLIENT_SECRET: $(AZURE_CLIENT_SECRET) | ||
KEY_NAME: $(KEY_NAME) | ||
KEY_VERSION: $(KEY_VERSION) | ||
KEYVAULT_NAME: $(KEYVAULT_NAME) | ||
SECRET_NAME: $(SECRET_NAME) | ||
TENANT_ID: $(TENANT_ID) | ||
CI_KIND_CLUSTER: true | ||
AZURE_ENVIRONMENT_FILEPATH: "/etc/kubernetes/custom_environment.json" | ||
${{ if eq(driverWriteSecret, 'true') }}: | ||
DRIVER_WRITE_SECRETS: true | ||
- script: | | ||
make e2e-kind-cleanup | ||
displayName: 'Delete kind cluster' | ||
condition: always() |
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
File renamed without changes.
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 @@ | ||
jobs: | ||
- job: unit_test | ||
timeoutInMinutes: 10 | ||
cancelTimeoutInMinutes: 5 | ||
workspace: | ||
clean: all | ||
steps: | ||
- task: GoTool@0 | ||
inputs: | ||
version: 1.16 | ||
- script: make lint | ||
displayName: Run lint | ||
- script: make build build-windows | ||
displayName: Build | ||
- script: make unit-test | ||
displayName: Run unit tests | ||
- script: bash <(curl -s https://codecov.io/bash) -C $(Build.SourceVersion) | ||
displayName: Upload coverage to codecov | ||
- script: make helm-lint | ||
displayName: Run helm lint | ||
- template: scan-images.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
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
Oops, something went wrong.