Skip to content

Commit

Permalink
Rename management type to core
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Pavlov <[email protected]>
  • Loading branch information
Kshatrix committed Jun 14, 2024
1 parent 780675c commit 48e200f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/template_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const (
TemplateTypeDeployment TemplateType = "deployment"
// TemplateTypeProvider is the type used for adding CAPI providers in the HMC Management object.
TemplateTypeProvider TemplateType = "provider"
// TemplateTypeManagement is the type used for HMC management components
TemplateTypeManagement TemplateType = "management"
// TemplateTypeCore is the type used for HMC and CAPI core components
TemplateTypeCore TemplateType = "core"
)

// TemplateSpec defines the desired state of Template
Expand Down
2 changes: 1 addition & 1 deletion charts/cluster-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ version: 0.1.0
# It is recommended to use it with quotes.
appVersion: "0.1.0"
annotations:
hmc.mirantis.com/type: management
hmc.mirantis.com/type: core
2 changes: 1 addition & 1 deletion charts/hmc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ version: 0.1.0
# It is recommended to use it with quotes.
appVersion: "0.1.0"
annotations:
hmc.mirantis.com/type: management
hmc.mirantis.com/type: core
2 changes: 1 addition & 1 deletion internal/controller/template_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (r *TemplateReconciler) parseChartMetadata(template *hmc.Template, chart *c
}
templateType := chart.Metadata.Annotations[hmc.ChartAnnotationType]
switch hmc.TemplateType(templateType) {
case hmc.TemplateTypeDeployment, hmc.TemplateTypeProvider, hmc.TemplateTypeManagement:
case hmc.TemplateTypeDeployment, hmc.TemplateTypeProvider, hmc.TemplateTypeCore:
default:
return errNoProviderType
}
Expand Down

0 comments on commit 48e200f

Please sign in to comment.