-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The snippet-service is designed to manage configurations, conditions, and applied configurations through gRPC and HTTP interfaces.
- Loading branch information
1 parent
685942f
commit 65324e9
Showing
322 changed files
with
30,832 additions
and
1,550 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
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,53 @@ | ||
{{- define "plgd-hub.snippetservice.fullname" -}} | ||
{{- if .Values.snippetservice.fullnameOverride }} | ||
{{- .Values.snippetservice.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Values.snippetservice.name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s-%s" .Release.Name $name .Values.snippetservice.name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- define "plgd-hub.snippetservice.configName" -}} | ||
{{- $fullName := include "plgd-hub.snippetservice.fullname" . -}} | ||
{{- printf "%s-cfg" $fullName }} | ||
{{- end -}} | ||
|
||
{{- define "plgd-hub.snippetservice.createServiceCertByCm" }} | ||
{{- $serviceTls := .Values.snippetservice.apis.grpc.tls.certFile }} | ||
{{- if $serviceTls }} | ||
{{- printf "" -}} | ||
{{- else }} | ||
{{- printf "true" -}} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- define "plgd-hub.snippetservice.domain" -}} | ||
{{- if .Values.snippetservice.domain }} | ||
{{- printf "%s" .Values.snippetservice.domain }} | ||
{{- else }} | ||
{{- printf "api.%s" .Values.global.domain }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- define "plgd-hub.snippetservice.serviceCertName" -}} | ||
{{- $fullName := include "plgd-hub.snippetservice.fullname" . -}} | ||
{{- printf "%s-crt" $fullName -}} | ||
{{- end }} | ||
|
||
{{- define "plgd-hub.snippetservice.domainCertName" -}} | ||
{{- if .Values.snippetservice.ingress.secretName }} | ||
{{- printf "%s" .Values.snippetservice.ingress.secretName -}} | ||
{{- else }} | ||
{{- $fullName := include "plgd-hub.snippetservice.fullname" . -}} | ||
{{- printf "%s-domain-crt" $fullName -}} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- define "plgd-hub.snippetservice.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ .Values.snippetservice.name }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} |
Oops, something went wrong.