Skip to content

Commit

Permalink
linstor-affinity-controller: upstream release 1.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wanzenböck <moritz.wanzenboeck@linbit.com>
  • Loading branch information
WanzenBug committed Jul 2, 2024
1 parent fc099c9 commit 28f159c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
4 changes: 2 additions & 2 deletions charts/linstor-affinity-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ home: https://github.com/piraeusdatastore/helm-charts
sources:
- https://github.com/piraeusdatastore/linstor-affinity-controller

version: 1.3.1
appVersion: "v1.0.1"
version: 1.3.2
appVersion: "v1.0.2"
2 changes: 1 addition & 1 deletion charts/linstor-affinity-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The following options can be set on the chart:
| `options.leaderElection` | Enable leader election to coordinate betwen multiple replicas. | `true` |
| `options.reconcileRate` | Set the reconcile rate, i.e. how often the cluster state will be checked and updated | `15s` |
| `options.resyncRate` | How often the controller will resync it's internal cache of Kubernetes resources | `15m` |
| `options.propertyNamespace` | Namespace used by LINSTOR CSI to search for node labels. | `Aux` (auto-detected when using Piraeus-Operator) |
| `options.propertyNamespace` | Namespace used by LINSTOR CSI to search for node labels. | `""` (auto-detected based on existing node labels on startup) |
| `linstor.endpoint` | URL of the LINSTOR Controller API. | `""` (auto-detected when using Piraeus-Operator) |
| `linstor.clientSecret` | TLS secret to use to authenticate with the LINSTOR API | `""` (auto-detected when using Piraeus-Operator) |
| `image.repository` | Repository to pull the linstor-affinity-controller image from. | `quay.io/piraeusdatastore/linstor-affinity-controller` |
Expand Down
13 changes: 0 additions & 13 deletions charts/linstor-affinity-controller/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,6 @@ Create the name of the service account to use
{{- end }}
{{- end }}

{{/*
Default argument for property namespaces, if not set
*/}}
{{- define "linstor-affinity-controller.defaultPropertyNamespace" -}}
{{- if not (hasKey .Values.options "propertyNamespace") }}
{{- if .Capabilities.APIVersions.Has "piraeus.io/v1/LinstorCluster" }}
- --property-namespace=Aux/topology
{{- else if or (.Capabilities.APIVersions.Has "piraeus.linbit.com/v1/LinstorController") (.Capabilities.APIVersions.Has "linstor.linbit.com/v1/LinstorController") }}
- --property-namespace=Aux
{{- end }}
{{- end }}
{{- end }}

{{/*
Find the linstor client secret containing TLS certificates
*/}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ spec:
- name: {{ .Chart.Name }}
args:
- /linstor-affinity-controller
{{- include "linstor-affinity-controller.defaultPropertyNamespace" . | nindent 12 }}
{{- range $opt, $val := .Values.options }}
- --{{ $opt | kebabcase }}={{ $val }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/linstor-affinity-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fullnameOverride: ""
options:
v: 1
leaderElection: true
#propertyNamespace: Aux
#propertyNamespace: ""
#reconcileRate: 15s
#resyncRate: 15m

Expand Down

0 comments on commit 28f159c

Please sign in to comment.