Knative utilities for install and management (i.e. one-time setup and operator concerns, rather than ongoing development tools).
Right now, build templates are the only install supported. At some point, there
will be an install
command for the base components, and an events
command to
set up eventing.
$ knuts builds
? Which build templates do you want to install [Use arrows to move, type to filter]
[ ] bazel: Bazel with container_push rule
[ ] buildah: Buildah mechanism for building from Dockerfiles. Requires $BUILDER_IMAGE set in your Build.
[x] buildpack: Buildpack
> [x] jib-gradle: Gradle build with JIB
[ ] jib-maven: Maven build with JIB
[ ] kaniko: Dockerfile with Kaniko
Dry run: `kubectl --filename "https://raw.githubusercontent.com/knative/build-templates/master/buildpack/buildpack.yaml"`
Dry run: `kubectl --filename "https://raw.githubusercontent.com/knative/build-templates/master/jib/jib-gradle.yaml"`
? Which registries to push to [Use arrows to move, type to filter]
[ ] docker: Docker (user secret)
> [x] gcr.io: Google Container Registry
? GCP Project to push images to _myproject_
...
By default, knuts
runs in a "dry run" mode where it won't make any
changes. Use the --dry_run=false
flag to apply the changes to your
cluster.
This is totally work in progress, and right now does nothing. I'll be adding commands and utilities in (possibly) the following order:
- Install build templates - DONE
- Create docker & github secrets for build templates - DONE for GCR, TODO for docker & others
- Install Knative
- Help find & install eventing Sources
- Upgrade