Skip to content

Commit

Permalink
Remove comments (#4293)
Browse files Browse the repository at this point in the history
Signed-off-by: Omer Aplatony <[email protected]>
  • Loading branch information
omerap12 authored Aug 28, 2024
1 parent 6cc47b8 commit 41eefb6
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions pkg/ddc/alluxio/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ func (e *AlluxioEngine) transform(runtime *datav1alpha1.AlluxioRuntime) (value *
value = &Alluxio{
Owner: transformer.GenerateOwnerReferenceFromObject(runtime),
}

// TODO: Handle cases that FullnameOverride is too long (> 63 chars)

value.FullnameOverride = e.name

// 1.transform the common part
Expand Down
3 changes: 1 addition & 2 deletions pkg/ddc/efc/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ func (e *EFCEngine) transform(runtime *datav1alpha1.EFCRuntime) (value *EFC, err
Name: runtime.Name,
},
}

// TODO: Handle cases that FullnameOverride is too long (> 63 chars)

value.FullnameOverride = e.name

err = e.transformMasters(runtime, dataset, value)
Expand Down
1 change: 0 additions & 1 deletion pkg/ddc/goosefs/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func (e *GooseFSEngine) transform(runtime *datav1alpha1.GooseFSRuntime) (value *

value = &GooseFS{}

// TODO: Handle cases that FullnameOverride is too long (> 63 chars)
value.FullnameOverride = e.name

// 1.transform the common part
Expand Down
1 change: 0 additions & 1 deletion pkg/ddc/jindocache/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ func (e *JindoCacheEngine) transform(runtime *datav1alpha1.JindoRuntime) (value
}

value = &Jindo{
// TODO: Handle cases that FullnameOverride is too long (> 63 chars)
// TODO: refactor names of jindoruntime and make it aligned with other runtimes
FullnameOverride: fmt.Sprintf("%s-%s", e.name, common.JindoChartName),
Image: smartdataConfig.image,
Expand Down
1 change: 0 additions & 1 deletion pkg/ddc/jindofsx/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ func (e *JindoFSxEngine) transform(runtime *datav1alpha1.JindoRuntime) (value *J
}

value = &Jindo{
// TODO: Handle cases that FullnameOverride is too long (> 63 chars)
// TODO: refactor names of jindoruntime and make it aligned with other runtimes
FullnameOverride: fmt.Sprintf("%s-%s", e.name, common.JindoChartName),
Image: smartdataConfig.image,
Expand Down
1 change: 0 additions & 1 deletion pkg/ddc/juicefs/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func (j *JuiceFSEngine) transform(runtime *datav1alpha1.JuiceFSRuntime) (value *
},
}

// TODO: Handle cases that FullnameOverride is too long (> 63 chars)
value.FullnameOverride = j.name
value.Owner = transformer.GenerateOwnerReferenceFromObject(runtime)

Expand Down
1 change: 0 additions & 1 deletion pkg/ddc/thin/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func (t *ThinEngine) transform(runtime *datav1alpha1.ThinRuntime, profile *datav
},
}

// TODO: Handle cases that FullnameOverride is too long (> 63 chars)
value.FullnameOverride = t.name
value.Owner = transformer.GenerateOwnerReferenceFromObject(runtime)
toRuntimeSetConfig, err := t.toRuntimeSetConfig(nil, nil)
Expand Down
1 change: 0 additions & 1 deletion pkg/ddc/vineyard/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func (e *VineyardEngine) transform(runtime *datav1alpha1.VineyardRuntime) (value
value = &Vineyard{
Owner: transformer.GenerateOwnerReferenceFromObject(runtime),
}
// TODO: Handle cases that FullnameOverride is too long (> 63 chars)
value.FullnameOverride = e.name

value.TieredStore, err = e.transformTieredStore(runtime)
Expand Down

0 comments on commit 41eefb6

Please sign in to comment.