Skip to content

Commit

Permalink
Auto Generate helm-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcollom committed Nov 17, 2023
1 parent 9149ad7 commit 157a7d8
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 9 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,28 @@ jobs:

- run: helm lint deploy/charts/version-checker

docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
values:
- 'deploy/charts/version-checker/values.yaml'
# Only run if the values.yaml file has changed.
- name: Render helm docs inside the README.md and push changes back to PR branch
if: steps.filter.outputs.values == 'true'
uses: shaybentk/[email protected]
with:
working-dir: deploy/charts/version-checker
git-push: "true"


test:
name: Run unit tests for Helm Chart
runs-on: ubuntu-latest
Expand Down
55 changes: 46 additions & 9 deletions deploy/charts/version-checker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,90 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# -- Replica Count for version-checker
replicaCount: 1

# -- Additional Labels to apply to Service and Deployment/Pod Objects
additionalLabels: {}
# -- Additional Annotations to apply to Service and Deployment/Pod Objects
additionalAnnotations: {}

image:
repository: quay.io/jetstack/version-checker
# Override the chart version
# -- Override the chart version
tag:
# -- Set the Image Pull Policy
pullPolicy: IfNotPresent

# -- Configure version-checkers Service
service:
labels: {}
annotations: {}
# -- Port to expose within the service
port: 8080

# -- Configure version-checkers behaviour
versionChecker:
# versionChecker.imageCacheTimeout -- How long to hold on to image tags and their versions
imageCacheTimeout: 30m
logLevel: info # debug, info, warn, error, fatal, panic
# versionChecker.logLevel -- Configure version-checkers logging, valid options are: debug, info, warn, error, fatal, panic
logLevel: info
# versionChecker.metricsServingAddress -- Port/interface to which version-checker should bind too
metricsServingAddress: 0.0.0.0:8080
testAllContainers: true # don't require the enable.version-checker.io annotation
# versionChecker.testAllContainers -- Enable/Disable the requirement for an enable.version-checker.io annotation on pods.
testAllContainers: true

# -- Azure Container Registry Credentials Configuration
acr:
# acr.username -- (string)
username:
# acr.password -- (string)
password:
# acr.refreshToken -- (string)
refreshToken:

# Docker Hub Credentials Configuration
docker:
# docker.username -- (string)
username:
# docker.password -- (string)
password:
# docker.token -- (string)
token:

# Amazon Elastic Container Registry Credentials Configuration
ecr:
# in AWS EKS use the following
# https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
# -- (string) Provide AWS EKS Iam Role ARN following: [Specify A ServiceAccount Role](https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html)
iamRoleArn:

# else use the AWS credentials
# -- (string)
accessKeyID:
# -- (string)
secretAccessKey:
# -- (string)
sessionToken:

# Google Container Registry Credentials Configuration
gcr:
# gcr.token -- (string)
token:

# Google Artifact Registry Credentials Configuration
ghcr:
# ghcr.token -- (string)
token:

# Quay.io Registry Credentials Configuration
quay:
# quay.token -- (string)
token:

# Can be used to provide custom environment variables e.g. proxy settings
# -- Can be used to provide custom environment variables e.g. proxy settings
env: {}

# -- ([]{name: "", host: "", username:"", password:"", token:""}]) Setup a number of SelfHosted Repositories and their credentials
selfhosted:
{}
[]
#- name: REGISTRY
# host: http://registry:5000
# username:
Expand All @@ -69,6 +97,7 @@ selfhosted:
# password: bar
# token:

# -- Setup version-checkers resource requests/limits
resources:
{}
# limits:
Expand All @@ -79,28 +108,36 @@ resources:
# memory: 128Mi
#

# -- Configure the readiness probe for version-checker
readinessProbe:
# readinessProbe.enabled -- Enable/Disable the setting of a readinessProbe
enabled: true
httpGet:
path: /readyz
port: 8080
initialDelaySeconds: 3
periodSeconds: 3

# -- Configure the healthcheck probe for version-checker
livenessProbe:
# livenessProbe.enabled -- Enable/Disable the setting of a livenessProbe
enabled: true
httpGet:
path: /readyz
port: 8080
initialDelaySeconds: 3
periodSeconds: 3

# Prometheus Operator
# -- Prometheus Operator
prometheus:
# -- Deploy a Prometheus-Operator Prometheus Object to collect version-checker metrics
enabled: false
replicas: 1
# -- ServiceAccount for new Prometheus Object
serviceAccountName: prometheus

# -- Configure a Prometheus-Operator ServiceMonitor object
serviceMonitor:
# serviceMonitor.enabled -- Disable/Enable ServiceMonitor Object
enabled: false
additionalLabels: {}

0 comments on commit 157a7d8

Please sign in to comment.