Specify individual manifest paths for workflow
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia dal percorso del comando generate-workflow e traccia come vengono gestiti --destination, --variable e la convalida del manifest. Verifica il comportamento con più percorsi di manifest al di fuori di una directory destination/manifests, inclusa la posizione del workflow. Il lavoro è completato quando i manifest singoli vengono accettati e viene generato il workflow previsto senza richiedere la struttura di directory predefinita.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
When using Automated Deployments in the Azure Portal, I can select manifest files (e.g. deployment.yaml, service.yaml) individually (and they can be located anywhere in my repository). Draft is more limited, because it expects:
- A
manifestsdirectory under the destination, containingdeployment.yamlandservice.yaml. - The destination to be the repository root (the folder that contains
.github).
This means it doesn't easily support repositories containing more than one service, or project structures which don't conform to the folder structure generated by draft create.
We can almost manage individual file selection like this:
draft generate-workflow \
--branch main \
--build-context-path ./src/order-service \
--cluster-name testcluster \
--container-name order-service \
--deploy-type manifests \
--destination ./src/order-service \
--registry-name testacr \
--resource-group test-rg \
--variable DEPLOYMENTMANIFESTPATH=./src/order-service/manifests/deployment.yaml\n./src/order-service/manifests/service.yaml \
--variable BUILDCONTEXTPATH=./src/order-service
(I believe the Azure/k8s-deploy GitHub action supports newline-separated manifest paths, because that's what Automated Deployments generates.)
But this approach:
- Fails if there is no
manifestsdirectory under the destination - Nests the workflow file under the
./src/order-service
Describe the solution you'd like
It would be great if Draft could:
- support specifying multiple individual manifest files
- if they are specified, remove the validation that checks for specific files within a
manifestsdirectory under the destination
Additional context
This would be really useful for the AKS VS Code extension. Along with #324, I think this would bring enable the extension to provide an experience equivalent to Automated Deployments and still use Draft under the hood (currently it needs to use its own templates to support that experience).
- Lingua principale
- Go
- Stelle
- 644
- Fork
- 74
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
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 Azure/draft
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 42/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Issue simili
-
needs-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
bug carvel-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
carvel-dev/kapp-controller#1861 ·
-
feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100