← Back to issue list

docs: add tutorial for testing a k8s charm

View original Github issue

Metadata

Project
charmcraft
Number
#2477
Type
issue
State
open
Author
sed-i
Labels
Type: Documentation
Created
2025-10-30 08:35:05+00:00
Updated
2025-12-02 15:46:13+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

*Please describe the question or issue you're facing with "test - Charmcraft 4.0.1 documentation".* For running tests with spread, it seems like we mainly have two options: - [zinc-k8s example](https://github.com/jnsgruk/zinc-k8s-operator/blob/main/spread.yaml): - custom ("adhoc") lxd backend with concierge installing k8s, juju + [cloud-config](https://github.com/jnsgruk/zinc-k8s-operator/blob/8569d92152f40e2a79ff88cad30061671a513843/tests/spread/cloud-config.yaml#L7) - custom ("adhoc") backend that lets spread "ssh into itself" ([mysql example](https://github.com/canonical/mysql-k8s-operator/blob/1c13d0850919d9565281a506afb05839a4ce31d5/spread.yaml#L67)). This approach is actually useful for running itest locally during dev. Official guidance on how to test (k8s) charm with spread would be extremely valuable. --- *Reported from: https://documentation.ubuntu.com/charmcraft/stable/reference/commands/test/*

Evaluation history

No evaluation history available.