Skip to content

Commit

Permalink
Merge branch 'main' into gm/fix-service-annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMac authored Sep 24, 2024
2 parents 850bfda + acb9ab5 commit d398681
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/flipt/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: flipt
home: https://flipt.io
description: Flipt is an open-source, self-hosted feature flag solution.
type: application
version: 0.69.3
appVersion: v1.49.2
version: 0.70.3
appVersion: v1.50.0
maintainers:
- name: Flipt
url: https://github.com/flipt-io/helm-charts
1 change: 1 addition & 0 deletions charts/flipt/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "flipt.fullname" . }}
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "-1"
Expand Down
1 change: 1 addition & 0 deletions charts/flipt/templates/configmap_ssh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "flipt.fullname" . }}-ssh-known-hosts
namespace: {{ .Release.Namespace }}
labels:
{{- include "flipt.labels" . | nindent 4 }}
data:
Expand Down
6 changes: 6 additions & 0 deletions charts/flipt/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "flipt.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "flipt.labels" . | nindent 4 }}
spec:
Expand Down Expand Up @@ -35,6 +36,11 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/flipt"]
{{- if .Values.flipt.args }}
args:
{{- toYaml .Values.flipt.args | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: {{ coalesce ((.Values.flipt.config).server).http_port .Values.flipt.httpPort .Values.containerPorts.http }}
Expand Down
1 change: 1 addition & 0 deletions charts/flipt/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: {{ include "flipt.apiVersion.autoscaling" . }}
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "flipt.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "flipt.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/flipt/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "flipt.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
Expand Down
1 change: 1 addition & 0 deletions charts/flipt/templates/migration_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: {{ include "flipt.migration_name" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "flipt.labels" . | nindent 4 }}
annotations:
Expand Down
1 change: 1 addition & 0 deletions charts/flipt/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ template "flipt.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{- include "flipt.labels" . | nindent 4 }}
spec:
maxUnavailable: {{ default "25%" .Values.pdb.maxUnavailable }}
Expand Down
1 change: 1 addition & 0 deletions charts/flipt/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ include "flipt.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "flipt.labels" . | nindent 4 }}
{{- if or .Values.persistence.annotations .Values.commonAnnotations }}
Expand Down
1 change: 1 addition & 0 deletions charts/flipt/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "flipt.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "flipt.labels" . | nindent 4 }}
{{- with .Values.service.labels }}
Expand Down
1 change: 1 addition & 0 deletions charts/flipt/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "flipt.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "flipt.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand Down
2 changes: 1 addition & 1 deletion charts/flipt/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: ServiceMonitor
metadata:
name: {{ template "flipt.fullname" . }}
{{- with .Values.metrics.serviceMonitor.namespace }}
namespace: {{ . }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
{{- include "flipt.labels" . | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/flipt/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ flipt:
# grpcPort is the Flipt GRPC container port
# @deprecated use containerPorts.grpc instead
grpcPort: 9000
args: []
# extraEnvVars is a list of extra environment variables to set e.g.
# - name: FLIPT_LOG_LEVEL
# value: debug
Expand Down

0 comments on commit d398681

Please sign in to comment.