Skip to content

Commit

Permalink
Merge pull request #35 from cleverhu/add-param-for-lease
Browse files Browse the repository at this point in the history
add param for lease
  • Loading branch information
Iceber authored Jan 10, 2023
2 parents 6f74b0a + 11cbfb7 commit 1cd76e2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/clusterpedia/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.3.0
version: 1.4.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ spec:
- /usr/local/bin/clustersynchro-manager
- --storage-config=/etc/clusterpedia/storage/internalstorage-config.yaml
- --leader-elect-resource-namespace={{ .Release.Namespace }}
- --leader-elect-lease-duration={{ .Values.clustersynchroManager.leaderElect.leaseDuration }}
- --leader-elect-renew-deadline={{ .Values.clustersynchroManager.leaderElect.renewDeadline }}
- --leader-elect-retry-period={{ .Values.clustersynchroManager.leaderElect.retryPeriod }}
- --leader-elect-resource-lock={{ .Values.clustersynchroManager.leaderElect.resourceLock }}
- --worker-number={{ .Values.clustersynchroManager.workerNumber }}
{{- with (include "clusterpedia.clustersynchroManager.featureGates" .) }}
- {{ . }}
Expand Down
12 changes: 11 additions & 1 deletion charts/clusterpedia/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ clustersynchroManager:
affinity: {}
## @param clustersynchroManager.tolerations
tolerations: []
## @param featureGate to clustersynchro
## @param clustersynchroManager.featureGate featureGate to clustersynchro
featureGates: {}
## @param PruneManagedFields is a feature gate for ClusterSynchro to prune `ManagedFields` of the resource
## owner: @iceber
Expand Down Expand Up @@ -243,6 +243,16 @@ clustersynchroManager:
## owner: @iceber
## alpha: v0.6.0
## HealthCheckerWithStandaloneTCP: false
## @param clustersynchroManager.leaderElect.leaseDuration the duration that non-leader candidates will wait after observing a leadership renewal
## @param clustersynchroManager.leaderElect.renewDeadline the interval between attempts by the acting master to renew a leadership slot before it stops leading
## @param clustersynchroManager.leaderElect.retryPeriod the duration the clients should wait between attempting acquisition and renewal of a leadership
## @param clustersynchroManager.leaderElect.resourceLock the type of resource object that is used for locking during leader election. Supported options are 'leases', 'endpointsleases' and 'configmapsleases'
##
leaderElect:
leaseDuration: "15s"
renewDeadline: "10s"
retryPeriod: "2s"
resourceLock: "leases"

## controller manager config
controllerManager:
Expand Down

0 comments on commit 1cd76e2

Please sign in to comment.