Skip to content

Commit

Permalink
fix: resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
vie-serendipity committed May 13, 2024
1 parent 1c3d8e1 commit 575683d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 30 deletions.
22 changes: 5 additions & 17 deletions deploy/chart/templates/plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{- range $key, $nodepool := .Values.nodepools -}}
{{- if and $.Values.plugin.enabled (ne $nodepool nil) }}
{{- $nodepool := mergeOverwrite $.Values $nodepool }}
{{- $values := deepCopy $.Values }}
{{- $nodepool := mergeOverwrite $values $nodepool }}
kind: DaemonSet
apiVersion: apps/v1
metadata:
Expand All @@ -23,20 +24,7 @@ spec:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: type
operator: NotIn
values:
- virtual-kubelet
{{- if $nodepool.affinity }}
- matchExpressions:
- key: {{ $nodepool.affinity.key }}
operator: {{ $nodepool.affinity.operator }}
values:
{{- range $nodepool.affinity.values }}
- {{ . | quote }}
{{- end -}}
{{- end }}
{{- toYaml $nodepool.nodeSelectorTerms | nindent 12 }}
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: alicloud-csi-node
Expand Down Expand Up @@ -165,8 +153,8 @@ spec:
- "--endpoint=$(CSI_ENDPOINT)"
- "--v=2"
- "--driver={{ include "enabledPlugins" $nodepool.csi }}"
{{- if .Values.deploy.featureGates }}
- "--feature-gates={{ .Values.deploy.featureGates }}"
{{- if $nodepool.deploy.featureGates }}
- "--feature-gates={{ $nodepool.deploy.featureGates }}"
{{- end -}}
{{- if not $nodepool.deploy.ecs }}
- --nodeid=$(KUBE_NODE_NAME)
Expand Down
28 changes: 16 additions & 12 deletions deploy/chart/values-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ deploy:
nodepools:
default:
pluginname: csi-plugin
csi: {}
affinity:
key: alibabacloud.com/is-edge-worker
operator: NotIn
values:
val1: "true"
nodeSelectorTerms:
- matchExpressions:
- key: type
operator: NotIn
values:
- virtual-kubelet
- key: alibabacloud.com/is-edge-worker
operator: In
values:
- "false"
edge:
pluginname: csi-plugin-edge
csi:
Expand All @@ -20,10 +24,10 @@ nodepools:
oss:
controller:
enabled: false
affinity:
key: alibabacloud.com/is-edge-worker
operator: NotIn
values:
val1: "false"

nodeSelectorTerms:
- matchExpressions:
- key: alibabacloud.com/is-edge-worker
operator: In
values:
- "true"
# other nodepools
7 changes: 6 additions & 1 deletion deploy/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ csi:
nodepools:
default:
pluginname: csi-plugin
csi: {}
nodeSelectorTerms:
- matchExpressions:
- key: type
operator: NotIn
values:
- virtual-kubelet

defaultStorageClass:
enabled: true
Expand Down

0 comments on commit 575683d

Please sign in to comment.