devops26 icon indicating copy to clipboard operation
devops26 copied to clipboard

skaffold in a DevPod

Open vfarcic opened this issue 6 years ago • 2 comments

In my case, the issue with DevPod is before the part you modified in the latest PR @joostvdg . When I execute the command that follows...

export UUID=$(uuidgen)

skaffold run --profile dev

The output is:

WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] config version (skaffold/v1beta2) out of date: upgrading to latest (skaffold/v1beta11)
FATA[0000] creating runner: invalid skaffold config: required value not set: image

Is that not happening in your case? If it isn't, the issue might be only with me and that would be good news.

vfarcic avatar Aug 09 '19 15:08 vfarcic

I only got:

WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.

And

WARN[0000] config version (skaffold/v1beta2) out of date: upgrading to latest (skaffold/v1beta11)

I will do another round trip through the chapter.

joostvdg avatar Aug 10 '19 15:08 joostvdg

Started from scratch, copying the commands from:

  • https://github.com/vfarcic/devops26/blob/master/manuscript/scripts/gke/gke-jx.sh
  • https://github.com/vfarcic/devops26/blob/master/manuscript/07-dev.md

This is what I get:

[root@joostvdg-go go-demo-6]# export UUID=$(uuidgen)
[root@joostvdg-go go-demo-6]#
[root@joostvdg-go go-demo-6]# skaffold run --profile dev
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] Using SKAFFOLD_DEPLOY_NAMESPACE env variable is deprecated. Please use SKAFFOLD_NAMESPACE instead.
WARN[0000] config version (skaffold/v1beta2) out of date: upgrading to latest (skaffold/v1beta11)
Generating tags...
 - vfarcic/go-demo-6 -> 10.0.8.24:5000/vfarcic/go-demo-6:463882cb-d3b2-4073-8726-c169b10eed9d

Are you sure you used an up-to-date go-demo-6 with the pull + merge from the buildpack branch?

In the master branch, the skaffold.yaml contains the default image name which is invalid:

apiVersion: skaffold/v1beta2
kind: Config
build:
  artifacts:
  - image: changeme
    context: .
    docker: {}

That might be what you saw?

joostvdg avatar Aug 10 '19 22:08 joostvdg