-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(daml-on-sawtooth): fully refactor chart
Replacing sawtooth declarations with sawtooth dependency, and dividing up services cleanly * fix(daml-on-sawtooth): use templates for labels and names * fix(daml-on-sawtooth): remove items replaced by dependency * feat(daml-on-sawtooth): fully refactor chart into individual services * fix(daml-on-sawtooth): add authToken parameter Signed-off-by: Kevin O'Donnell <kevin@blockchaintp.com>
- Loading branch information
1 parent
b7a4bb2
commit 869b0af
Showing
31 changed files
with
667 additions
and
1,883 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
|
||
{{- define "daml.labels.appLabels" -}} | ||
app: {{ include "common.names.fullname" . }} | ||
daml: {{ include "common.names.fullname" . }} | ||
{{- end -}} | ||
|
||
{{- define "daml.labels" -}} | ||
{{ include "lib.labels" . }} | ||
{{ include "daml.labels.appLabels" . }} | ||
{{- end -}} | ||
|
||
{{- define "daml.labels.matchLabels" -}} | ||
{{ include "common.labels.matchLabels" . }} | ||
{{ include "daml.labels.appLabels" . }} | ||
{{- end -}} | ||
|
||
{{- define "daml.kind" -}} | ||
{{ include "lib.call-nested" (list . "sawtooth" "sawtooth.kind") }} | ||
{{- end -}} | ||
|
||
{{- define "daml.replicas" -}} | ||
{{ include "lib.call-nested" (list . "sawtooth" "sawtooth.replicas") | int }} | ||
{{- end -}} | ||
|
||
{{- define "daml.sawtooth.sawcomp" -}} | ||
{{ include "lib.call-nested" (list . "sawtooth" "sawtooth.ports.sawcomp") | int }} | ||
{{- end -}} | ||
|
||
{{- define "daml.sawtooth.service" -}} | ||
{{- $svc := include "lib.call-nested" (list . "sawtooth" "common.names.fullname") -}} | ||
{{- $ns := .Release.Namespace -}} | ||
{{- $domain := "svc.cluster.local" -}} | ||
{{ printf "%s.%s.%s" $svc $ns $domain }} | ||
{{- end -}} | ||
|
||
{{- define "daml.trigger.service.name" -}} | ||
{{- $svc := include "common.names.fullname" . -}} | ||
{{ printf "%s-triggers" $svc }} | ||
{{- end -}} | ||
|
||
{{- define "daml.jsonapi.service.name" -}} | ||
{{- $svc := include "common.names.fullname" . -}} | ||
{{ printf "%s-jsonapi" $svc }} | ||
{{- end -}} | ||
|
||
{{- define "daml.tp.service.name" -}} | ||
{{- $svc := include "common.names.fullname" . -}} | ||
{{ printf "%s-tp" $svc }} | ||
{{- end -}} | ||
|
||
{{- define "daml.service.name" -}} | ||
{{- $svc := include "common.names.fullname" . -}} | ||
{{ printf "%s" $svc }} | ||
{{- end -}} | ||
|
||
{{- define "daml.service" -}} | ||
{{- $svc := include "daml.service.name" . -}} | ||
{{- $ns := .Release.Namespace -}} | ||
{{- $domain := "svc.cluster.local" -}} | ||
{{ printf "%s.%s.%s" $svc $ns $domain }} | ||
{{- end -}} | ||
|
||
|
||
{{- define "daml.field.node" -}} | ||
{{ $kind := include "daml.kind" . }} | ||
{{- if eq $kind "DaemonSet" -}} | ||
spec.nodeName | ||
{{- else -}} | ||
metadata.name | ||
{{- end -}} | ||
{{- end -}}} | ||
|
||
{{/* | ||
Return the participant id to be used in this chart | ||
*/}} | ||
{{- define "daml.participantId" -}} | ||
{{- if .Values.participantId -}} | ||
{{- .Values.participantId -}} | ||
{{- else -}} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
{{- end -}} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.