Skip to content

Commit

Permalink
Merge pull request spidernet-io#2306 from Icarus9913/fix/wk/chart-label
Browse files Browse the repository at this point in the history
charts default value adjustment
  • Loading branch information
weizhoublue authored Sep 6, 2023
2 parents ce6ee0e + 326b22e commit 933a8cd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 28 deletions.
20 changes: 10 additions & 10 deletions charts/spiderpool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,16 @@ helm install spiderpool spiderpool/spiderpool --wait --namespace kube-system \

### coordinator parameters

| Name | Description | Value |
| ------------------------------ | ------------------------------------------------------------------------- | --------- |
| `coordinator.enabled` | enable SpiderCoordinator | `true` |
| `coordinator.name` | the name of the default SpiderCoordinator CR | `default` |
| `coordinator.mode` | optional network mode, ["auto","underlay", "overlay", "disabled"] | `auto` |
| `coordinator.podCIDRType` | Pod CIDR type that should be collected, [ "cluster", "calico", "cilium" ] | `cluster` |
| `coordinator.detectGateway` | detect the reachability of the gateway | `false` |
| `coordinator.detectIPConflict` | detect IP address conflicts | `false` |
| `coordinator.tunePodRoutes` | tune Pod routes | `true` |
| `coordinator.hijackCIDR` | Additional subnets that need to be hijacked to the host forward | `[]` |
| Name | Description | Value |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
| `coordinator.enabled` | enable SpiderCoordinator | `true` |
| `coordinator.name` | the name of the default SpiderCoordinator CR | `default` |
| `coordinator.mode` | optional network mode, ["auto","underlay", "overlay", "disabled"] | `auto` |
| `coordinator.podCIDRType` | Pod CIDR type that should be collected, [ "cluster", "calico", "cilium" ] | `cluster` |
| `coordinator.detectGateway` | detect the reachability of the gateway | `false` |
| `coordinator.detectIPConflict` | detect IP address conflicts | `false` |
| `coordinator.tunePodRoutes` | tune Pod routes | `true` |
| `coordinator.hijackCIDR` | Additional subnets that need to be hijacked to the host forward, the default link-local range "169.254.0.0/16" is used for NodeLocal DNS | `["169.254.0.0/16"]` |

### multus parameters

Expand Down
7 changes: 0 additions & 7 deletions charts/spiderpool/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,6 @@ generate the CA cert
{{- $_ := set . "ca" $ca -}}
{{- end }}

{{/*
insight labels
*/}}
{{- define "insight.labels" -}}
operator.insight.io/managed-by: insight
{{- end}}

{{/*
spiderpool multus Common labels
*/}}
Expand Down
1 change: 0 additions & 1 deletion charts/spiderpool/templates/grafanaDashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
name: {{ default "spiderpool" .Values.global.nameOverride }}
namespace: {{ default .Release.Namespace .Values.grafanaDashboard.namespace }}
labels:
{{- include "insight.labels" . | nindent 4 }}
{{- if .Values.global.commonLabels }}
{{- include "tplvalues.render" ( dict "value" .Values.global.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
Expand Down
8 changes: 3 additions & 5 deletions charts/spiderpool/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
name: {{ .Values.spiderpoolAgent.name | trunc 63 | trimSuffix "-" }}
namespace: {{ default .Release.Namespace .Values.spiderpoolAgent.prometheus.prometheusRule.namespace }}
labels:
{{- include "insight.labels" . | nindent 4 }}
{{- if .Values.spiderpoolAgent.prometheus.prometheusRule.labels }}
{{- include "tplvalues.render" ( dict "value" .Values.spiderpoolAgent.prometheus.prometheusRule.labels "context" $ ) | nindent 4 }}
{{- end }}
Expand Down Expand Up @@ -83,10 +82,9 @@ metadata:
name: {{ .Values.spiderpoolController.name | trunc 63 | trimSuffix "-" }}
namespace: {{ default .Release.Namespace .Values.spiderpoolController.prometheus.prometheusRule.namespace }}
labels:
{{- include "insight.labels" . | nindent 4 }}
{{- if .Values.spiderpoolController.prometheus.prometheusRule.labels }}
{{- include "tplvalues.render" ( dict "value" .Values.spiderpoolAgent.prometheus.prometheusRule.labels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.spiderpoolController.prometheus.prometheusRule.labels }}
{{- include "tplvalues.render" ( dict "value" .Values.spiderpoolAgent.prometheus.prometheusRule.labels "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.global.commonAnnotations .Values.spiderpoolController.prometheus.prometheusRule.annotations }}
annotations:
{{- if .Values.global.commonAnnotations }}
Expand Down
3 changes: 0 additions & 3 deletions charts/spiderpool/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
name: {{ .Values.spiderpoolAgent.name | trunc 63 | trimSuffix "-" }}
namespace: {{ default .Release.Namespace .Values.spiderpoolAgent.prometheus.serviceMonitor.namespace }}
labels:
{{- include "insight.labels" . | nindent 4 }}
{{- if or .Values.global.commonAnnotations .Values.spiderpoolAgent.prometheus.serviceMonitor.annotations }}
annotations:
{{- if .Values.global.commonAnnotations }}
Expand Down Expand Up @@ -40,8 +39,6 @@ kind: ServiceMonitor
metadata:
name: {{ .Values.spiderpoolController.name | trunc 63 | trimSuffix "-" }}
namespace: {{ default .Release.Namespace .Values.spiderpoolController.prometheus.serviceMonitor.namespace }}
labels:
{{- include "insight.labels" . | nindent 4 }}
{{- if or .Values.global.commonAnnotations .Values.spiderpoolController.prometheus.serviceMonitor.annotations }}
annotations:
{{- if .Values.global.commonAnnotations }}
Expand Down
4 changes: 2 additions & 2 deletions charts/spiderpool/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ coordinator:
## @param coordinator.tunePodRoutes tune Pod routes
tunePodRoutes: true

## @param coordinator.hijackCIDR Additional subnets that need to be hijacked to the host forward
hijackCIDR: []
## @param coordinator.hijackCIDR Additional subnets that need to be hijacked to the host forward, the default link-local range "169.254.0.0/16" is used for NodeLocal DNS
hijackCIDR: ["169.254.0.0/16"]

## @section multus parameters
##
Expand Down

0 comments on commit 933a8cd

Please sign in to comment.