Skip to content

Commit 569291c

Browse files
Merge pull request #8 from stfc/add-github-actions
add github lint action for missing charts
2 parents 4107e63 + e3c3e1f commit 569291c

File tree

6 files changed

+56
-10
lines changed

6 files changed

+56
-10
lines changed

.github/workflows/chatops_chart.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: lint chatops Chart
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
paths:
8+
- ".github/workflows/chatops_chart.yaml"
9+
- "charts/chatops/**"
10+
11+
jobs:
12+
helm-lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Helm
17+
uses: azure/setup-helm@v3
18+
- name: Lint Helm Chart
19+
# Note --strict=true != --strict with the former being stricter
20+
run: |
21+
cp charts/chatops/secret-values.yaml.template /tmp/secret-values.yaml
22+
helm dependency update charts/chatops/.
23+
helm lint charts/chatops --values charts/chatops/values.yaml --values /tmp/secret-values.yaml --strict=true

.github/workflows/publish_chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: azure/setup-helm@v3
2424

2525
- name: Run chart-releaser
26-
uses: helm/chart-releaser-action@v1.5.0
26+
uses: helm/chart-releaser-action@v1.6.0
2727
with:
2828
skip_existing: true
2929
env:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: lint stfc-cloud-openstack-cluster Chart
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
paths:
8+
- ".github/workflows/stfc_cloud_openstack_cluster_chart.yaml"
9+
- "charts/stfc-cloud-openstack-cluster/**"
10+
11+
jobs:
12+
helm-lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Helm
17+
uses: azure/setup-helm@v3
18+
- name: Lint Helm Chart
19+
# Note --strict=true != --strict with the former being stricter
20+
run: |
21+
cp charts/stfc-cloud-openstack-cluster/secret-values.yaml.template /tmp/secret-values.yaml
22+
helm dependency update charts/stfc-cloud-openstack-cluster/.
23+
helm lint charts/stfc-cloud-openstack-cluster --values charts/stfc-cloud-openstack-cluster/values.yaml --values /tmp/secret-values.yaml --values charts/stfc-cloud-openstack-cluster/flavors.yaml --values charts/stfc-cloud-openstack-cluster/user-values.yaml --strict=true

charts/chatops/secret-values.yaml.template

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# holds slack and github auth tokens
33
# holds mappings for devops team slack and github usernames
44
secrets:
5-
slackBotToken: <>
6-
slackAppToken: <>
7-
githubToken: <>
5+
slackBotToken: foo
6+
slackAppToken: bar
7+
githubToken: baz
88
users:
99
- realName: foo
10-
githubName: <>
11-
slackID: <>
10+
githubName: bar
11+
slackID: baz

charts/stfc-cloud-openstack-cluster/secret-values.yaml.template

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ openstack-cluster:
1515
openstack:
1616
auth:
1717
auth_url:
18-
application_credential_id:
19-
application_credential_secret:
18+
application_credential_id: "foo" # change this
19+
application_credential_secret: "bar" # change this
2020

2121
# project id needs to be explicitly added
22-
project_id:
22+
project_id: "baz" #change this
2323

24-
region_name:
24+
region_name: "region"
2525
interface: "public"
2626
identity_api_version: 3
2727
auth_type: "v3applicationcredential"

charts/stfc-cloud-openstack-cluster/templates/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)