Skip to content

Commit

Permalink
fix: Use $ to reference the values.
Browse files Browse the repository at this point in the history
>
>
Co-authored-by: Danny__Wei <[email protected]>
Co-authored-by: lichanghao.orange <[email protected]>
  • Loading branch information
Danny-Wei committed Nov 12, 2024
1 parent 8cf89dd commit 1f358f6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/status/api/v1/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func (m *StatusManager) HandleProfileStatusUpdate(status varmortypes.ProfileStat

m.profileChangeCount.Add(ctx, 1, metric.WithAttributeSet(attrSet))
}

func (m *StatusManager) syncStatusMetricsLoop() {
ctx := context.Background()
for {
Expand Down Expand Up @@ -114,7 +115,6 @@ func (m *StatusManager) syncStatusMetricsLoop() {
m.profileStatusPerNode.Record(ctx, 0, metric.WithAttributeSet(attrSet)) // 0 mean failure
}
}

}
}
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/varmor/templates/deployments/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
{{- if .Values.metrics.enabled }}
{{- with .Values.manager.metrics.args }}
{{- toYaml . | nindent 8 }}
- --syncMetricsSecond={{ .Values.metrics.syncMetricsSecond }}
- --syncMetricsSecond={{ $.Values.metrics.syncMetricsSecond }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
1 change: 0 additions & 1 deletion manifests/varmor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ manager:
args:
- --enableMetrics


resources:
limits:
cpu: 200m
Expand Down

0 comments on commit 1f358f6

Please sign in to comment.