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:
46
helm/charts/helm-library/templates/metadata/_metadata.tpl
Normal file
46
helm/charts/helm-library/templates/metadata/_metadata.tpl
Normal file
@ -0,0 +1,46 @@
|
||||
{{/*
|
||||
* Metadata is accepting a dict as an argument
|
||||
* dict should contain the following keys:
|
||||
* - ctx
|
||||
* - name (optional)
|
||||
* - labels
|
||||
* - annotations (optional)
|
||||
* TODO: Add a check to labels for an empty map (Labels must not be empty)
|
||||
* TODO: Think about whether it's a good idea to let this function create resoutce with any namy
|
||||
*/}}
|
||||
{{- define "lib.metadata" -}} {{- /* define[0] */ -}}
|
||||
{{- include "lib.error.noCtx" . -}}
|
||||
{{- include "lib.error.noKey" (dict "ctx" . "key" "labels") -}}
|
||||
{{- if .name -}} {{- /* if[1] */ -}}
|
||||
name: {{ .name }}
|
||||
{{- else -}}
|
||||
name: {{ include "lib.chart.fullname" (dict "ctx" .ctx) }}
|
||||
{{- end }} {{- /* /if[1] */}}
|
||||
labels:
|
||||
{{ .labels | indent 2 }}
|
||||
{{- if .annotations }} {{- /* if[1] */}}
|
||||
annotations:
|
||||
{{ toYaml .annotations | indent 2 }}
|
||||
{{- end }} {{- /* /if[1] */}}
|
||||
{{- end }} {{- /* /define[0] */ -}}
|
||||
|
||||
{{/*
|
||||
* Merge global helm labels with custom ones
|
||||
* accepts:
|
||||
* ctx
|
||||
* global (optional) - Labels that are defined for
|
||||
* all resources
|
||||
* local (optional) - Labels that are define only for
|
||||
* the current resource
|
||||
*/}}
|
||||
{{- define "lib.metadata.mergeLabels" -}} {{- /* /define[0] */ -}}
|
||||
{{- include "lib.error.noCtx" . -}}
|
||||
{{ include "lib.chart.labels" (dict "ctx" .ctx) }}
|
||||
{{- range $key, $val := .global }} {{- /* /range[1] */}}
|
||||
{{ $key }}: {{ $val | quote }}
|
||||
{{- end }} {{- /* /range[1] */}}
|
||||
{{- range $key, $val := .local }} {{- /* /range[1] */}}
|
||||
{{ $key }}: {{ $val | quote }}
|
||||
{{- end }} {{- /* /range[1] */}}
|
||||
{{- end -}} {{- /* /define[0] */ -}}
|
||||
|
Reference in New Issue
Block a user