aggrega pin
aggrega pin <entity-path> บันทึกentity.lock ข้าง Recipe หรือ FeatureRecipe เป็น
aggrega pin catalog/recipe/helm/server/1.0.0/recipe.yamlสิ่งที่บันทึก
เอนทิตี
source:ระยะไกล คือที่ คุณ เขียน พิกัด ไว้ ครบ ถ้วน ไม่มี เทมเพลต ใน kind,url,chart,module_subdir,versionหรือrefขั้นตอน ดึง ซอร์ส นั้น และ บันทึก เวอร์ชัน ที่ หา ค่า ได้ ซึ่ง สำหรับ ซอร์ส git คือ คอมมิต ที่ refระบุ และไดเจสต์ เนื้อหา ของ สิ่ง ที่ ดึง มา - ไฟล์
ที่ รายการ artifactsนำเข้า ด้วย $importขั้นตอน คำนวณ ไดเจสต์ ของ ไฟล์ ตาม ที่ อยู่ ใน พื้นที่ ทำงาน ของ คุณ - แต่ละ
ไฟล์ ของ source:ที่ระบุ ไม่มีไดเรกทอรี หรือ ไฟล์ ข้าง เอนทิตี การ ดึง สิ่ง ใด ขั้น ตอน คำนวณ ไดเจสต์ ของ แต่ละ ไฟล์ ที่ ซอร์ส มี ส่วน ร่วม ต่อ สิ่ง ที่ การ เผย แพร่ เอนทิตี บรรจุ — คือ ทุก ไฟล์ ใต้ ไดเรกทอรี ที่ ซอร์ส ระบุ ซึ่ง กฎ การ ละเว้น ของ เอนทิตี คง ไว้ หรือ ไฟล์ เดียว — และ บันทึก แต่ละ ไฟล์ ด้วย เส้น ทาง ข้าง เอนทิตี ไฟล์ ข้าง Recipe ที่ ซอร์ส ไม่ ได้ มี ส่วน ร่วม เช่น README จะ ไม่ ถูก ปัก หมุด ซอร์ส ที่ เขียน เป็น เทมเพลต เช่น ./charts/{{ .values.flavour }}ระบุไดเรกทอรี A local source no longer matches the pins recorded beside its Recipe (ซอร์สของ ตน ก็ ต่อ เมื่อ Release เติม ค่า เท่านั้น จึง มี ส่วน ร่วม ทุก ไฟล์ ใน ไดเรกทอรี ของ เอนทิตี ที่ กฎ คง ไว้ และ ทุก ไฟล์ เหล่า นั้น ถูก ปัก หมุด การ บิลด์ เปรียบ เทียบ ซอร์ส กับ การ ปัก หมุด เหล่า นี้ ก่อน ที่ ผู้ ให้ บริการ จะ อ่าน ดัง นั้น ไฟล์ ที่ เพิ่ม เปลี่ยน หรือ ลบ ตั้งแต่ ปัก หมุด จะ หยุด การ บิลด์ — ภายใน เครื่อง ไม่ ตรง กับ การ ปัก หมุด ที่ บันทึก ไว้ ข้าง Recipe อีก ต่อ ไป) - กฎ
การ ละเว้น เอง สำหรับ source:ที่เป็น ขั้นไดเรกทอรี ตอน บันทึก ว่า ปลั๊กอิน ใด ให้ บริการ ความ สามารถ ของ เอนทิตี และ กฎ ที่ ปลั๊กอิน นั้น ประกอบ ขึ้น อย่าง ตรง ตัว ตาม ที่ ส่วน ถัด ไป อธิบาย
สิ่งaggrega pull และartifacts แบบ
ไม่
ไม่
ไฟล์ใดบ้างที่จัดส่งไปพร้อมกับเอนทิตี
Recipe หรือ FeatureRecipe ที่ source: ระบุ.gitignore ใช้ และ
- ปลั๊กอิน
ที่ ประกาศเรนเดอร์ ความ สามารถ ของ เอนทิตี สิ่ง ที่ ระบบ นิเวศ ของ ตน ไม่ ส่ง เลย ปลั๊กอิน chart ละเว้น ไดเรกทอรี ควบคุม เวอร์ชัน ( .git/,.hg/,.svn/และ.bzr/) และไฟล์ ที่ ซ่อน ใต้ templates/ของ chart และยึด ตาม .helmignoreของ chart เอง ทุกที่ ที่ การ ไล่ อ่าน ซอร์ส พบ ไฟล์ นี้ บรรทัด ของ ไฟล์ จะ ถูก อ่าน เป็น กฎ เพิ่ม เติม สำหรับ ไดเรกทอรี ที่ มี ไฟล์ นั้น ปลั๊กอิน Terraform ละเว้น ไดเรกทอรี ควบคุม เวอร์ชัน และ ไดเรกทอรี ทำงาน .terraform/แต่ไม่ ละเว้น ไฟล์ ล็อก การ พึ่งพา ซึ่ง มี ไว้ ให้ ไป พร้อม กับ โมดูล และ ยึด ตาม .terraformignoreแบบเดียวกัน ปลั๊กอิน ที่ ไม่ ประกาศ สิ่ง ใด จะ คง ทุก อย่าง ไว้ .aggregaignoreของคุณ ไฟล์เอง เดียว ข้าง เอกสาร เอนทิตี ใน ไวยากรณ์ เดียวกัน บรรทัด ของ ไฟล์ ใช้ หลัง กฎ ของ ปลั๊กอิน และ หลัง ไฟล์ การ ละเว้น ทุก ไฟล์ ที่ ปลั๊กอิน ระบุ คุณ จึง เป็น ผู้ ตัดสิน ขั้น สุดท้าย ใน ทุก เส้น ทาง ที่ คุณ ระบุ บรรทัด เช่น .venv/ละเว้นไดเรกทอรี ที่ ปลั๊กอิน ไม่รู้ จัก และ บรรทัด เช่น !.git/นำกลับ มา ซึ่ง ไดเรกทอรี ที่ ปลั๊กอิน ละเว้น ตัว ไฟล์ ไม่ เดิน ทาง ไป ด้วย แต่ กฎ ของ ไฟล์ เดิน ทาง ไป ภายใน ล็อก
.venv/*.bak!notes.bakแต่ละ.helmignore อ่าน.aggregaignore อ่าน! ที่!.git/HEAD เพียง.git/ ถูก!.git/ นำ
ปลั๊กอินaggrega ขั้นprovider/terraform โดยentity.lock การaggrega ที่aggrega pull --verify ดัง.aggregaignore ที่aggrega ที่.helmignore เป็น
ผู้aggrega pull ของ
การ
ตำแหน่งของล็อก
ล็อก
หนึ่งentity.lock หนึ่ง
ใครปักหมุด และเมื่อใด
การaggrega push โดย
การ
สอง
aggrega pull --pin-sourcesรันขั้น ตอน นั้น กับ เอนทิตี ที่ Release บิลด์ แทนที่ จะ หยุด aggrega push --pin-sourcesรันขั้น ตอน นั้น กับ เอนทิตี ก่อน บรรจุ เป็น ชุด ล็อก ที่ เขียน จึง เป็น ส่วน หนึ่ง ของ สิ่ง ที่ เผย แพร่ แทนที่ จะ ปฏิเสธ
แต่ละpin_sources_at_pull และ pin_sources_at_push ปิด--pin-sources ปัก--pin-sources=false ไม่pin_sources_at_pull คีย์
การเปลี่ยนเอนทิตีที่เผยแพร่แล้ว
แนวaggrega pin กับ
ผลิตภัณฑ์
ขั้นตอนเดียวกันบนพื้นผิวอื่น
daemon มีaggrega/pin (aggrega serve) และpin (aggrega mcp) ทั้ง
ดูเพิ่มเติม
- aggrega-pull.md — ล็อก
ของ เอนทิตี สิ่ง ที่ บิลด์ เปรียบ เทียบ กั บล็อก และ การ หยุด - aggrega-push.md — การ
เผย แพร่ เอนทิตี และ การ เผย แพร่ เวอร์ชัน เพียง ครั้ง เดียว - configuration.md —
pin_sources_at_pullและpin_sources_at_push
รูป
aggrega pin <entity-path> [flags]คำ
Record, in the entity.lock beside a Recipe or FeatureRecipe, the content pin for every inputthe entity reads from outside its own document: a remote source: whose coordinates you wrote outin full, a file an artifacts entry imports with $import, and each file of a local source:.
Pinning is the entity author's step. Run it on an entity before it is consumed — before youpublish it, and after every change to one of its inputs — and commit the entity.lock it writesbeside the entity. A pull over an entity whose lock does not record these pins halts and namesthis command, and so does a push of it; so does one whose local source has had a file added,changed or removed since it was pinned.
No Release is needed. A source whose coordinates carry no template names one artifact for everyRelease that uses the entity, so it is resolved and pinned here, with nothing supplied. A remotesource whose coordinates are filled in from a template is not pinned here: which artifact it names isdecided by each Release, and each identity it resolves to is pinned in that Release's lockfile.A source that names a directory beside the entity is not fetched: each file it contributes to whata publication of the entity carries is digested as it stands and pinned by its path, so a buildrefuses a file added, changed or removed after the pin. A local source written as a templatecontributes every file in the entity's directory, so each of those is pinned.
Which files a source directory contributes is decided here, once, and recorded. The step reads theignore rules the plugin serving the entity's capability declares — this workspace's provider bindingfor that capability, or else the plugin built into aggrega — together with the ignore files thatplugin names inside the source, such as a chart's .helmignore, and the .aggregaignore beside theentity, in gitignore syntax, whose lines come last and so have the final say. It records the pluginand the composed rules in the entity.lock, and every publication, pull, build and render of theentity applies the recorded rules and no others, so a changed binding or a newer binary movesnothing until you pin again. A symbolic link among the files is refused rather than followed.
The step writes beside the entity, so the entity needs a writable home: the document you name isread from its own directory and the lock lands next to it. The entity file itself is neverwritten to. Re-running over unchanged inputs leaves the lock byte-identical; an entity that readsnothing a lock records has its lock removed. A Component, a Feature or any other kind that readsno such input is reported as having nothing to pin, and nothing beside it is touched.
A directory holds one entity.lock, so the step refuses a Recipe or FeatureRecipe that shares itsdirectory with any other entity, naming the entity in the way, whether or not either has anythingto pin. Every kind has a directory of its own except Aggregate, Release and Manifest, which may sitside by side; a push holds the entity it publishes to the same rule.
aggrega pull --pin-sources and aggrega push --pin-sources run this same step on your behalf, andwrite the same bytes.แฟล็ก
| แฟล็ก | ค่า | คำ |
|---|---|---|
--dry-run | false | หา |