Remove dead code (#217)

This commit is contained in:
kfox1111
2023-04-17 12:18:18 +02:00
committed by GitHub
parent ad8bee0d3f
commit 210ed02c58
3 changed files with 0 additions and 40 deletions
-2
View File
@@ -108,12 +108,10 @@ Kubernetes: `>=1.21.0-0`
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| fullnameOverride | string | `""` | |
| global.k8s.clusterDomain | string | `"cluster.local"` | | | global.k8s.clusterDomain | string | `"cluster.local"` | |
| global.spire.bundleConfigMap | string | `""` | Override all instances of bundleConfigMap | | global.spire.bundleConfigMap | string | `""` | Override all instances of bundleConfigMap |
| global.spire.clusterName | string | `"example-cluster"` | Set the name of the Kubernetes cluster | | global.spire.clusterName | string | `"example-cluster"` | Set the name of the Kubernetes cluster |
| global.spire.trustDomain | string | `"example.org"` | Set the trust domain to use for the spiffe identifiers | | global.spire.trustDomain | string | `"example.org"` | Set the trust domain to use for the spiffe identifiers |
| nameOverride | string | `""` | |
| spiffe-csi-driver.enabled | bool | `true` | | | spiffe-csi-driver.enabled | bool | `true` | |
| spiffe-oidc-discovery-provider.enabled | bool | `false` | | | spiffe-oidc-discovery-provider.enabled | bool | `false` | |
| spire-agent.enabled | bool | `true` | | | spire-agent.enabled | bool | `true` | |
-35
View File
@@ -1,35 +0,0 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "spire.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 "spire.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 "spire.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- define "spire.server-socket-path" -}}
{{- print "/run/spire/server-sockets/spire-server.sock" }}
{{- end }}
-3
View File
@@ -20,9 +20,6 @@ global:
# namespace: "kube-prometheus-system" # namespace: "kube-prometheus-system"
# labels: {} # labels: {}
nameOverride: ""
fullnameOverride: ""
# subcharts # subcharts
spire-server: spire-server:
enabled: true enabled: true