Skip to content

Commit

Permalink
feat(home-assistant): check certificate capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor Pichner committed Dec 27, 2023
1 parent b5117ef commit dd08222
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 16 deletions.
2 changes: 1 addition & 1 deletion charts/home-assistant/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.11
version: 0.2.12

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
87 changes: 87 additions & 0 deletions charts/home-assistant/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# home-assistant

![Version: 0.2.12](https://img.shields.io/badge/Version-0.2.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2023.12.4](https://img.shields.io/badge/AppVersion-2023.12.4-informational?style=flat-square)

A Helm chart for Kubernetes

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| certificate.additionalHosts | list | `[]` | |
| certificate.annotations | object | `{}` | |
| certificate.domain | string | `"home.example.com"` | |
| certificate.duration | string | `""` | |
| certificate.enabled | bool | `false` | |
| certificate.issuer.group | string | `""` | |
| certificate.issuer.kind | string | `""` | |
| certificate.issuer.name | string | `""` | |
| certificate.privateKey.algorithm | string | `"RSA"` | |
| certificate.privateKey.encoding | string | `"PKCS1"` | |
| certificate.privateKey.rotationPolicy | string | `"Never"` | |
| certificate.privateKey.size | int | `2048` | |
| certificate.renewBefore | string | `""` | |
| certificate.secretName | string | `"home-assistant-tls"` | |
| certificate.usages | list | `[]` | |
| container.port | int | `8123` | |
| env | list | `[]` | |
| fullnameOverride | string | `""` | |
| homeAssistant.configurations."configuration.yaml" | string | `"default_config:\n\ngroup: !include groups.yaml\nscript: !include scripts.yaml\nscene: !include scenes.yaml\n# automation: !include automations.yaml\n"` | |
| homeAssistant.configurations."groups.yaml" | string | `"# place your groups here\n"` | |
| homeAssistant.configurations."scenes.yaml" | string | `"# place your scenes here\n"` | |
| homeAssistant.configurations."scripts.yaml" | string | `"# place your scripts here\n"` | |
| homeAssistant.secrets | list | `[]` | |
| homeAssistant.timezone | string | `"Europe/Budapest"` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"homeassistant/home-assistant"` | |
| image.tag | string | `""` | |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | |
| ingress.hosts[0].host | string | `"chart-example.local"` | |
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.tls | list | `[]` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| persistence.accessMode | string | `"ReadWriteOnce"` | |
| persistence.size | string | `"4Gi"` | |
| podAnnotations | object | `{}` | |
| podLabels | object | `{}` | |
| podSecurityContext | object | `{}` | |
| postgresOperator.annotations | object | `{}` | |
| postgresOperator.databaseName | string | `"home-assistant"` | |
| postgresOperator.dropOnDelete | bool | `false` | |
| postgresOperator.enabled | bool | `false` | |
| postgresOperator.masterRole | string | `"home-assistant"` | |
| postgresOperator.privileges | string | `"OWNER"` | |
| postgresOperator.role | string | `"home-assistant"` | |
| postgresOperator.schema | string | `"home-assistant"` | |
| postgresOperator.secretName | string | `"home-assistant-database-credentials"` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| securityContext | object | `{}` | |
| service.port | int | `80` | |
| service.portName | string | `"http"` | |
| service.type | string | `"ClusterIP"` | |
| serviceMonitor.additionalLabels | object | `{}` | |
| serviceMonitor.annotations | object | `{}` | |
| serviceMonitor.enabled | bool | `false` | |
| serviceMonitor.interval | string | `"30s"` | |
| serviceMonitor.metricRelabelings | list | `[]` | |
| serviceMonitor.namespace | string | `""` | |
| serviceMonitor.relabelings | list | `[]` | |
| serviceMonitor.scheme | string | `""` | |
| serviceMonitor.scrapeTimeout | string | `"10s"` | |
| serviceMonitor.selector | object | `{}` | |
| serviceMonitor.tlsConfig | object | `{}` | |
| tolerations | list | `[]` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
2 changes: 1 addition & 1 deletion charts/home-assistant/templates/certificate.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.certificate.enabled -}}
{{- if and (.Capabilities.APIVersions.Has "cert-manager.io/v1") .Values.certificate.enabled -}}
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
Expand Down
14 changes: 0 additions & 14 deletions charts/home-assistant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,6 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80


# Additional volumes on the output Deployment definition.
volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false

# Additional volumeMounts on the output Deployment definition.
volumeMounts: []
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit dd08222

Please sign in to comment.