Skip to content

Commit

Permalink
fix: volume pvc env name
Browse files Browse the repository at this point in the history
  • Loading branch information
wangeguo committed Feb 4, 2024
1 parent 2ae00bf commit 3ff66cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/build-init/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
blobURL = flag.String("blob-url", os.Getenv("BLOB_URL"), "The url of the source code blob.")
stripComponents = flag.Int("strip-components", getenvInt("BLOB_STRIP_COMPONENTS", 0), "The number of directory components to strip from the blobs content when extracting.")
registryImage = flag.String("registry-image", os.Getenv("REGISTRY_IMAGE"), "The registry location of the source code image.")
volumePVCName = flag.String("volume-pvc-name", os.Getenv("VOLUME_PVC_NAME"), "The name of the persistent volume claim to use as the source code image.")
volumePVCName = flag.String("volume-pvc-name", os.Getenv("VOLUME_PERSISTENT_VOLUME_CLAIM_NAME"), "The name of the persistent volume claim to use as the source code image.")
hostName = flag.String("dns-probe-hostname", os.Getenv("DNS_PROBE_HOSTNAME"), "hostname to dns poll")
sourceSubPath = flag.String("source-sub-path", os.Getenv("SOURCE_SUB_PATH"), "the subpath inside the source directory that will be the buildpack workspace")
buildChanges = flag.String("build-changes", os.Getenv("BUILD_CHANGES"), "JSON string of build changes and their reason")
Expand Down Expand Up @@ -244,7 +244,7 @@ func fetchSource(logger *log.Logger, keychain authn.Keychain) error {
}
return fetcher.Fetch(appDir, *volumePVCName, projectMetadataDir)
default:
return errors.New("no git url, blob url, or registry image provided")
return errors.New("no git url, blob url, registry image, or volume provided")
}
}

Expand Down

0 comments on commit 3ff66cb

Please sign in to comment.