Skip to content

Instantly share code, notes, and snippets.

@mattpolzin
Created May 25, 2023 23:34
Show Gist options
  • Save mattpolzin/a150decd458079786951c4c557be7082 to your computer and use it in GitHub Desktop.
Save mattpolzin/a150decd458079786951c4c557be7082 to your computer and use it in GitHub Desktop.
Garden Bonsai PVC error minimal reproduction
~/staging/tmp (main) $ garden validate
Validate ✔️
Garden v0.13 (Bonsai) is a major release with significant changes. Please help us improve it by reporting any issues/bugs here:
https://go.garden.io/report-bonsai
→ Run garden util hide-warning 0.13-bonsai to disable this warning.
ℹ garden → Running in Garden environment dev.dev-mattpolzin
ℹ providers → Getting status...
✔ providers → Cached (took 1.8 sec)
ℹ providers → Run with --force-refresh to force a refresh of provider statuses.
ℹ graph → Resolving actions and modules...
✔ graph → Done (took 0.7 sec)
✖ build.minimal → An internal error occurred while resolving status for resolve Build type=container name=minimal (from module minimal). Here is the output:
────────────────────────────────────────────────────────────────────────────────
Could not find Build action minimal-tmp-volumeclaim.
────────────────────────────────────────────────────────────────────────────────
✖ deploy.minimal → An internal error occurred while resolving status for resolve Deploy type=container name=minimal (from module minimal). Here is the output:
────────────────────────────────────────────────────────────────────────────────
Could not find Build action minimal-tmp-volumeclaim.
────────────────────────────────────────────────────────────────────────────────
✖ build.minimal → An internal error occurred while resolving status for resolve Build type=container name=minimal (from module minimal). Here is the output:
────────────────────────────────────────────────────────────────────────────────
Could not find Build action minimal-tmp-volumeclaim.
────────────────────────────────────────────────────────────────────────────────
✖ deploy.minimal → An internal error occurred while resolving status for resolve Deploy type=container name=minimal (from module minimal). Here is the output:
────────────────────────────────────────────────────────────────────────────────
Could not find Build action minimal-tmp-volumeclaim.
────────────────────────────────────────────────────────────────────────────────
/snapshot/project/tmp/pkg/cli/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
GraphError: Could not find Build action minimal-tmp-volumeclaim.
at MutableConfigGraph.getActionByKind (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/graph/config-graph.ts:183:13)
at MutableConfigGraph.getActionByRef (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/graph/config-graph.ts:172:30)
at /snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/actions/base.ts:510:33
at Array.forEach (<anonymous>)
at BuildAction.getFullVersion (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/actions/base.ts:509:23)
at BuildAction.<anonymous> (/snapshot/project/tmp/pkg/cli/node_modules/typescript-memoize/src/memoize-decorator.ts:123:36)
at BuildAction.getFullVersion (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/actions/build.ts:165:33)
at BuildAction.<anonymous> (/snapshot/project/tmp/pkg/cli/node_modules/typescript-memoize/src/memoize-decorator.ts:123:36)
at BuildAction.versionString (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/actions/base.ts:571:17)
at wrapped.getInputVersion (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/tasks/base.ts:240:24)
at wrapped.complete (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/graph/nodes.ts:122:31)
at wrapped (/snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/util/profiling.ts:154:39)
at /snapshot/project/tmp/pkg/cli/node_modules/@garden-io/core/src/graph/solver.ts:346:18 {
detail: {
available: {
Build: [ 'minimal' ],
Deploy: [ 'minimal-tmp-volumeclaim', 'tmp', 'tmp-admin', 'minimal' ],
Run: [],
Test: []
}
},
wrappedError: undefined,
type: 'graph'
}
Node.js v18.1.0
kind: Module
name: minimal-tmp-volumeclaim
type: persistentvolumeclaim
include: []
spec:
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 1Gi
---
kind: Module
name: minimal
description: RoR Monolith
type: container
image: registry/minimal
dockerfile: packages/minimal/Dockerfile.dev
build:
timeout: 2400
services:
- name: minimal
memory:
min: 512
max: 2048
cpu:
min: 100
max: 1500
volumes:
- name: tmp
module: minimal-tmp-volumeclaim
containerPath: /minimal
ports:
- name: http
containerPort: 3000
servicePort: 3000
localPort: 3000
apiVersion: garden.io/v1
kind: Project
name: minimal
dotIgnoreFile: .gardenignore
defaultEnvironment: dev
proxy:
hostname: 127.0.0.1
environments:
- name: dev
defaultNamespace: dev-${local.username}
providers:
#
# Running Opal Platform on remote cluster:
#
- name: kubernetes
environments:
- dev
context: some-context
buildMode: kaniko
resources:
builder:
requests:
cpu: 1000
memory: 1024
limits:
cpu: 5000
memory: 8192
kaniko:
namespace: null # <--- use the project namespace for builds
deploymentRegistry:
hostname: dev-registry.website.com
namespace: dev
imagePullSecrets:
- name: dev-image-registry-credential
namespace: dev-shared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment