Skip to content

Commit

Permalink
feat: add kubernetes linter
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Nov 19, 2023
1 parent 04ce222 commit e66d8a1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/kubernetes-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Kubernetes Lint

on:
push:
paths:
- argocd/**
- .github/workflows/kube-lint.yml
pull_request:

jobs:
kubernetes-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Scan repo with kube-linter
uses: stackrox/kube-linter-action@v1.0.4
with:
directory: argocd
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This is my Homelab v3 infrastructure.
![Packer Lint](https://github.com/M0NsTeRRR/homelabv3-infra/workflows/Packer%20Lint/badge.svg)
![Terraform Lint](https://github.com/M0NsTeRRR/homelabv3-infra/workflows/Terraform%20Lint/badge.svg)
![Octodns](https://github.com/M0NsTeRRR/homelabv3-infra/workflows/Octodns/badge.svg)
![Kubernetes Lint](https://github.com/M0NsTeRRR/homelabv3-infra/workflows/Kubernetes%20Lint/badge.svg)

# Requirements

Expand Down
4 changes: 4 additions & 0 deletions argocd/keycloak/manifests/03_keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ metadata:
app.kubernetes.io/instance: keycloak
annotations:
reloader.stakater.com/auto: "true"
ignore-check.kube-linter.io/no-read-only-root-fs: "https://github.com/keycloak/keycloak/issues/11286"
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -108,6 +109,9 @@ spec:
timeoutSeconds: 5
failureThreshold: 6
successThreshold: 1
securityContext:
runAsNonRoot: True
readOnlyRootFilesystem: False
resources:
limits:
memory: 2Gi
Expand Down

0 comments on commit e66d8a1

Please sign in to comment.