Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kubeconform #771

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion .github/workflows/helm_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,48 @@ on: pull_request
permissions: read-all

jobs:
lint-test:
yamllint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Install yamllint
run: |
python -m pip install --upgrade pip
pip install yamllint

- name: Run yamllint
run: |
yamllint -d "{extends: default, rules: {line-length: {level: warning}, braces: {level: warning}, key-duplicates: {level: error}, trailing-spaces: {level: error}}}" infra/helm/meshdb/

kubeconform:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@20d2b4f98d41febe2bbca46408499dbb535b6258 # v3
with:
version: v3.14.0

- name: Install Kubeconform Helm plguin
run: "helm plugin install https://github.com/jtyr/kubeconform-helm"

- name: Run Kubeconform Helm
run: "helm kubeconform --namespace meshdb infra/helm/meshdb"

chart-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion infra/helm/meshdb/templates/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
valueFrom:
secretKeyRef:
name: meshdb-secrets
key: postgres-password
key: POSTGRES_PASSWORD
- name: PGDATA
value: "/var/lib/postgresql/data/meshdb_data"
volumeMounts:
Expand Down
Loading