-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaction.yml
More file actions
48 lines (48 loc) · 1.8 KB
/
Copy pathaction.yml
File metadata and controls
48 lines (48 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: "Helm Kubeconform (with schema support)"
description: "Generate manifests with `helm template` and run `kubeconform` on the results"
author: "Shiv Jha-Mathur"
inputs:
strict:
description: "Whether to run Kubeconform in strict mode"
default: "true"
required: false
additionalSchemaPaths:
description: "Newline-separated list of paths to look for schemas under, including filename template"
default: ""
required: false
chartsDirectory:
description: "Directory to search for chart directories under"
default: "charts"
required: true
regexSkipDir:
description: "Skip search in directories matching this regex"
default: "\.git"
required: false
kubernetesVersion:
description: "Version of Kubernetes to validate manifests against"
default: "master"
required: false
logLevel:
description: "Only show log messages at or above level (defined by zerolog)"
default: "debug"
required: false
logJson:
description: "Produce JSON log messages"
default: "false"
required: false
runs:
using: "docker"
image: "Dockerfile"
env:
# ${{ github }} and (obviously) ${{ env }} aren’t available here, so it isn’t possible to
# specify a path relative to ${{ github.workspace }} or $GITHUB_WORKSPACE, but
# `actions/checkout` will just use the current directory, which the runner will point the Docker
# container at as well, and the Go code will resolve paths against that base directory
KUBECONFORM_STRICT: "${{ inputs.strict }}"
ADDITIONAL_SCHEMA_PATHS: "${{ inputs.additionalSchemaPaths }}"
CHARTS_DIRECTORY: "${{ inputs.chartsDirectory }}"
HELM_UPDATE_DEPENDENCIES: "true"
KUBERNETES_VERSION: "${{ inputs.kubernetesVersion }}"
LOG_LEVEL: "${{ inputs.logLevel }}"
LOG_JSON: "${{ inputs.logJson }}"
args: []