Skip to content

Commit

Permalink
add install prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake committed Feb 9, 2022
1 parent bc4d4ac commit 0e0e548
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/models/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ func BootstrapManifests(ctx context.Context, fluxClient flux.Flux, gitProvider g
}

image, version := WegoImageAndVersion()

fmt.Println("!!!image")
fmt.Println(image)
fmt.Println("!!!version")
fmt.Println(version)

wegoAppManifests, err := manifests.GenerateWegoAppManifests(
manifests.Params{
AppVersion: version,
Expand Down Expand Up @@ -158,17 +164,25 @@ func BootstrapManifests(ctx context.Context, fluxClient flux.Flux, gitProvider g

func WegoImageAndVersion() (string, string) {
version := version.Version

fmt.Println("version")
fmt.Println(version)

if os.Getenv("IS_TEST_ENV") != "" {
version = "latest"
fmt.Println(version)
} else if os.Getenv("USE_NIGHTLY_BUILD_TAG") != "" {
version = "nightly-build"
fmt.Println(version)
}

image := WegoImage
if os.Getenv("IS_LOCAL_REGISTRY") != "" {
image = localWegoImage
}

fmt.Println(version)

return image, version
}

Expand Down

0 comments on commit 0e0e548

Please sign in to comment.