Interface for handling PVCs in the kube method

Ouverte
#152 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
30/100
Type d'issue
Fonctionnalité
Clarté
À clarifier
Activité
À l'abandon
Stack technique
go, kubernetes

Piste de recherche

Commencez par suivre les points d’entrée kubePlay() et kubeDown() pour les spécifications de PVC et les volumes Podman correspondants. Déterminez les contrôles prévus pour la suppression et la recréation, puis vérifiez que l’application et la suppression d’un YAML contenant un PVC et un pod produisent le cycle de vie documenté du volume sans laisser de volume en conflit.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Go
Étoiles
178
Forks
25
Merge moyen
1 j 2 h
PR mergées (30 j)
2

Préparer son environnement

  • Fournit un Dockerfile ou un fichier Docker Compose
  • Aucun modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de containers/fetchit

Toutes les issues de containers/fetchit

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.