Skip to content

Commit 22cfab7

Browse files
authored
release: v1.34.0 (#6770)
1 parent df1f5d4 commit 22cfab7

File tree

53 files changed

+184
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+184
-113
lines changed

CHANGELOG.md

+56
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,59 @@
1+
# v1.34.0 Release - 10/26/2021
2+
**Linux**
3+
`curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v1.34.0/skaffold-linux-amd64 && chmod +x skaffold && sudo mv skaffold /usr/local/bin`
4+
5+
**macOS**
6+
`curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v1.34.0/skaffold-darwin-amd64 && chmod +x skaffold && sudo mv skaffold /usr/local/bin`
7+
8+
**Windows**
9+
https://storage.googleapis.com/skaffold/releases/v1.34.0/skaffold-windows-amd64.exe
10+
11+
**Docker image**
12+
`gcr.io/k8s-skaffold/skaffold:v1.34.0`
13+
14+
Note: This release comes with a new config version, `v2beta25`. To upgrade your skaffold.yaml, use `skaffold fix`. If you choose not to upgrade, skaffold will auto-upgrade as best as it can.
15+
16+
Highlights:
17+
* `skaffold deploy`, `skaffold render` and `skaffold test` now support the `--images` flag for providing a list of images to run against.
18+
* The `--images` flag now supports `NAME=TAG` pairs.
19+
20+
New Features and Additions:
21+
* feat: trap SIGUSR1 to dump current stacktrace [#6751](https://github.com/GoogleContainerTools/skaffold/pull/6751)
22+
* feat: skaffold lint core logic, CLI command+flags, and MVP skaffold.yaml support [#6715](https://github.com/GoogleContainerTools/skaffold/pull/6715)
23+
24+
Fixes:
25+
* fix: fix non-determinism in skaffoldyamls_test.go [#6757](https://github.com/GoogleContainerTools/skaffold/pull/6757)
26+
* fix: use new stringslice lib [#6752](https://github.com/GoogleContainerTools/skaffold/pull/6752)
27+
* fix: correctly rewrite debug container entrypoint and bind host port [#6682](https://github.com/GoogleContainerTools/skaffold/pull/6682)
28+
* Fix new version generation [#6616](https://github.com/GoogleContainerTools/skaffold/pull/6616)
29+
* fix: panic caused by multiple channel closes [#6714](https://github.com/GoogleContainerTools/skaffold/pull/6714)
30+
* fix: sanity check kpt deployer versions [#6711](https://github.com/GoogleContainerTools/skaffold/pull/6711)
31+
32+
Updates and Refactors:
33+
* refactor: move some of `pkg/skaffold/util` into into packages [#6731](https://github.com/GoogleContainerTools/skaffold/pull/6731)
34+
35+
Docs, Test, and Release Updates:
36+
* doc: update CI-CD article to decouple `render` and `deploy` use from GitOps [#6750](https://github.com/GoogleContainerTools/skaffold/pull/6750)
37+
* chore: update image dependencies [#6736](https://github.com/GoogleContainerTools/skaffold/pull/6736)
38+
* chore: use ad-hoc signing on darwin to avoid network popups [#6738](https://github.com/GoogleContainerTools/skaffold/pull/6738)
39+
* chore: add cluster type to the instrumentation meter [#6734](https://github.com/GoogleContainerTools/skaffold/pull/6734)
40+
* chore: Update globstar syntax in examples dependencies [#6614](https://github.com/GoogleContainerTools/skaffold/pull/6614)
41+
* docs: add Cloud Code install instructions [#6716](https://github.com/GoogleContainerTools/skaffold/pull/6716)
42+
43+
Huge thanks goes out to all of our contributors for this release:
44+
45+
- Aaron Prindle
46+
- Brian de Alwis
47+
- Conor A. Callahan
48+
- Dave Dorbin
49+
- Gaurav
50+
- Halvard Skogsrud
51+
- Marlon Gamez
52+
- Mike Verbanic
53+
- Nick Kubala
54+
- Tejal Desai
55+
- Yuwen Ma
56+
157
# v1.33.0 Release - 10/07/2021
258
**Linux**
359
`curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v1.33.0/skaffold-linux-amd64 && chmod +x skaffold && sudo mv skaffold /usr/local/bin`

examples/bazel/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/buildpacks-java/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/buildpacks-node/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/buildpacks-python/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/buildpacks/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/custom-buildx/skaffold.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
3-
43
build:
54
artifacts:
65
- image: skaffold-examples-buildx
76
custom:
87
buildCommand: sh buildx.sh
98
dependencies:
10-
paths: ["go.mod", "**.go", "buildx.sh"]
9+
paths:
10+
- "**/*.go"
11+
- buildx.sh
12+
- go.mod
1113
tagPolicy:
1214
sha256: {}

examples/custom-tests/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/custom/.ko.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
defaultBaseImage: gcr.io/distroless/static:nonroot

examples/custom/README.md

+31-23
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,45 @@ This tutorial will demonstrate how Skaffold can build a simple Hello World Go ap
2020

2121
First, clone the Skaffold [repo](https://github.com/GoogleContainerTools/skaffold) and navigate to the [custom example](https://github.com/GoogleContainerTools/skaffold/tree/main/examples/custom) for sample code:
2222

23-
```shell
24-
$ git clone https://github.com/GoogleContainerTools/skaffold
25-
$ cd skaffold/examples/custom
23+
```sh
24+
git clone https://github.com/GoogleContainerTools/skaffold.git
25+
```
26+
```sh
27+
cd skaffold/examples/custom
2628
```
2729

2830
Take a look at the `build.sh` file, which uses `ko` to containerize source code:
2931

30-
```shell
31-
$ cat build.sh
32+
[embedmd]:# (build.sh bash)
33+
```bash
3234
#!/usr/bin/env bash
3335
set -e
36+
set -x
3437

35-
if ! [ -x "$(command -v ko)" ]; then
38+
if ! [ -x "$(go env GOPATH)/bin/ko" ]; then
3639
pushd $(mktemp -d)
37-
go mod init tmp; GOFLAGS= go get github.com/google/ko/cmd/[email protected]
40+
curl -L https://github.com/google/ko/archive/v0.9.3.tar.gz | tar --strip-components 1 -zx
41+
go build -o $(go env GOPATH)/bin/ko .
3842
popd
3943
fi
4044

41-
output=$(ko publish --local --preserve-import-paths --tags= . | tee)
42-
ref=$(echo $output | tail -n1)
45+
output=$($(go env GOPATH)/bin/ko publish --local --preserve-import-paths --tags= . | tee)
46+
ref=$(echo "$output" | tail -n1)
4347

44-
docker tag $ref $IMAGE
45-
if $PUSH_IMAGE; then
46-
docker push $IMAGE
48+
docker tag "$ref" "$IMAGE"
49+
if [[ "${PUSH_IMAGE}" == "true" ]]; then
50+
echo "Pushing $IMAGE"
51+
docker push "$IMAGE"
52+
else
53+
echo "Not pushing $IMAGE"
4754
fi
4855
```
4956

5057
and the skaffold config, which configures image `ko://github.com/GoogleContainerTools/skaffold/examples/custom` to build with `build.sh`:
5158

59+
[embedmd]:# (skaffold.yaml yaml)
5260
```yaml
53-
$ cat skaffold.yaml
54-
apiVersion: skaffold/v2beta9
61+
apiVersion: skaffold/v2beta24
5562
kind: Config
5663
build:
5764
artifacts:
@@ -60,32 +67,33 @@ build:
6067
buildCommand: ./build.sh
6168
dependencies:
6269
paths:
63-
- "go.mod"
64-
- "**.go"
70+
- "**/*.go"
71+
- go.mod
72+
- .ko.yaml
6573
tagPolicy:
6674
sha256: {}
6775
```
6876
6977
The `k8s/pod.yaml` manifest file uses the same image reference:
7078

79+
[embedmd]:# (k8s/pod.yaml yaml)
7180
```yaml
72-
$ cat k8s/pod.yaml
7381
apiVersion: v1
7482
kind: Pod
7583
metadata:
76-
name: getting-started
84+
name: getting-started-custom
7785
spec:
7886
containers:
79-
- name: getting-started
87+
- name: getting-started-custom
8088
image: ko://github.com/GoogleContainerTools/skaffold/examples/custom
8189
```
8290

8391
For more information about how this works, see the Skaffold custom builder [documentation](https://skaffold.dev/docs/how-tos/builders/#custom-build-script-run-locally).
8492

8593
Now, use Skaffold to deploy this application to your Kubernetes cluster:
8694

87-
```shell
88-
$ skaffold run --tail --default-repo <your repo>
95+
```sh
96+
skaffold run --tail --default-repo <your repo>
8997
```
9098

9199
With this command, Skaffold will build the `github.com/googlecontainertools/skaffold/examples/custom` artifact with ko and deploy the application to Kubernetes.
@@ -95,6 +103,6 @@ You should be able to see *Hello, World!* printed every second in the Skaffold l
95103

96104
To clean up your Kubernetes cluster, run:
97105

98-
```shell
99-
$ skaffold delete
106+
```sh
107+
skaffold delete
100108
```

examples/custom/build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env bash
22
set -e
3+
set -x
34

45
if ! [ -x "$(go env GOPATH)/bin/ko" ]; then
56
pushd $(mktemp -d)
6-
curl -L https://github.com/google/ko/archive/v0.8.3.tar.gz | tar --strip-components 1 -zx
7+
curl -L https://github.com/google/ko/archive/v0.9.3.tar.gz | tar --strip-components 1 -zx
78
go build -o $(go env GOPATH)/bin/ko .
89
popd
910
fi

examples/custom/skaffold.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:
@@ -7,7 +7,8 @@ build:
77
buildCommand: ./build.sh
88
dependencies:
99
paths:
10-
- "go.mod"
11-
- "**.go"
10+
- "**/*.go"
11+
- go.mod
12+
- .ko.yaml
1213
tagPolicy:
1314
sha256: {}

examples/dev-journey-buildpacks/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/docker-deploy/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
local:

examples/gcb-kaniko/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
googleCloudBuild:

examples/generate-pipeline/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/getting-started-kustomize/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
metadata:
44
name: getting-started-kustomize

examples/getting-started/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/google-cloud-build/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
googleCloudBuild:

examples/helm-deployment-dependencies/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
tagPolicy:

examples/helm-deployment/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/helm-remote-repo/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
deploy:
44
helm:

examples/hot-reload/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/jib-gradle/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/jib-multimodule/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/jib-sync/skaffold-gradle.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/jib-sync/skaffold-maven.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/jib/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/kaniko/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/kustomize/skaffold-kustomize-args.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
deploy:
44
kustomize:

examples/kustomize/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
deploy:
44
kustomize: {}

examples/lifecycle-hooks/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/microservices/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/multi-config-microservices/base/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
build:
44
artifacts:

examples/multi-config-microservices/leeroy-app/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
metadata:
44
name: app-config

examples/multi-config-microservices/leeroy-web/skaffold.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: skaffold/v2beta24
1+
apiVersion: skaffold/v2beta25
22
kind: Config
33
metadata:
44
name: web-config

0 commit comments

Comments
 (0)