Skip to content

Commit

Permalink
Merge pull request #3520 from balopat/v1200
Browse files Browse the repository at this point in the history
cut v1.2.0
  • Loading branch information
balopat authored Jan 17, 2020
2 parents a28e70c + 8583c0f commit 80f82f4
Show file tree
Hide file tree
Showing 30 changed files with 136 additions and 35 deletions.
105 changes: 105 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,108 @@
# v1.2.0 Release - 01/16/2019

*Note*: This release comes with a new config version `v2alpha2`. To upgrade your `skaffold.yaml`, use `skaffold fix`. If you choose not to upgrade, skaffold will auto-upgrade as best it can.
Also: Happy New Year to all our users and contributors!

Highlights:
- The deployer section in `skaffold.yaml` now accepts multiple deployers in a single pipeline.
- ValuesFiles can be rendered with environment and build variables
- CRD support: skaffold now doesn't throw an error on CRDs [#1737](https://github.com/GoogleContainerTools/skaffold/issues/1737) is fixed!
- `skaffold render` now supports the `kustomize` deployer
- parallel local builds are now supported - just set `build.local.concurrency` to 0 (no-limit) or >2

New Features:
* Enable multiple deployers in `skaffold.yaml` [#3392](https://github.com/GoogleContainerTools/skaffold/pull/3392)
- The deployer section in `skaffold.yaml` now accepts multiple deployers in a single pipeline.
- When applying profiles, deployers in the base profile no longer get wiped when merging in the deployer from the profile.
* Add forwarding deployer muxer to enable multiple deployers [#3391](https://github.com/GoogleContainerTools/skaffold/pull/3391)
* Related to #2849: Allows ValuesFiles to be templatable [#3111](https://github.com/GoogleContainerTools/skaffold/pull/3111)
* ValuesFiles can be rendered with environment and build variables
* Implement render for kustomize [#3110](https://github.com/GoogleContainerTools/skaffold/pull/3110)
* Support parallel local builds (defaults to sequential) [#3471](https://github.com/GoogleContainerTools/skaffold/pull/3471)
* Add --target parameter with kaniko on Google Cloud Build [#3462](https://github.com/GoogleContainerTools/skaffold/pull/3462)

Fixes:
* fix licenses path [#3517](https://github.com/GoogleContainerTools/skaffold/pull/3517)
* Dockerfile detector will only check files containing "Dockerfile" in the name [#3499](https://github.com/GoogleContainerTools/skaffold/pull/3499)
* Exclude CRD schema from transformation, fix #1737. [#3456](https://github.com/GoogleContainerTools/skaffold/pull/3456)
* Kaniko: Cancel log streaming when pod fails to complete [#3481](https://github.com/GoogleContainerTools/skaffold/pull/3481)
* Use unique key for jib caches [#3483](https://github.com/GoogleContainerTools/skaffold/pull/3483)
* Remove false warnings when deploying multiple releases [#3470](https://github.com/GoogleContainerTools/skaffold/pull/3470)
* Fix sync infer when COPY destination contains an env variable [#3439](https://github.com/GoogleContainerTools/skaffold/pull/3439)
* Fix `skaffold credits` [#3436](https://github.com/GoogleContainerTools/skaffold/pull/3436)
* Track changes of transitive BUILD files [#3460](https://github.com/GoogleContainerTools/skaffold/pull/3460)

Updates & Refactors
* Spelling [#3458](https://github.com/GoogleContainerTools/skaffold/pull/3458)
* Vendor pack CLI code to build with Buildpacks [#3445](https://github.com/GoogleContainerTools/skaffold/pull/3445)
* Remove gcr.io/k8s-skaffold repository from examples
* [#3368](https://github.com/GoogleContainerTools/skaffold/pull/3368)
* Remove a few more references to gcr.io/k8s-skaffold [#3513](https://github.com/GoogleContainerTools/skaffold/pull/3513)
* Allow 2020 copyright year [#3511](https://github.com/GoogleContainerTools/skaffold/pull/3511)
* This test can run on Travis, with kind [#3510](https://github.com/GoogleContainerTools/skaffold/pull/3510)
* Move default images next to where they are used [#3509](https://github.com/GoogleContainerTools/skaffold/pull/3509)
* Kind 0.7.0 [#3507](https://github.com/GoogleContainerTools/skaffold/pull/3507)
* Use origin/master as baseline for schema version check [#3501](https://github.com/GoogleContainerTools/skaffold/pull/3501)
* Use pack CLI to build on GCB [#3503](https://github.com/GoogleContainerTools/skaffold/pull/3503)
* Simplify kaniko after we removed the GCS build context [#3455](https://github.com/GoogleContainerTools/skaffold/pull/3455)
* Switch to go-licenses for credits collection [#3493](https://github.com/GoogleContainerTools/skaffold/pull/3493)
* Add missing package-lock.json files [#3494](https://github.com/GoogleContainerTools/skaffold/pull/3494)
* Build Go projects with Buildpacks [#3504](https://github.com/GoogleContainerTools/skaffold/pull/3504)
* SyncMap is a matter of artifact type, not builder [#3450](https://github.com/GoogleContainerTools/skaffold/pull/3450)
* Remove Kaniko build context. [#3480](https://github.com/GoogleContainerTools/skaffold/pull/3480)
* [buildpacks] Refactor code to simplify #3395 [#3441](https://github.com/GoogleContainerTools/skaffold/pull/3441)
* Rename jib args functions [#3478](https://github.com/GoogleContainerTools/skaffold/pull/3478)
* Add gradle/maven sync parts + restructure tests [#3474](https://github.com/GoogleContainerTools/skaffold/pull/3474)
* helm deployer: Remove duplication [#3469](https://github.com/GoogleContainerTools/skaffold/pull/3469)
* Update Bazel sample [#3435](https://github.com/GoogleContainerTools/skaffold/pull/3435)
* Use the kind that’s inside skaffold-builder [#3430](https://github.com/GoogleContainerTools/skaffold/pull/3430)
* Move man generation to hack folder [#3464](https://github.com/GoogleContainerTools/skaffold/pull/3464)
* Schema v2alpha2 [#3453](https://github.com/GoogleContainerTools/skaffold/pull/3453)
* Cache Gradle downloads and Go build cache [#3425](https://github.com/GoogleContainerTools/skaffold/pull/3425)


Docs Updates:
* [doc] Improve documentation for concurrency settings. [#3491](https://github.com/GoogleContainerTools/skaffold/pull/3491)
* [doc] Supported builders matrix [#3492](https://github.com/GoogleContainerTools/skaffold/pull/3492)
* [doc] There’s no `gcsBucket` config anymore [#3514](https://github.com/GoogleContainerTools/skaffold/pull/3514)
* Clarify GCP service account and secret creation [#3488](https://github.com/GoogleContainerTools/skaffold/pull/3488)
* Demonstrate inferred sync [#3495](https://github.com/GoogleContainerTools/skaffold/pull/3495)
* Use ko instead of buildpacks for the custom builder [#3432](https://github.com/GoogleContainerTools/skaffold/pull/3432)
* Buildpacks node sample [#3440](https://github.com/GoogleContainerTools/skaffold/pull/3440)

Huge thanks goes out to all of our contributors for this release:

- ansky
- Appu Goundan
- Arjan Topolovec
- Armin Buerkle
- Balint Pato
- Brian de Alwis
- Cedric Kring
- Chuck Dries
- Cornelius Weig
- Cyril Diagne
- David Gageot
- David Sabatie
- Farhad Vildanov
- Hwanjin Jeong
- Idan Bidani
- Josh Soref
- Marc
- Martin Hoefling
- Max Goltzsche
- Michael Beaumont
- Naoki Oketani
- Nick Kubala
- Nicklas Wallgren
- Nick Taylor
- Peter Jausovec
- Philippe Martin
- Pradip Caulagi
- Tad Cordle
- Tejal Desai
- Warren Strange

# v1.1.0 Release - 12/20/2019

*Note*: This release comes with a new config version `v2alpha1`. To upgrade your `skaffold.yaml`, use `skaffold fix`. If you choose not to upgrade, skaffold will auto-upgrade as best it can.
Expand Down
2 changes: 1 addition & 1 deletion examples/bazel/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/buildpacks/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/custom/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/gcb-kaniko/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
googleCloudBuild:
Expand Down
4 changes: 2 additions & 2 deletions examples/generate-pipeline/expectedPipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secret/kaniko-secret
image: skaffold:test-version
image: gcr.io/k8s-skaffold/skaffold:test-version
name: run-build
resources: {}
volumeMounts:
Expand Down Expand Up @@ -75,7 +75,7 @@ spec:
command:
- skaffold
- deploy
image: skaffold:test-version
image: gcr.io/k8s-skaffold/skaffold:test-version
name: run-deploy
resources: {}
workingDir: /workspace/source
Expand Down
2 changes: 1 addition & 1 deletion examples/generate-pipeline/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/getting-started/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/google-cloud-build/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
googleCloudBuild:
Expand Down
2 changes: 1 addition & 1 deletion examples/helm-deployment-dependencies/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
tagPolicy:
Expand Down
2 changes: 1 addition & 1 deletion examples/helm-deployment/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
tagPolicy:
Expand Down
2 changes: 1 addition & 1 deletion examples/hot-reload/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/jib-gradle/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static void main(String args[]) {
if(!outputFile.getParentFile().exists()) {
if(!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
Expand Down
2 changes: 1 addition & 1 deletion examples/jib-multimodule/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/jib/.mvn/wrapper/MavenWrapperDownloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static void main(String args[]) {
if(!outputFile.getParentFile().exists()) {
if(!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
Expand Down
2 changes: 1 addition & 1 deletion examples/jib/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/kaniko-local/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example: kaniko-local
### Example: kaniko

This is an example demonstrating:

Expand Down
4 changes: 1 addition & 3 deletions examples/kaniko-local/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
- image: skaffold-example
kaniko:
buildContext:
localDir: {}
cache: {}
cluster:
pullSecretName: e2esecret
Expand Down
4 changes: 2 additions & 2 deletions examples/kaniko/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This is an example demonstrating:
* **tagging** using the default tagPolicy (`gitCommit`)
* **deploying** a single container pod using `kubectl`

### GCP
### GCP

If you are on GCP, create a [Service Account](https://cloud.google.com/iam/docs/understanding-service-accounts) for Kaniko that has permissions to pull and push images to gcr.io. If your build context uses a `gcsBucket` the service account must also have read and write permissions for the bucket.
If you are on GCP, create a [Service Account](https://cloud.google.com/iam/docs/understanding-service-accounts) for Kaniko that has permissions to pull and push images from/to `gcr.io`.

Download the json service account file, rename the file to `kaniko-secret` (do not append .json to the filename) and create a Kubernetes secret using the following example:

Expand Down
4 changes: 1 addition & 3 deletions examples/kaniko/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
- image: skaffold-example
kaniko:
buildContext:
gcsBucket: skaffold-kaniko
cache: {}
cluster:
pullSecretName: e2esecret
Expand Down
2 changes: 1 addition & 1 deletion examples/kustomize/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
deploy:
kustomize: {}
2 changes: 1 addition & 1 deletion examples/microservices/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/profile-patches/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
# only build and deploy "base-service" on main profile
Expand Down
2 changes: 1 addition & 1 deletion examples/profiles/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
# only build and deploy "world-service" on main profile
Expand Down
2 changes: 1 addition & 1 deletion examples/react-reload/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/structure-tests/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion examples/tagging-with-environment-variables/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2alpha1
apiVersion: skaffold/v2alpha2
kind: Config
build:
artifacts:
Expand Down
2 changes: 1 addition & 1 deletion pkg/skaffold/schema/latest/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/schema/util"
)

// This config version is not yet released, it is SAFE TO MODIFY the structs in this file.
// !!! WARNING !!! This config version is already released, please DO NOT MODIFY the structs in this file.
const Version string = "skaffold/v2alpha2"

// NewSkaffoldConfig creates a SkaffoldConfig
Expand Down

0 comments on commit 80f82f4

Please sign in to comment.