Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[castai-cluster-controller] Introduce castai-cluster-controller-ext child chart #438

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/castai-cluster-controller/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: rbac-ext
repository: file://charts/rbac-ext
version: 0.1.0
digest: sha256:b8dbd4b9f1597950a433f3fa33cd444c972d953b8fee83ce3743f78bed89fda0
generated: "2024-05-05T23:08:18.434099+03:00"
8 changes: 7 additions & 1 deletion charts/castai-cluster-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@ apiVersion: v2
name: castai-cluster-controller
description: Cluster controller is responsible for handling certain Kubernetes actions such as draining and deleting nodes, adding labels, approving CSR requests.
type: application
version: 0.56.9
version: 0.56.10
appVersion: "v0.41.8"

dependencies:
- name: castai-cluster-controller-ext
repository: file://charts/castai-cluster-controller-ext
version: 0.1.0
condition: castai-cluster-controller-ext.enabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: castai-cluster-controller-ext
description: castai-cluster-controller-ext.
type: application
version: 0.1.0
appVersion: "v0.1.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "castai-agent.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "castai-agent.labels" -}}
{{ if gt (len .Values.commonLabels) 0 -}}
{{- with .Values.commonLabels }}
{{- toYaml . }}
{{- end }}
{{- end }}
{{ include "castai-agent.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
{{- end }}

{{/*
Common Annotations
*/}}
{{- define "castai-agent.annotations" -}}
{{ if gt (len .Values.commonAnnotations) 0 -}}
{{- with .Values.commonAnnotations }}
{{- toYaml . }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "castai-agent.selectorLabels" -}}
app.kubernetes.io/name: {{ include "castai-agent.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
Loading