Skip to content

Commit

Permalink
dev: clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsingerus committed Mar 28, 2024
1 parent f76dad8 commit 6c038ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pkg/apis/clickhouse.altinity.com/v1/types.go
Expand Up @@ -144,6 +144,10 @@ func (s CHISelector) Matches(labels map[string]string) bool {
// Labels have the key specified in selector, but selector value is not the same as labels value
// Selector does not match the labels
return false
} else {
// Selector value and label value are equal
// So far label matches selector
// Continue iteration to next value
}
}

Expand Down
3 changes: 1 addition & 2 deletions pkg/model/chi/normalizer/templates/chi.go
Expand Up @@ -73,8 +73,7 @@ func ApplyCHITemplates(target, chi *api.ClickHouseInstallation) (appliedTemplate
templates := prepareListOfTemplates(chi)

// Apply templates from the list and count applied templates - just to make nice log entry
for i := range templates {
template := templates[i]
for _, template := range templates {
if applyTemplate(target, template, chi) {
appliedTemplates = append(appliedTemplates, template)
}
Expand Down

0 comments on commit 6c038ec

Please sign in to comment.