Add missing fields to annotated-skaffold.yaml
apiVersion: skaffold/v1beta1
kind: Config
build:
- # tagPolicy determines how skaffold is going to tag your images.
+ # tagPolicy determines how Skaffold is going to tag your images.
# We provide a few strategies here, although you most likely won't need to care!
- # The policy can `gitCommit`, `sha256` or `envTemplate`.
+ # The policy can `gitCommit`, `sha256`, `envTemplate` or `dateTime`.
# If not specified, it defaults to `gitCommit: {}`.
tagPolicy:
# Tag the image with the git commit of your current repository.
@@ -39,6 +39,11 @@ build:
- image: gcr.io/k8s-skaffold/skaffold-example
# The path to your dockerfile context. Defaults to ".".
context: ../examples/getting-started
+ # Skaffold can sync local files with remote pods instead
+ # of rebuilding the whole artifact's image. This is a mapping
+ # of local files to sync to remote folders.
+ # sync:
+ # '*.py': .
# Each artifact is of a given type among: `docker`, `bazel`, `jibMaven` and `jibGradle`.
# If not specified, it defaults to `docker: {}`.
@@ -60,6 +65,10 @@ build:
# contain Bazel configuration files.
# bazel:
# target: //:skaffold_example.tar
+ # additional args to pass to `bazel build`
+ # args:
+ # - "arg1"
+ # - "arg2"
# jibMaven builds containers using the Jib plugin for Maven.
# jibMaven:
@@ -122,8 +131,10 @@ build:
# cache:
# repo: gcr.io/my-project/skaffold/cache
# pullSecret: /a/secret/path/serviceaccount.json
+ # pullSecretName: kaniko-secret
# namespace: default
# timeout: 20m
+ # image: defaults to the latest released version of `gcr.io/kaniko-project/executor`
# The deploy section has all the information needed to deploy. Along with build:
# it is a required section.
@@ -194,4 +205,3 @@ profiles:
build:
googleCloudBuild:
projectId: k8s-skaffold
-
