Interface for handling PVCs in the kube method

Abierto
#152 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
go, kubernetes

Línea de trabajo

Comienza rastreando los puntos de entrada kubePlay() y kubeDown() para las especificaciones de PVC y sus volúmenes de Podman correspondientes. Determina los controles previstos de eliminación y recreación, y luego verifica que aplicar y eliminar un YAML que contenga un PVC y un pod produzca el ciclo de vida del volumen documentado sin dejar un volumen en conflicto.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
178
Forks
25
Merge medio
1 d 2 h
PR fusionados (30 d)
2

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de containers/fetchit

Todos los issues de containers/fetchit

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.