Skip to content

Frontend pdb is missing matchLabels: for selector #355

@BadLiveware

Description

@BadLiveware

{{- if .Values.frontend.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: sourcegraph-frontend
spec:
{{- toYaml .Values.frontend.podDisruptionBudget | nindent 2 }}
selector:
{{- include "sourcegraph.selectorLabels" . | nindent 4 }}
app: sourcegraph-frontend
{{- end }}

This is missing matchLabels and should look like

 {{- if .Values.frontend.podDisruptionBudget }} 
 apiVersion: policy/v1 
 kind: PodDisruptionBudget 
 metadata: 
   name: sourcegraph-frontend 
 spec: 
   {{- toYaml .Values.frontend.podDisruptionBudget | nindent 2 }} 
   selector: 
     matchLabels: ## <<<
       {{- include "sourcegraph.selectorLabels" . | nindent 6 }} 
       app: sourcegraph-frontend 
 {{- end }} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions