-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(external-dns-extensions): add new Helm chart for external-dns ex…
…tensions - Added a new Helm chart for managing external-dns CRDs. - Included templates for DNSEndpoint resources. - Provided values.yaml file to customize the deployment. - Created README.md with instructions on how to deploy and customize the chart. - Added LICENSE file. Also, updated argo-cd and cert-manager extension templates: - Enhanced metadata section in multiple yaml files under argo-cd and cert-manager extensions. Now supports custom labels and annotations.
- Loading branch information
1 parent
0a972db
commit 980f52d
Showing
12 changed files
with
232 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v2 | ||
name: external-dns-extensions | ||
description: A Helm chart for external-dns extensions | ||
type: application | ||
version: 1.0.0 | ||
appVersion: 1.0.0 | ||
|
||
|
||
icon: https://raw.githubusercontent.com/emberstack/CDN/main/projects/helm-charts/generic/emberstack_icon.png | ||
keywords: | ||
- external-dns | ||
- dns | ||
- DNSEndpoint | ||
home: https://github.com/emberstack/helm-charts | ||
sources: | ||
- https://github.com/emberstack/helm-charts | ||
maintainers: | ||
- name: winromulus | ||
email: helm-charts@emberstack.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 emberstack | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# cert-manager Helm Extensions | ||
This chart provides templates for external-dns CRDs. It can be used as the base for dynamic resources. | ||
> Requirements: external-dns installed in the cluster. | ||
### Deployment to Kubernetes using Helm | ||
|
||
Use Helm to install the latest released chart: | ||
```shellsession | ||
$ helm repo add emberstack https://emberstack.github.io/helm-charts | ||
$ helm repo update | ||
$ helm upgrade --install external-dns-extensions emberstack/external-dns-extensions | ||
``` | ||
|
||
You can customize the values of the helm deployment by using the following Values: | ||
|
||
| Parameter | Description | Default | | ||
| ------------------------------------ | --------------------------------------------------| --------------------- | | ||
| `dnsEndpoints` | Array of DNSEndpoints to template | `[]` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "external-dns-extensions.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "external-dns-extensions.fullname" -}} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "external-dns-extensions.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "external-dns-extensions.labels" -}} | ||
helm.sh/chart: {{ include "external-dns-extensions.chart" . }} | ||
{{ include "external-dns-extensions.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "external-dns-extensions.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "external-dns-extensions.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "external-dns-extensions.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create }} | ||
{{- default (include "external-dns-extensions.fullname" .) .Values.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- end }} |
43 changes: 43 additions & 0 deletions
43
src/charts/external-dns-extensions/templates/dnsEndpoints.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{{- range .Values.dnsEndpoints }} | ||
{{- $item := . -}} | ||
{{- if $item.enabled }} | ||
{{- $fullName := $item.fullnameOverride | default (print (include "external-dns-extensions.fullname" $) "-" $item.name) }} | ||
--- | ||
apiVersion: externaldns.k8s.io/v1alpha1 | ||
kind: DNSEndpoint | ||
metadata: | ||
name: {{ $fullName }} | ||
namespace: {{ $item.namespace | default $.Release.Namespace | default "default" }} | ||
labels: | ||
{{- include "external-dns-extensions.labels" $ | nindent 4 }} | ||
{{- with $item.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- if $item.annotations }} | ||
annotations: | ||
{{- toYaml $item.annotations | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
endpoints: | ||
{{- range $endpoint := $item.endpoints }} | ||
- dnsName: {{ $endpoint.dnsName }} | ||
{{- if $endpoint.labels }} | ||
labels: | ||
{{- toYaml $endpoint.labels | nindent 8 }} | ||
{{- end }} | ||
{{- if $endpoint.providerSpecific }} | ||
providerSpecific: | ||
{{- toYaml $endpoint.providerSpecific | nindent 8 }} | ||
{{- end }} | ||
{{- if $endpoint.recordTTL }} | ||
recordTTL: {{ $endpoint.recordTTL }} | ||
{{- end }} | ||
recordType: {{ $endpoint.recordType }} | ||
{{- if $endpoint.setIdentifier }} | ||
setIdentifier: {{ $endpoint.setIdentifier }} | ||
{{- end }} | ||
targets: | ||
{{- toYaml $endpoint.targets | nindent 8 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
|
||
dnsEndpoints: | ||
- name: "test-endpoint" | ||
enabled: true | ||
endpoints: | ||
- dnsName: "test-endpoint.example.com" | ||
recordType: "A" | ||
targets: [8.8.8.8] |