1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-08 14:55:35 +00:00
krust/tests/testdata/resolve_basic.txt
Jason Hall 1ed99cbe07 implement resolve and apply
Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-10-15 14:46:18 -04:00

32 lines
624 B
Text

# Test basic resolve with single YAML file and single krust:// reference
-- Cargo.toml --
[package]
name = "test-app"
version = "0.1.0"
edition = "2021"
[dependencies]
-- src/main.rs --
fn main() {
println!("Hello from test-app!");
}
-- deployment.yaml --
apiVersion: v1
kind: Pod
metadata:
name: test-pod
spec:
containers:
- name: app
image: krust://.
# Resolve should build and replace reference
env KRUST_REPO=ttl.sh/test
exec ./krust resolve -f deployment.yaml
stdout 'ttl.sh/test/test-app@sha256:'
! stdout 'krust://'
stderr 'Found 1 unique krust:// reference'
stderr 'Building image for: krust://.'