Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
- Implemented PolicyDslValidator with command-line options for strict mode and JSON output. - Created PolicySchemaExporter to generate JSON schemas for policy-related models. - Developed PolicySimulationSmoke tool to validate policy simulations against expected outcomes. - Added project files and necessary dependencies for each tool. - Ensured proper error handling and usage instructions across tools.
44 lines
1.6 KiB
Smarty
44 lines
1.6 KiB
Smarty
{{- define "stellaops.name" -}}
|
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
|
{{- end -}}
|
|
|
|
{{- define "stellaops.telemetryCollector.config" -}}
|
|
{{- if .Values.telemetry.collector.config }}
|
|
{{ tpl .Values.telemetry.collector.config . }}
|
|
{{- else }}
|
|
{{ tpl (.Files.Get "files/otel-collector-config.yaml") . }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
|
|
{{- define "stellaops.telemetryCollector.fullname" -}}
|
|
{{- printf "%s-otel-collector" (include "stellaops.name" .) | trunc 63 | trimSuffix "-" -}}
|
|
{{- end -}}
|
|
|
|
{{- define "stellaops.fullname" -}}
|
|
{{- $name := default .root.Chart.Name .root.Values.fullnameOverride -}}
|
|
{{- printf "%s-%s" $name .name | trunc 63 | trimSuffix "-" -}}
|
|
{{- end -}}
|
|
|
|
{{- define "stellaops.selectorLabels" -}}
|
|
app.kubernetes.io/name: {{ include "stellaops.name" .root | quote }}
|
|
app.kubernetes.io/instance: {{ .root.Release.Name | quote }}
|
|
app.kubernetes.io/component: {{ .name | quote }}
|
|
{{- if .svc.class }}
|
|
app.kubernetes.io/part-of: {{ printf "stellaops-%s" .svc.class | quote }}
|
|
{{- else }}
|
|
app.kubernetes.io/part-of: "stellaops-core"
|
|
{{- end }}
|
|
{{- end -}}
|
|
|
|
{{- define "stellaops.labels" -}}
|
|
{{ include "stellaops.selectorLabels" . }}
|
|
helm.sh/chart: {{ printf "%s-%s" .root.Chart.Name .root.Chart.Version | quote }}
|
|
app.kubernetes.io/version: {{ .root.Values.global.release.version | quote }}
|
|
app.kubernetes.io/managed-by: {{ .root.Release.Service | quote }}
|
|
stellaops.release/channel: {{ .root.Values.global.release.channel | quote }}
|
|
stellaops.profile: {{ .root.Values.global.profile | quote }}
|
|
{{- range $k, $v := .root.Values.global.labels }}
|
|
{{ $k }}: {{ $v | quote }}
|
|
{{- end }}
|
|
{{- end -}}
|