Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions external-secrets/Pluralfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
REPO external-secrets
ATTRIBUTES Plural repository.yaml

TF terraform/*
HELM helm/*
RECIPE plural/recipes/*
TAG plural/tags/**/*
23 changes: 23 additions & 0 deletions external-secrets/helm/external-secrets/.helmignore
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/
6 changes: 6 additions & 0 deletions external-secrets/helm/external-secrets/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: external-secrets
repository: https://charts.external-secrets.io
version: 0.6.1
digest: sha256:8cca4f790ab275f82a8bd0a28de14ac780e1fa13871aa692cf77cc05cfee6d53
generated: "2022-11-02T13:38:03.697892+02:00"
10 changes: 10 additions & 0 deletions external-secrets/helm/external-secrets/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: external-secrets
description: helm chart for external-secrets
type: application
version: 0.1.0
appVersion: "0.6.1"
dependencies:
- name: external-secrets
repository: https://charts.external-secrets.io
version: 0.6.1
1 change: 1 addition & 0 deletions external-secrets/helm/external-secrets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A helm chart for external-secrets
Binary file not shown.
26 changes: 26 additions & 0 deletions external-secrets/helm/external-secrets/deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: plural.sh/v1alpha1
kind: Dependencies
metadata:
application: true
description: Deploys external-secrets crafted for the target cloud
spec:
dependencies:
- type: helm
name: bootstrap
repo: bootstrap
version: '>= 0.5.1'
- type: terraform
name: aws
repo: external-secrets
version: '>= 0.1.0'
optional: true
- type: terraform
name: azure
repo: external-secrets
version: '>= 0.1.0'
optional: true
- type: terraform
name: gcp
repo: external-secrets
version: '>= 0.1.0'
optional: true
62 changes: 62 additions & 0 deletions external-secrets/helm/external-secrets/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "external-secrets.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-secrets.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "external-secrets.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "external-secrets.labels" -}}
helm.sh/chart: {{ include "external-secrets.chart" . }}
{{ include "external-secrets.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "external-secrets.selectorLabels" -}}
app.kubernetes.io/name: {{ include "external-secrets.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "external-secrets.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "external-secrets.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "external-secrets.fullname" . }}-test-connection"
labels:
{{- include "external-secrets.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "external-secrets.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
82 changes: 82 additions & 0 deletions external-secrets/helm/external-secrets/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Default values for external-secrets.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

image:
repository: nginx
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations: {}

podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

service:
type: ClusterIP
port: 80

ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}

tolerations: []

affinity: {}
1 change: 1 addition & 0 deletions external-secrets/helm/external-secrets/values.yaml.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions external-secrets/plural/notes.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use `plural watch external-secrets` to track the status of your application
14 changes: 14 additions & 0 deletions external-secrets/plural/recipes/external-secrets-aws.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: external-secrets-aws
description: Installs external-secrets on an aws eks cluster
provider: AWS
dependencies:
- repo: bootstrap
name: aws-k8s
sections:
- name: external-secrets
configuration: []
items:
- type: TERRAFORM
name: aws
- type: HELM
name: external-secrets
14 changes: 14 additions & 0 deletions external-secrets/plural/recipes/external-secrets-azure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: external-secrets-azure
description: Installs external-secrets on an aws eks cluster
provider: AZURE
dependencies:
- repo: bootstrap
name: azure-k8s
sections:
- name: external-secrets
configuration: []
items:
- type: TERRAFORM
name: azure
- type: HELM
name: external-secrets
14 changes: 14 additions & 0 deletions external-secrets/plural/recipes/external-secrets-gcp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: external-secrets-gcp
description: Installs external-secrets on an aws eks cluster
provider: GCP
dependencies:
- repo: bootstrap
name: gcp-k8s
sections:
- name: external-secrets
configuration: []
items:
- type: TERRAFORM
name: gcp
- type: HELM
name: external-secrets
6 changes: 6 additions & 0 deletions external-secrets/repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: external-secrets
description: external-secrets deployed on plural
category: DEVOPS
private: true
icon: plural/icons/external-secrets.png
notes: plural/notes.tpl
13 changes: 13 additions & 0 deletions external-secrets/terraform/aws/deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: plural.sh/v1alpha1
kind: Dependencies
metadata:
description: external-secrets aws setup
version: 0.1.0
spec:
dependencies:
- name: aws-bootstrap
repo: bootstrap
type: terraform
version: '>= 0.1.1'
providers:
- aws
11 changes: 11 additions & 0 deletions external-secrets/terraform/aws/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
resource "kubernetes_namespace" "external-secrets" {
metadata {
name = var.namespace
labels = {
"app.kubernetes.io/managed-by" = "plural"
"app.plural.sh/name" = "external-secrets"

}
}
}

2 changes: 2 additions & 0 deletions external-secrets/terraform/aws/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
namespace = {{ .Namespace | quote }}
cluster_name = {{ .Cluster | quote }}
8 changes: 8 additions & 0 deletions external-secrets/terraform/aws/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
variable "namespace" {
type = string
default = "external-secrets"
}

variable "cluster_name" {
type = string
}
13 changes: 13 additions & 0 deletions external-secrets/terraform/azure/deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: plural.sh/v1alpha1
kind: Dependencies
metadata:
description: external-secrets azure setup
version: 0.1.0
spec:
dependencies:
- name: azure-bootstrap
repo: bootstrap
type: terraform
version: '>= 0.1.1'
providers:
- azure
11 changes: 11 additions & 0 deletions external-secrets/terraform/azure/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
resource "kubernetes_namespace" "external-secrets" {
metadata {
name = var.namespace
labels = {
"app.kubernetes.io/managed-by" = "plural"
"app.plural.sh/name" = "external-secrets"

}
}
}

2 changes: 2 additions & 0 deletions external-secrets/terraform/azure/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
namespace = {{ .Namespace | quote }}
cluster_name = {{ .Cluster | quote }}
8 changes: 8 additions & 0 deletions external-secrets/terraform/azure/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
variable "namespace" {
type = string
default = "external-secrets"
}

variable "cluster_name" {
type = string
}
13 changes: 13 additions & 0 deletions external-secrets/terraform/gcp/deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: plural.sh/v1alpha1
kind: Dependencies
metadata:
description: external-secrets gcp setup
version: 0.1.0
spec:
dependencies:
- name: gcp-bootstrap
repo: bootstrap
type: terraform
version: '>= 0.1.1'
providers:
- gcp
Loading