Skip to content

Commit

Permalink
docs: Added/updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Jul 7, 2024
1 parent 883a8c0 commit 08947d4
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 3 deletions.
3 changes: 3 additions & 0 deletions charts/cloudflare-ddns-update/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ description: A Helm chart to provide a Dyn v3 API to manage records in cloudflar
type: application
version: 0.1.0
appVersion: "v0.1.0"
home: "https://github.com/dploeger/cloudflare-ddns-update"
sources:
- "https://github.com/dploeger/cloudflare-ddns-update"
annotations:
artifacthub.io/category: "networking"
artifacthub.io/changes: |
Expand Down
37 changes: 37 additions & 0 deletions charts/cloudflare-ddns-update/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# cloudflare-ddns-update

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

A Helm chart to provide a Dyn v3 API to manage records in cloudflare

**Homepage:** <https://github.com/dploeger/cloudflare-ddns-update>

## Source Code

* <https://github.com/dploeger/cloudflare-ddns-update>

## Values

### Auth configuration

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| configuration.auth.existingSecret | object | Use the given username and password | Use an existing secret for the authentication |
| configuration.auth.existingSecret.name | string | `""` | secret name |
| configuration.auth.existingSecret.passwordKey | string | `"password"` | key used for password |
| configuration.auth.existingSecret.usernameKey | string | `"username"` | key used for username |
| configuration.auth.password | string | `""` | Password required for basic auth |
| configuration.auth.username | string | `""` | Username required for basic auth |

### CloudFlare configuration

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| configuration.cloudflare.apiToken | string | `""` | API token to authenticate to cloudflare |
| configuration.cloudflare.apiTokenExistingSecret | object | Use the given apiToken | Use an existing secret for API token |
| configuration.cloudflare.apiTokenExistingSecret.name | string | `""` | Secret name |
| configuration.cloudflare.apiTokenExistingSecret.tokenKey | string | `"token"` | Key used for token |
| configuration.cloudflare.zone | string | `""` | Zone to use |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.0](https://github.com/norwoodj/helm-docs/releases/v1.14.0)
33 changes: 33 additions & 0 deletions charts/cloudflare-ddns-update/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,39 @@ spec:
httpGet:
path: /
port: http
env:
- name: CLOUDFLARE_ZONE
value: {{ .Values.configuration.cloudflare.zone | quote }}
{{- if ne .Values.configuration.cloudflare.apiToken "" }}
- name: CLOUDFLARE_API_TOKEN
value: {{ .Values.configuration.cloudflare.apiToken | quote }}
{{- else if .Values.configuration.cloudflare.apiTokenExistingSecret }}
- name: CLOUDFLARE_API_TOKEN
valueFrom:
secretKeyRef:
key: {{ .Values.configuration.cloudflare.apiTokenExistingSecret.tokenKey }}
name: {{ .Values.configuration.cloudflare.apiTokenExistingSecret.name }}
{{- end }}
{{- if ne .Values.configuration.auth.username "" }}
- name: AUTH_USERNAME
value: {{ .Values.configuration.auth.username | quote }}
{{- else if .Values.configuration.auth.existingSecret }}
- name: AUTH_USERNAME
valueFrom:
secretKeyRef:
key: {{ .Values.configuration.auth.existingSecret.usernameKey }}
name: {{ .Values.configuration.auth.existingSecret.name }}
{{- end }}
{{- if ne .Values.configuration.auth.password "" }}
- name: AUTH_PASSWORD
value: {{ .Values.configuration.auth.password | quote }}
{{- else if .Values.configuration.auth.existingSecret }}
- name: AUTH_PASSWORD
valueFrom:
secretKeyRef:
key: {{ .Values.configuration.auth.existingSecret.passwordKey }}
name: {{ .Values.configuration.auth.existingSecret.name }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
41 changes: 38 additions & 3 deletions charts/cloudflare-ddns-update/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
# Default values for cloudflare-ddns-update.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
configuration:
cloudflare:
# -- Use an existing secret for API token
# @section -- CloudFlare configuration
# @default -- Use the given apiToken
apiTokenExistingSecret:
# -- Secret name
# @section -- CloudFlare configuration
name: ""
# -- Key used for token
# @section -- CloudFlare configuration
tokenKey: "token"
# -- API token to authenticate to cloudflare
# @section -- CloudFlare configuration
apiToken: ""
# -- The name of the CloudFLare zone to use
# @section -- CloudFlare configuration
zone: ""
auth:
# -- Use an existing secret for the authentication
# @section -- Auth configuration
# @default -- Use the given username and password
existingSecret:
# -- secret name
# @section -- Auth configuration
name: ""
# -- key used for username
# @section -- Auth configuration
usernameKey: "username"
# -- key used for password
# @section -- Auth configuration
passwordKey: "password"
# -- Username required for basic auth
# @section -- Auth configuration
username: ""
# -- Password required for basic auth
# @section -- Auth configuration
password: ""

replicaCount: 1

Expand Down

0 comments on commit 08947d4

Please sign in to comment.