feat: add namespace override
This commit is contained in:
@@ -23,6 +23,11 @@ on:
|
||||
required: false
|
||||
default: "{}"
|
||||
type: string
|
||||
namespace:
|
||||
description: "Override the default namespace (extracted from repository name)"
|
||||
required: false
|
||||
default: ""
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
detect-service-type:
|
||||
@@ -71,7 +76,7 @@ jobs:
|
||||
- name: Validate k8s manifests
|
||||
uses: azure/k8s-lint@e4234c50ea835112e72b145bdecd00a94bad42fd # v4.0.0
|
||||
with:
|
||||
namespace: ${{ steps.namespace.outputs.namespace }}
|
||||
namespace: ${{ inputs.namespace || steps.namespace.outputs.namespace }}
|
||||
lintType: dryrun
|
||||
manifests: "${{ inputs.k8s_dir }}"
|
||||
|
||||
@@ -98,6 +103,7 @@ jobs:
|
||||
uses: helmfile/helmfile-action@f6f7844b9e6d9f5ac8cf4cdae8ada1a42755c036 # v2.4.4
|
||||
with:
|
||||
helmfile-args: diff
|
||||
namespace: ${{ inputs.namespace || steps.namespace.outputs.namespace }}
|
||||
env: ${{ fromJSON(inputs.helmfile_env) }}
|
||||
|
||||
# Summary job that always runs to show what was validated
|
||||
|
||||
Reference in New Issue
Block a user