Skip to content

Commit

Permalink
logs info updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajiyah-Salat committed Jul 31, 2023
1 parent 0f390a9 commit 7441728
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func newSampleContext(binaryPath string, samplePath string, env ...string) utils

// Prepare the Context for the sample project
func (sp *Sample) Prepare() {
log.Infof("destroying directory for sample project")
log.Infof("destroying directory for component_config sample project")
sp.ctx.Destroy()

log.Infof("refreshing tools and creating directory...")
Expand All @@ -66,7 +66,7 @@ func (sp *Sample) Prepare() {
}

func (sp *Sample) GenerateSampleProject() {
log.Infof("Initializing the project")
log.Infof("Initializing the component config project")
err := sp.ctx.Init(
"--domain", "tutorial.kubebuilder.io",
"--repo", "tutorial.kubebuilder.io/project",
Expand All @@ -75,7 +75,7 @@ func (sp *Sample) GenerateSampleProject() {
"--plugins=go/v4",
"--component-config",
)
CheckError("Initializing the project", err)
CheckError("Initializing the component config project", err)

log.Infof("Adding a new config type")
err = sp.ctx.CreateAPI(
Expand Down
6 changes: 3 additions & 3 deletions hack/docs/internal/cronjob-tutorial/generate_cronjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func newSampleContext(binaryPath string, samplePath string, env ...string) utils

// Prepare the Context for the sample project
func (sp *Sample) Prepare() {
log.Infof("destroying directory for sample project")
log.Infof("destroying directory for cronjob sample project")
sp.ctx.Destroy()

log.Infof("refreshing tools and creating directory...")
Expand All @@ -66,7 +66,7 @@ func (sp *Sample) Prepare() {
}

func (sp *Sample) GenerateSampleProject() {
log.Infof("Initializing the project")
log.Infof("Initializing the cronjob project")

err := sp.ctx.Init(
"--plugins", "go/v4",
Expand All @@ -75,7 +75,7 @@ func (sp *Sample) GenerateSampleProject() {
"--license", "apache2",
"--owner", "The Kubernetes authors",
)
CheckError("Initializing the project", err)
CheckError("Initializing the cronjob project", err)

log.Infof("Adding a new config type")
err = sp.ctx.CreateAPI(
Expand Down

0 comments on commit 7441728

Please sign in to comment.