Skip to content

Commit

Permalink
Get rid 'pipelienrun'
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
chuangw6 authored and tekton-robot committed Aug 26, 2022
1 parent a91f0a5 commit 016fed9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/apis/config/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const (
// when it isn't specified in configmap
DefaultPipelinerunLevel = PipelinerunLevelAtPipeline
// PipelinerunLevelAtPipelinerun specify that aggregation will be done at
// pipelienrun level
// pipelinerun level
PipelinerunLevelAtPipelinerun = "pipelinerun"
// PipelinerunLevelAtPipeline specify that aggregation will be done at
// pipeline level
Expand Down Expand Up @@ -132,8 +132,8 @@ func newMetricsFromMap(cfgMap map[string]string) (*Metrics, error) {
if durationTaskrun, ok := cfgMap[metricsDurationTaskrunType]; ok {
tc.DurationTaskrunType = durationTaskrun
}
if durationPipelienrun, ok := cfgMap[metricsDurationPipelinerunType]; ok {
tc.DurationPipelinerunType = durationPipelienrun
if durationPipelinerun, ok := cfgMap[metricsDurationPipelinerunType]; ok {
tc.DurationPipelinerunType = durationPipelinerun
}
return &tc, nil
}
Expand Down

0 comments on commit 016fed9

Please sign in to comment.