Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.8 KB

kp_buildpack_create.md

File metadata and controls

44 lines (31 loc) · 1.8 KB

kp buildpack create

Create a buildpack

Synopsis

Create a buildpack by providing command line arguments. The buildpack will be created only if it does not exist in the provided namespace.

The namespace defaults to the kubernetes current-context namespace.

kp buildpack create <name> --image <image> [flags]

Examples

kp buildpack create my-buildpack --image gcr.io/paketo-buildpacks/java
kp buildpack create my-buildpack --image gcr.io/paketo-buildpacks/java:8.9.0
kp buildpack create my-buildpack --image gcr.io/paketo-buildpacks/java@sha256:fc1c6fba46b582f63b13490b89e50e93c95ce08142a8737f4a6b70c826c995de

Options

      --dry-run                  perform validation with no side-effects; no objects are sent to the server.
                                   The --dry-run flag can be used in combination with the --output flag to
                                   view the Kubernetes resource(s) without sending anything to the server.
  -h, --help                     help for create
  -i, --image string             registry location where the buildpack is located
  -n, --namespace string         kubernetes namespace
      --output string            print Kubernetes resources in the specified format; supported formats are: yaml, json.
                                   The output can be used with the "kubectl apply -f" command. To allow this, the command
                                   updates are redirected to stderr and only the Kubernetes resource(s) are written to stdout.
                                   The APIVersion of the outputted resources will always be the latest APIVersion known to kp (currently: v1alpha2).
      --service-account string   service account name to use (default "default")

SEE ALSO