Skip to content

Commit

Permalink
update kubelinting for mtp syntax (#430)
Browse files Browse the repository at this point in the history
* kubelint

* Update resource.yaml

* Update resource.yaml

* Update resource.yaml

* add markdownlint

* Update package-lock.json

* move kubelint download

* test

* test

* test

* Update .travis.yml
  • Loading branch information
kdai7 authored Feb 19, 2024
1 parent d163a31 commit 11216f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ script:
- docker images
- ./build/process-template.sh kubernetes/razeedeploy-delta/resource.yaml >/tmp/resource.yaml
- ./build/process-template.sh kubernetes/job/resource.yaml >/tmp/job.yaml
- sed 's/{{ ARGS_ARRAY }}/["--rr", "--wk", "-a"]/' /tmp/job.yaml > /tmp/jobwargs.yaml # doing this because the kube linter doesn't know about mustache syntax and complains about {{ ARGS_ARRAY }}
- kubelint /tmp/resource.yaml
- kubelint /tmp/job.yaml
- kubelint /tmp/jobwargs.yaml
# Perform UA scan on non-PR builds
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar; java -jar wss-unified-agent.jar -d . || echo "UA Scan Error occurred"; fi

Expand Down
2 changes: 1 addition & 1 deletion kubernetes/job/resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
- name: USER_AGENT_VERSION
value: "<%TRAVIS_TAG%>"
command: ["./bin/razeedeploy-delta", "{{ COMMAND }}", "--namespace={{{ NAMESPACE }}}"]
args: ["{{ ARGS_ARRAY }}"]
args: {{ ARGS_ARRAY }}
# see README.md for args options. https://github.com/razee-io/razeedeploy-delta/blob/master/README.md
resources:
limits:
Expand Down

0 comments on commit 11216f6

Please sign in to comment.