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

charts: Release NDM 0.7.5 #309

Merged
merged 3 commits into from
Oct 17, 2024
Merged
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
4 changes: 2 additions & 2 deletions charts/harvester-node-disk-manager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.7.4
version: 0.7.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v0.7.3"
appVersion: "v0.7.5"

maintainers:
- name: harvester
21 changes: 21 additions & 0 deletions charts/harvester-node-disk-manager/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,27 @@ app.kubernetes.io/name: {{ include "harvester-node-disk-manager.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Webhook labels
*/}}
{{- define "harvester-node-disk-manager-webhook.labels" -}}
helm.sh/chart: {{ include "harvester-node-disk-manager.chart" . }}
{{ include "harvester-node-disk-manager-webhook.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/component: webhook
{{- end }}

{{/*
Webhook Selector labels
*/}}
{{- define "harvester-node-disk-manager-webhook.selectorLabels" -}}
app.kubernetes.io/name: {{ include "harvester-node-disk-manager.name" . }}-webhook
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
Expand Down
4 changes: 0 additions & 4 deletions charts/harvester-node-disk-manager/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ spec:
- name: NDM_AUTO_PROVISION_FILTER
value: {{ . | join "," | quote }}
{{- end }}
{{- with .Values.rescanInterval }}
- name: NDM_RESCAN_INTERVAL
value: {{ . | quote }}
{{- end }}
{{- with .Values.maxConcurrentOps }}
- name: NDM_MAX_CONCURRENT_OPS
value: {{ . | quote }}
Expand Down
46 changes: 46 additions & 0 deletions charts/harvester-node-disk-manager/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,49 @@ subjects:
- kind: ServiceAccount
name: {{ include "harvester-node-disk-manager.name" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: harvester-node-disk-manager-webhook
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: harvester-node-disk-manager-webhook
rules:
- apiGroups: [ "" ]
resources: [ "secrets", "configmaps" ]
verbs: [ "*" ]
- apiGroups: [ "" ]
resources: [ "persistentvolumes" ]
verbs: [ "get", "watch", "list" ]
- apiGroups: [ "storage.k8s.io" ]
resources: [ "storageclasses" ]
verbs: [ "get", "watch", "list" ]
- apiGroups: [ "harvesterhci.io" ]
resources: [ "blockdevices" ]
verbs: [ "*" ]
- apiGroups: [ "apiregistration.k8s.io" ]
resources: [ "apiservices" ]
verbs: [ "get", "watch", "list" ]
- apiGroups: [ "apiextensions.k8s.io" ]
resources: [ "customresourcedefinitions" ]
verbs: [ "get", "watch", "list" ]
- apiGroups: [ "admissionregistration.k8s.io" ]
resources: [ "validatingwebhookconfigurations", "mutatingwebhookconfigurations" ]
verbs: [ "*" ]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: harvester-node-disk-manager-webhook
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: harvester-node-disk-manager-webhook
subjects:
- kind: ServiceAccount
name: harvester-node-disk-manager-webhook
namespace: {{ .Release.Namespace }}
45 changes: 45 additions & 0 deletions charts/harvester-node-disk-manager/templates/webhook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "harvester-node-disk-manager-webhook.labels" . | nindent 4 }}
name: harvester-node-disk-manager-webhook
spec:
replicas: {{ .Values.webhook.replicas }}
selector:
matchLabels:
{{- include "harvester-node-disk-manager-webhook.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "harvester-node-disk-manager-webhook.labels" . | nindent 8 }}
spec:
serviceAccountName: harvester-node-disk-manager-webhook
containers:
- name: harvester-node-disk-manager-webhook
image: "{{ .Values.webhook.image.repository }}:{{ .Values.webhook.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.webhook.image.pullPolicy }}
env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
command:
- node-disk-manager-webhook
---
apiVersion: v1
kind: Service
metadata:
name: harvester-node-disk-manager-webhook
namespace: {{ .Release.Namespace }}
spec:
type: ClusterIP
selector:
{{- include "harvester-node-disk-manager-webhook.selectorLabels" . | nindent 4 }}
ports:
- name: https
port: 443
protocol: TCP
targetPort: {{ .Values.webhook.httpsPort }}
16 changes: 11 additions & 5 deletions charts/harvester-node-disk-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ image:
repository: rancher/harvester-node-disk-manager
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "v0.7.3"
tag: "v0.7.5"

webhook:
replicas: 1
image:
repository: rancher/harvester-node-disk-manager-webhook
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "v0.7.5"
httpsPort: 8443

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -67,15 +76,12 @@ autoProvisionFilter: []
# - /dev/sda?
# - /dev/nvme0n1p1

# Specify the interval of device rescanning of the node (in seconds)
rescanInterval:

# Sepcify how many concurrent ops we could execute at the same time
maxConcurrentOps:

# Perform auto GPT partition generating if a disk can not be globally identified
# Default to false.
autoGPTGenerate:

# Enable debug logging, default to false
# Enable debug logging
debug: false
Loading