Skip to content

Commit e3a7615

Browse files
authored
Merge pull request #5506 from cloud-native-team/master
fix some comments
2 parents b02d02a + d56e1d0 commit e3a7615

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

api/internal/target/kusttarget.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ func (kt *KustTarget) accumulateResources(
457457
return ra, nil
458458
}
459459

460-
// accumulateResources fills the given resourceAccumulator
460+
// accumulateComponents fills the given resourceAccumulator
461461
// with resources read from the given list of paths.
462462
func (kt *KustTarget) accumulateComponents(
463463
ra *accumulator.ResAccumulator, paths []string) (*accumulator.ResAccumulator, error) {

cmd/config/internal/commands/run-fns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"sigs.k8s.io/kustomize/cmd/config/internal/generateddocs/commands"
2121
)
2222

23-
// GetCatRunner returns a RunFnRunner.
23+
// GetRunFnRunner returns a RunFnRunner.
2424
func GetRunFnRunner(name string) *RunFnRunner {
2525
r := &RunFnRunner{}
2626
c := &cobra.Command{

cmd/config/internal/inpututil/inpututil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func MapInputsE(inputs []*yaml.RNode, fn MapInputsEFn) error {
2424

2525
type MapInputsFn func(*yaml.RNode, yaml.ResourceMeta) ([]*yaml.RNode, error)
2626

27-
// runs the function against each input Resource, providing the parsed metadata
27+
// runs the function against each input Resource, providing the parsed metadata
2828
func MapInputs(inputs []*yaml.RNode, fn MapInputsFn) ([]*yaml.RNode, error) {
2929
var outputs []*yaml.RNode
3030
for i := range inputs {

kustomize/commands/edit/remove/removemetadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type removeMetadataOptions struct {
4040
kind kindOfAdd
4141
}
4242

43-
// newCmdRemoveLabel removes one or more commonAnnotations from the kustomization file.
43+
// newCmdRemoveAnnotation removes one or more commonAnnotations from the kustomization file.
4444
func newCmdRemoveAnnotation(fSys filesys.FileSystem, v func([]string) error) *cobra.Command {
4545
var o removeMetadataOptions
4646
o.kind = label

kyaml/fn/framework/selector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func initMatcherTemplates(matchers []ResourceMatcher, data interface{}) error {
156156

157157
var _ ResourceTemplateMatcher = &OrSelector{}
158158

159-
// OrSelector is a kio.Filter that selects resources when that match all of its embedded
159+
// AndSelector is a kio.Filter that selects resources when that match all of its embedded
160160
// matchers.
161161
type AndSelector struct {
162162
// Matchers is the list of ResourceMatchers to try on the input resources.

kyaml/fn/runtime/container/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (c *Filter) setupExec() error {
167167
return nil
168168
}
169169

170-
// getArgs returns the command + args to run to spawn the container
170+
// getCommand returns the command + args to run to spawn the container
171171
func (c *Filter) getCommand() (string, []string) {
172172
network := runtimeutil.NetworkNameNone
173173
if c.ContainerSpec.Network {

kyaml/kio/ignorefilesmatcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (i *ignoreFilesMatcher) matchFile(path string) bool {
8686
return i.matchers[len(i.matchers)-1].matcher.Match(path, false)
8787
}
8888

89-
// matchFile checks whether the directory given by the provided path matches
89+
// matchDir checks whether the directory given by the provided path matches
9090
// any of the patterns in the .krmignore file for the package.
9191
func (i *ignoreFilesMatcher) matchDir(path string) bool {
9292
if len(i.matchers) == 0 {

kyaml/openapi/kustomizationapi/swagger.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kyaml/openapi/openapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ type ResourceSchema struct {
182182
Schema *spec.Schema
183183
}
184184

185-
// IsEmpty returns true if the ResourceSchema is empty
185+
// IsMissingOrNull returns true if the ResourceSchema is missing or null
186186
func (rs *ResourceSchema) IsMissingOrNull() bool {
187187
if rs == nil || rs.Schema == nil {
188188
return true

kyaml/yaml/alias.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const (
2020
BareSeqNodeWrappingKey = "bareSeqNodeWrappingKey"
2121
)
2222

23-
// SeqIndentType holds the indentation style for sequence nodes
23+
// SequenceIndentStyle holds the indentation style for sequence nodes
2424
type SequenceIndentStyle string
2525

2626
// EncoderOptions are options that can be used to configure the encoder,

0 commit comments

Comments
 (0)