-
Notifications
You must be signed in to change notification settings - Fork 334
Build with aws-ecr-pull requiring docker.AccessInfo due to no registry stanza with remote runner #4896
Description
Describe the bug
Have had this working previously (unsure how to replicate) with a Runner on the same EKS cluster as the Server, but am running into an issue trying to build
using the aws-ecr-pull
plugin whereby it will not work without a registry
stanza, which from documentation should not be required since the image is never being built or pushed?
#3396 shows an example with no registry stanza. But not including it results in
» Building test...
✓ Running build v2
! There was an error while executing a Waypoint plugin for this operation!
One or more required arguments for the plugin was not satisfied. This is usually
due to a missing or incompatible set of plugins. For example, only certain build
plugins are only compatible with certain registries, and so on. Please inspect
the missing argument, the set of plugins you are using, and the documentation to
determine if your plugin combination is valid.
Plugin function:
github.com/hashicorp/waypoint/builtin/aws/ecr/pull.(*Builder).BuildODR-fm
==> Missing arguments:
- docker.AccessInfo
Steps to Reproduce
waypoint.hcl
project = "examples"
variable "tag" {
type = string
description = "Git tag"
}
app "test" {
runner {
profile = "kubernetes-${workspace.name}"
}
build {
use "aws-ecr-pull" {
region = "us-east-1"
repository = "test"
tag = var.tag
disable_entrypoint = true
}
}
deploy {
use "helm" {
name = app.name
chart = "${path.app}/chart"
set {
name = "environment"
value = "${workspace.name}"
}
set {
name = "image.tag"
value = var.tag
}
}
}
}
Expected behavior
Build should work without a registry stanza, or it should be possible to supply a null
registry stanza as per comment #3328 (comment)
Waypoint Platform Versions
- Waypoint CLI Version: v0.11.0 (e92d6fb)
- Waypoint Server Platform and Version: v0.11.3 (Kubernetes on EKS)
- Waypoint Plugin:
aws-ecr-pull
Additional context
Failing command is waypoint up -w=development -var=tag=0.0.7 -p=examples -local=false
(same error happens when running for Production)
Runners are configured using an On-Demand Runner installed on the control cluster using Helm, and Development and Production Runners installed using waypoint runner install
$ waypoint runner list
ID | STATE | KIND | LABELS | LAST REGISTERED
-----------------------------+------------+--------+--------------------------+------------------
production | adopted | remote | environment:production | 28 minutes ago
development | adopted | remote | environment:development | 29 minutes ago
DVJLFQLAOERHBUBGTAQTXRZYFU | preadopted | remote | | 16 minutes ago
$ waypoint runner profile list
Runner profiles
NAME | PLUGIN TYPE | OCI URL | TARGET RUNNER | DEFAULT
-----------------------------+-------------+-----------------------------------------+--------------------------------+----------
DVJLFQLAOERHBUBGTAQTXRZYFU | kubernetes | docker.io/hashicorp/waypoint-odr:0.11.3 | * | yes
kubernetes-development | kubernetes | hashicorp/waypoint-odr:latest | labels: |
| | | {"environment":"development"} |
kubernetes-production | kubernetes | hashicorp/waypoint-odr:latest | labels: |
| | | {"environment":"production"} |