feat: add extraArgs to deployment's args field #128
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
name: Lint and Test Prefect Agent Chart | |
"on": | |
pull_request: | |
paths: | |
- .github/workflows/agent-lint-and-test.yaml | |
- .github/linters/agent-ct.yaml | |
- charts/prefect-agent/** | |
jobs: | |
lint_test: | |
name: "lint-test (${{ matrix.kubernetes }})" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
kubernetes: | |
- "1.25.8" | |
- "1.26.3" | |
- "1.27.0" | |
fail-fast: false | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Helm | |
uses: azure/[email protected] | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Run chart-testing (lint) | |
run: ct lint --config .github/linters/agent-ct.yaml | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
with: | |
node_image: "kindest/node:v${{ matrix.kubernetes }}" | |
- name: Create API Secret for Agent Chart | |
run: | | |
kubectl create ns prefect | |
kubectl create secret generic prefect-api-key --from-literal=key=${{ secrets.PREFECT_CLOUD_API_KEY }} -n prefect | |
- name: Run chart-testing (install) | |
run: ct install --config .github/linters/agent-ct.yaml --helm-extra-set-args "--set=agent.config.workQueueName=agent --set=agent.cloudApiConfig.accountId=${{ secrets.PREFECT_CLOUD_ACCOUNT_ID }} --set=agent.cloudApiConfig.workspaceId=${{ secrets.PREFECT_CLOUD_WORKSPACE_ID }}" |