docs(upgrading): init --update overwrites values.yaml and shows no diff
Una pull request collegata è già stata integrata.
- #259 di @lexfrei — integrata
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- documentation
Direzione di ricerca
Inizia da docs/operations/upgrading.md alle righe citate e confronta le sue affermazioni con il comportamento di v0.35.0 collegato in pkg/commands/init.go. L’issue identifica come piccola correzione l’aggiornamento delle tre affermazioni affinché corrispondano al comportamento attuale; il lavoro è terminato quando la guida non promette più che values.yaml rimanga invariato, che venga mostrato un diff visibile o che la versione di Chart.yaml venga preservata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The upgrading guide promises a safer update than the code delivers. Three statements in docs/operations/upgrading.md don't match what talm init --update does in v0.35.0, and one of them hides a silent config loss.
- Line 27 says "Your
values.yaml, secrets, and node files are left untouched." The cozystack preset shipsvalues.yaml, and step 2 ofupdateTalmLibraryChartsends every preset file throughupdateFileWithConfirmation, so accepting the prompt or passing--forceresets it. An emptiedendpointfails the next render. An emptiedfloatingIPfails nothing, and the config comes out with no VIP. - Lines 71 and 74 promise an interactive diff that lets you merge what you want. The prompt is
File %s differs from template. Overwrite? [y/N]and nothing else. No diff is shown, and the choice is the whole file or nothing. - Line 57 says
--updaterewritesChart.yaml"keeping onlynameandversion". Onlynameis read from the existing file.versionis filled fromConfig.InitOptions.Version, which is the talm binary's own version.
The code is the same at v0.35.0 and on main. I reproduced all three with talm built from the v0.35.0 tag, running talm init --update --preset cozystack --force on a customised project: values.yaml came back with endpoint, floatingIP and advertisedSubnets at preset defaults, an edited templates/controlplane.yaml was reverted, and Chart.yaml came back with the binary's version.
Either the page or the code has to move. Correcting the three sentences is the small fix. If the documented behaviour is the intended one, --update should show the diff before asking and leave values.yaml alone, and that is a code change. cozystack/website#703 documents what the code does today, so until one side moves the two disagree.
- Lingua principale
- Go
- Stelle
- 493
- Fork
- 23
- Merge medio
- 4g 8h
- PR unite (30g)
- 4
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cozystack/talm
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
TestCommittedTextFilesIgnoresUntrackedArtefacts commits into the real repo when GIT_DIR is setAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 70/100
-
area/apply area/commands area/upgrade kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Tutte le issue di cozystack/talm
Issue simili
-
native
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
prime-radiant-inc/evener#4839 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
521xueweihan/HelloGitHub#4073 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
goharbor/terraform-provider-harbor#655 · 1 commento ·
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
syncthing/syncthing#10935 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno