Skip to content

Commit

Permalink
add revisionHistoryLimit
Browse files Browse the repository at this point in the history
Signed-off-by: drfaust92 <[email protected]>
  • Loading branch information
DrFaust92 committed Mar 22, 2024
1 parent b323aa7 commit 62cb943
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/linkerd2-cni/templates/cni-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ metadata:
annotations:
{{ include "partials.annotations.created-by" . }}
spec:
revisionHistoryLimit: {{.Values.revisionHistoryLimit}}
selector:
matchLabels:
k8s-app: linkerd-cni
Expand Down
2 changes: 2 additions & 0 deletions charts/linkerd2-cni/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ destCNIBinDir: "/opt/cni/bin"
useWaitFlag: false
# -- Kubernetes priorityClassName for the CNI plugin's Pods
priorityClassName: ""
# -- Specifies the number of old ReplicaSets to retain to allow rollback.
revisionHistoryLimit: 10

# -- Add a PSP resource and bind it to the linkerd-cni ServiceAccounts.
# Note PSP has been deprecated since k8s v1.21
Expand Down
1 change: 1 addition & 0 deletions viz/charts/linkerd-viz/templates/metrics-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ metadata:
name: metrics-api
namespace: {{ .Release.Namespace }}
spec:
revisionHistoryLimit: {{.Values.revisionHistoryLimit}}
replicas: {{.Values.metricsAPI.replicas}}
selector:
matchLabels:
Expand Down
1 change: 1 addition & 0 deletions viz/charts/linkerd-viz/templates/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ metadata:
name: prometheus
namespace: {{ .Release.Namespace }}
spec:
revisionHistoryLimit: {{.Values.revisionHistoryLimit}}
replicas: 1
{{- if .Values.prometheus.persistence }}
strategy:
Expand Down
1 change: 1 addition & 0 deletions viz/charts/linkerd-viz/templates/tap-injector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ metadata:
name: tap-injector
namespace: {{ .Release.Namespace }}
spec:
revisionHistoryLimit: {{.Values.revisionHistoryLimit}}
replicas: {{.Values.tapInjector.replicas}}
selector:
matchLabels:
Expand Down
1 change: 1 addition & 0 deletions viz/charts/linkerd-viz/templates/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ metadata:
name: web
namespace: {{ .Release.Namespace }}
spec:
revisionHistoryLimit: {{.Values.revisionHistoryLimit}}
replicas: {{.Values.dashboard.replicas}}
selector:
matchLabels:
Expand Down
2 changes: 2 additions & 0 deletions viz/charts/linkerd-viz/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ commonLabels: {}
# -- Trust domain used for identity
# @default -- clusterDomain
identityTrustDomain: ""
# -- Specifies the number of old ReplicaSets to retain to allow rollback.
revisionHistoryLimit: 10

# -- Docker registry for all viz components
defaultRegistry: cr.l5d.io/linkerd
Expand Down

0 comments on commit 62cb943

Please sign in to comment.