chore: fix some typos in comments (#1863)

Signed-off-by: cuiyourong <cuiyourong@gmail.com>
This commit is contained in:
cuiyourong 2024-04-25 20:41:58 +08:00 committed by GitHub
parent cdcb0e7f61
commit d274f9947d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ var (
// default is true. // default is true.
WithKomposeAnnotation bool WithKomposeAnnotation bool
// MultipleContainerMode which enables creating multi containers in a single pod is a developping function. // MultipleContainerMode which enables creating multi containers in a single pod is a developing function.
// default is false // default is false
MultipleContainerMode bool MultipleContainerMode bool

View File

@ -100,7 +100,7 @@ var RootCmd = &cobra.Command{
} }
// Execute executes the root level command. // Execute executes the root level command.
// It returns an erorr if any. // It returns an error if any.
func Execute() error { func Execute() error {
return RootCmd.Execute() return RootCmd.Execute()
} }

View File

@ -327,7 +327,7 @@ func TestKomposeConvert(t *testing.T) {
opt kobject.ConvertOptions opt kobject.ConvertOptions
expectedNumObjs int expectedNumObjs int
}{ }{
// objects generated are deployment, service nework policies (2) and pvc // objects generated are deployment, service network policies (2) and pvc
"Convert to Deployments (D)": {newKomposeObject(), kobject.ConvertOptions{CreateD: true, Replicas: replicas, IsReplicaSetFlag: true}, 4}, "Convert to Deployments (D)": {newKomposeObject(), kobject.ConvertOptions{CreateD: true, Replicas: replicas, IsReplicaSetFlag: true}, 4},
"Convert to Deployments (D) with v3 replicas": {newKomposeObject(), kobject.ConvertOptions{CreateD: true}, 4}, "Convert to Deployments (D) with v3 replicas": {newKomposeObject(), kobject.ConvertOptions{CreateD: true}, 4},
"Convert to DaemonSets (DS)": {newKomposeObject(), kobject.ConvertOptions{CreateDS: true}, 4}, "Convert to DaemonSets (DS)": {newKomposeObject(), kobject.ConvertOptions{CreateDS: true}, 4},