Skip to content

Commit 0e0d469

Browse files
wanyufewongni
andauthored
Update controllers/cloudstackmachine_controller.go
Co-authored-by: Wonkun Kim <[email protected]>
1 parent 06e3d78 commit 0e0d469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/cloudstackmachine_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (r *CloudStackMachineReconciliationRunner) GetOrCreateVMInstance() (retRes
187187
}
188188

189189
func processUserData(data []byte, r *CloudStackMachineReconciliationRunner) string {
190-
// since cloudstack metadata does not allow custom data added into meta_data, following line is a walkaround to specify a hostname name
190+
// since cloudstack metadata does not allow custom data added into meta_data, following line is a workaround to specify a hostname name
191191
// {{ ds.meta_data.hostname }} is expected to be used as a name when kubelet register a node
192192
// if more custom data needed to injected, this can be refactored into a method -- processCustomMetadata()
193193
userData := hostnameMatcher.ReplaceAllString(string(data), r.CAPIMachine.Name)

0 commit comments

Comments
 (0)