Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #39 from cloudfoundry-incubator/vladi/fix-signature
Browse files Browse the repository at this point in the history
fix: signature for apply_crd
  • Loading branch information
viovanov authored Apr 26, 2020
2 parents 7cf92a0 + 757cae6 commit 480b21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/apply_crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
)

// ApplyFn is a function that applies CRDs
type ApplyFn func(config *rest.Config) error
type ApplyFn func(ctx context.Context, config *rest.Config) error

// ApplyCRDs calls apply to create the operators CRDs
func ApplyCRDs(ctx context.Context, apply ApplyFn, restConfig *rest.Config) error {
if viper.GetBool("apply-crd") {
ctxlog.Info(ctx, "Applying CRDs...")
err := apply(restConfig)
err := apply(ctx, restConfig)
if err != nil {
return err
}
Expand Down

0 comments on commit 480b21a

Please sign in to comment.