Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

urunc-cleanup: unnecessary k3s volume mount and redundant label removal in reset path

Abierto Apto para principiantes
#993 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
88/100
Tipo de issue
Refactorización
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
kubernetes, shell

Línea de trabajo

Compara deployment/urunc-deploy/urunc-cleanup/overlays/k3s/mount_k3s_conf.yaml con el overlay de k3s de urunc-deploy y, después, sigue el caso reset en deployment/urunc-deploy/scripts/install.sh. Confirma que la ruta de reset solo usa kubectl y nsenter, y verifica que kubectl kustomize produzca el overlay de cleanup esperado sin el mount innecesario ni la operación de etiquetado duplicada.

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

Descripción

Description

The urunc-cleanup DaemonSet's k3s overlay mounts the host's containerd config directory (/var/lib/rancher/k3s/agent/etc/containerd/) into the cleanup pod. However, the reset code path in install.sh — which is the only action the cleanup pod runs — never accesses any files under /etc/containerd/. It only uses kubectl API calls and nsenter syscalls to restart the CRI runtime.

The volume mount was copied from the urunc-deploy k3s overlay, where it is needed for the install and cleanup code paths that modify containerd configuration via tomlq.

Additionally, the reset case block at line 395 in install.sh calls kubectl label node "$NODE_NAME" urunc.io/urunc-runtime- and then calls reset_runtime(), which internally runs the exact same kubectl label command again at line 308. This second call is redundant and produces a warning.

System info

  • Urunc version: main branch (HEAD)
  • Arch: N/A (deployment manifests / shell script)
  • VMM: N/A
  • Unikernel: N/A

Steps to reproduce

  1. Trace the reset code path in deployment/urunc-deploy/scripts/install.sh: main("reset") → reset_runtime() → restart_cri_runtime() → wait_till_node_is_ready(). No filesystem I/O on /etc/containerd/.
  2. Compare urunc-cleanup/overlays/k3s/mount_k3s_conf.yaml with urunc-deploy/overlays/k3s/mount_k3s_conf.yaml — the cleanup version adds a volume mount that the reset path never uses.
  3. Run kubectl kustomize deployment/urunc-deploy/urunc-cleanup/overlays/k3s/ with and without the patch — output is functionally identical for the reset use case.
  4. For the redundant label: line 395 and line 308 both run kubectl label node "$NODE_NAME" urunc.io/urunc-runtime-.

LLM usage

An LLM (Google Antigravity / Claude Opus 4.6) was used to assist with code path analysis and tracing. All findings were independently verified by reading the source code.

Lenguaje dominante
Go
Estrellas
298
Forks
205
Merge medio
2 d 18 h
PR fusionados (30 d)
27

Preparar el entorno

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 urunc-dev/urunc

Todos los issues de urunc-dev/urunc

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.