-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump examples/* to apiVersion: skaffold/v3 (#7970)
- Loading branch information
1 parent
6c50b2a
commit 2f9785d
Showing
83 changed files
with
1,338 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
- image: skaffold-buildpacks-node | ||
buildpacks: | ||
builder: "gcr.io/buildpacks/builder:v1" | ||
trustBuilder: true | ||
buildpacks: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
- image: skaffold-example | ||
deploy: | ||
kubectl: | ||
manifests: | ||
- k8s-* | ||
context: . | ||
docker: | ||
dockerfile: Dockerfile | ||
noCache: true | ||
tagPolicy: | ||
gitCommit: {} | ||
local: | ||
concurrency: 1 | ||
manifests: | ||
rawYaml: | ||
- k8s-* | ||
profiles: | ||
- name: cloudbuild | ||
build: | ||
googleCloudBuild: {} | ||
googleCloudBuild: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/GoogleContainerTools/skaffold/examples/custom-buildx | ||
|
||
go 1.19 | ||
go 1.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
- image: ko://github.com/GoogleContainerTools/skaffold/examples/custom | ||
- image: github.com/googlecontainertools/skaffold/examples/custom | ||
custom: | ||
buildCommand: ./build.sh | ||
dependencies: | ||
paths: | ||
- "**/*.go" | ||
- go.mod | ||
- .ko.yaml | ||
- "go.mod" | ||
- "**.go" | ||
tagPolicy: | ||
sha256: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
local: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
googleCloudBuild: | ||
# Change `k8s-skaffold` with your PROJECT_ID | ||
projectId: k8s-skaffold | ||
artifacts: | ||
- image: skaffold-example | ||
kaniko: | ||
cache: {} | ||
deploy: | ||
kubectl: | ||
manifests: | ||
- k8s-* | ||
manifests: | ||
rawYaml: | ||
- k8s-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
- image: pipeline-example | ||
deploy: | ||
kubectl: | ||
manifests: | ||
- k8s-* | ||
manifests: | ||
rawYaml: | ||
- k8s-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
- image: skaffold-example | ||
deploy: | ||
kubectl: | ||
manifests: | ||
- k8s-* | ||
manifests: | ||
rawYaml: | ||
- k8s-pod.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
googleCloudBuild: | ||
# Change `k8s-skaffold` with your PROJECT_ID | ||
projectId: k8s-skaffold | ||
artifacts: | ||
- image: skaffold-example | ||
deploy: | ||
kubectl: | ||
manifests: | ||
- k8s-* | ||
manifests: | ||
rawYaml: | ||
- k8s-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
deploy: | ||
helm: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: skaffold/v2beta29 | ||
apiVersion: skaffold/v3 | ||
kind: Config | ||
build: | ||
artifacts: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
### Example: inferred file sync using the ko builder | ||
|
||
This example uses | ||
[inferred file sync](https://skaffold.dev/docs/pipeline-stages/filesync/#inferred-sync-mode) | ||
for static assets with the | ||
[`ko` builder](https://skaffold.dev/docs/pipeline-stages/builders/ko/) | ||
for a Go web app. | ||
|
||
To observe the behavior of file sync, run this command: | ||
|
||
```shell | ||
skaffold dev | ||
``` | ||
|
||
Try changing the HTML file in the `kodata` directory to see how Skaffold | ||
syncs the file. | ||
|
||
If change the the `main.go` file, Skaffold will rebuild and redeploy the image. |
Oops, something went wrong.