Skip to content

Commit 48ebf8f

Browse files
removed customLabeler
Signed-off-by: Kartikay <kartikay_2101ce32@iitp.ac.in>
1 parent 3956d72 commit 48ebf8f

4 files changed

Lines changed: 6 additions & 49 deletions

File tree

config/sc-config.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,15 +1005,6 @@ opensearch:
10051005
ingress:
10061006
maxbodysize: 32m
10071007

1008-
customLabelSelector:
1009-
matchLabels:
1010-
app.kubernetes.io/name: custom-opensearch
1011-
matchExpressions:
1012-
- key: environment
1013-
operator: In
1014-
values:
1015-
- production
1016-
10171008
opa:
10181009
## Enable rule that requires pods to come from
10191010
## the image registry defined by "URL".

config/schemas/config.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5815,30 +5815,6 @@ properties:
58155815
In an air-gapped environment this can be used to install plugins from known sources.
58165816
type: array
58175817
type: object
5818-
customLabelSelector:
5819-
title: Custom Label Selector
5820-
description: |-
5821-
Custom label selector for pod anti-affinity rules. If not set, defaults to the standard OpenSearch labels.
5822-
type: object
5823-
properties:
5824-
matchLabels:
5825-
type: object
5826-
additionalProperties:
5827-
type: string
5828-
matchExpressions:
5829-
type: array
5830-
items:
5831-
type: object
5832-
properties:
5833-
key:
5834-
type: string
5835-
operator:
5836-
type: string
5837-
enum: ["In", "NotIn", "Exists", "DoesNotExist"]
5838-
values:
5839-
type: array
5840-
items:
5841-
type: string
58425818
required:
58435819
- enabled
58445820
- subdomain

helmfile.d/upstream/opensearch-project/opensearch/templates/statefulset.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,7 @@ spec:
106106
{{- end }}
107107
affinity:
108108
{{- end }}
109-
{{- if eq .Values.antiAffinity "custom" }}
110-
{{- with .Values.customAntiAffinity }}
111-
podAntiAffinity:
112-
{{- toYaml . | nindent 10 }}
113-
{{- end }}
114-
{{- else if eq .Values.antiAffinity "hard" }}
109+
{{- if eq .Values.antiAffinity "hard" }}
115110
podAntiAffinity:
116111
requiredDuringSchedulingIgnoredDuringExecution:
117112
- labelSelector:
@@ -141,6 +136,11 @@ spec:
141136
operator: In
142137
values:
143138
- {{ include "opensearch.name" . }}
139+
{{- else if eq .Values.antiAffinity "custom" }}
140+
{{- with .Values.customAntiAffinity }}
141+
podAntiAffinity:
142+
{{ toYaml . | indent 10 }}
143+
{{- end }}
144144
{{- end }}
145145
{{- with .Values.podAffinity }}
146146
podAffinity:

helmfile.d/upstream/opensearch-project/opensearch/values.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -529,13 +529,3 @@ extraObjects: []
529529
# selector:
530530
# matchLabels:
531531
# {{- include "opensearch.selectorLabels" . | nindent 6 }}
532-
533-
# Custom label selector for pod anti-affinity rules
534-
customLabelSelector: {}
535-
# matchLabels:
536-
# app.kubernetes.io/name: opensearch
537-
# matchExpressions:
538-
# - key: app.kubernetes.io/instance
539-
# operator: In
540-
# values:
541-
# - opensearch-master

0 commit comments

Comments
 (0)