Skip to content

Instantly share code, notes, and snippets.

@viglesiasce
Last active November 5, 2020 19:20
Show Gist options
  • Save viglesiasce/eafcff8ba51193ce2a6a722b0bf4075c to your computer and use it in GitHub Desktop.
Save viglesiasce/eafcff8ba51193ce2a6a722b0bf4075c to your computer and use it in GitHub Desktop.
Use skaffold to run a test command in the cluster
apiVersion: skaffold/v2beta9
kind: Config
build:
artifacts:
- image: skaffold-example
test:
- image: skaffold-example
structureTests:
- ./test/*
# Image is required to know when we need to rebuild these (?)
- image: skaffold-example
clusterCommand:
testImage: library/golang:1.12
command: go test
cwd: /src/app
sync:
auto: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment