Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in build.go #4610

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions internal/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func WithTimeout(timeout time.Duration) BuilderOptionFunc {

func WithProgressBar() BuilderOptionFunc {
return func(b *Builder) error {
// Add a spiner
// Add a spinner
cfg := yacspin.Config{
Frequency: 100 * time.Millisecond,
CharSet: yacspin.CharSets[59],
Expand Down Expand Up @@ -361,7 +361,7 @@ func (b *Builder) generate(kustomization kustomizev1.Kustomization, dirPath stri
}

// a scanner will be used down the line to parse the list
// so we have to make sure to unclude newlines
// so we have to make sure to include newlines
ignoreList := strings.Join(b.ignore, "\n")
gen := kustomize.NewGeneratorWithIgnore("", ignoreList, unstructured.Unstructured{Object: data})

Expand All @@ -375,7 +375,7 @@ func (b *Builder) generate(kustomization kustomizev1.Kustomization, dirPath stri
func (b *Builder) do(ctx context.Context, kustomization kustomizev1.Kustomization, dirPath string) (resmap.ResMap, error) {
fs := filesys.MakeFsOnDisk()

// acuire the lock
// acquire the lock
b.mu.Lock()
defer b.mu.Unlock()

Expand Down Expand Up @@ -562,9 +562,9 @@ func maskSopsDataInStringDataSecret(stringDataMap map[string]string, mask string
}

// Cancel cancels the build
// It restores a clean reprository
// It restores a clean repository
func (b *Builder) Cancel() error {
// acuire the lock
// acquire the lock
b.mu.Lock()
defer b.mu.Unlock()

Expand Down
Loading