Interface for handling PVCs in the kube method

Aperta
#152 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
go, kubernetes

Direzione di ricerca

Inizia tracciando i punti di ingresso kubePlay() e kubeDown() per le specifiche PVC e i volumi Podman corrispondenti. Determina i controlli previsti per l’eliminazione e la ricreazione, quindi verifica che l’applicazione e l’eliminazione di uno YAML contenente un PVC e un pod producano il ciclo di vita documentato del volume senza lasciare un volume in conflitto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Currently, it seems Podman supports the creation of PVCs, through Podman volumes, so if a container in a pod mounts a PVC, Podman will mount a Podman volume onto that container.

Using kubePlay() on a YAML containing a PVC spec should therefore create a Podman volume in the background, but I've observed that kubeDown(), doesn't actually do anything to PVCs specified in a YAML that is passed to it. So if I have a YAML that defines a PVC and a POD, on deletion the POD will get taken down, but nothing will happen to the PVC, so if I try to apply that same YAML again after having deleted it, I get an error saying that a volume already exists, since the original volume never got deleted. This behaviour sort of makes sense, Podman does not want to accidentally delete volumes because the whole point is to persist data, and that requires the volumes to never be deleted I guess.

There is also the issue of letting users tell Harpoon when they want to recreate the volume, there is currently no way for users to do that at the moment.

This would be worth it to look into if we want to clarify/enhance the use of PVCs with the kube method.

Lingua principale
Go
Stelle
178
Fork
25
Merge medio
1g 2h
PR unite (30g)
2

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di containers/fetchit

Tutte le issue di containers/fetchit

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.