Move the real player authority to server
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
- Add rust bindings for the server player controller - Implement reconciliation loop for checking the player state - Place spawners on the test map - Add Containerfile and helm chart
This commit is contained in:
32
helm/charts/helm-library/templates/helpers/_lookup.tpl
Normal file
32
helm/charts/helm-library/templates/helpers/_lookup.tpl
Normal file
@ -0,0 +1,32 @@
|
||||
{{- define "lib.helpers.lookup.env" -}} {{- /* define[0] */ -}}
|
||||
{{- include "lib.error.noCtx" . -}}
|
||||
{{- include "lib.error.noKey" (dict "ctx" . "key" "key") -}}
|
||||
{{- $data := (index .ctx.Values.config.env .key) -}}
|
||||
{{- if not $data }} {{- /* if[1] */}}
|
||||
{{- fail (printf "entry %s is not found in env" .key) }}
|
||||
{{- else -}} {{- /* .if[1] */ -}}
|
||||
{{ toYaml $data }}
|
||||
{{- end -}} {{- /* /if[1] */ -}}
|
||||
{{- end -}} {{- /* /define[0] */ -}}
|
||||
|
||||
{{- define "lib.helpers.lookup.storage" -}} {{- /* define[0] */ -}}
|
||||
{{- include "lib.error.noCtx" . -}}
|
||||
{{- include "lib.error.noKey" (dict "ctx" . "key" "key") -}}
|
||||
{{- $data := (index .ctx.Values.storage .key) -}}
|
||||
{{- if not $data }} {{- /* if[1] */}}
|
||||
{{- fail (printf "entry %s is not found in storage" .key) }}
|
||||
{{- else -}} {{- /* .if[1] */ -}}
|
||||
{{ toYaml $data }}
|
||||
{{- end -}} {{- /* /if[1] */ -}}
|
||||
{{- end -}} {{- /* /define[0] */ -}}
|
||||
|
||||
{{- define "lib.helpers.lookup.service" -}} {{- /* define[0] */ -}}
|
||||
{{- include "lib.error.noCtx" . -}}
|
||||
{{- include "lib.error.noKey" (dict "ctx" . "key" "key") -}}
|
||||
{{- $data := (index .ctx.Values.services .key) -}}
|
||||
{{- if not $data }} {{- /* if[1] */}}
|
||||
{{- fail (printf "entry %s is not found in services" .key) }}
|
||||
{{- else -}} {{- /* .if[1] */ -}}
|
||||
{{ toYaml $data }}
|
||||
{{- end -}} {{- /* /if[1] */ -}}
|
||||
{{- end -}} {{- /* /define[0] */ -}}
|
Reference in New Issue
Block a user