feat(vm-instance): accept cloud-init network-data as a value alongside the netplan-specific netplanDhcp flag
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Read packages/apps/vm-instance/values.yaml and templates/secret-network-config.yaml to trace how netplanDhcp becomes networkDataSecretRef, then inspect the component's README for configuration examples. Add support for the proposed string value, reject using it together with netplanDhcp, and document the netplan example; done means either setting works as described and the conflict is refused.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem / motivation
netplanDhcp (packages/apps/vm-instance/values.yaml:131-132) is a boolean that turns on one fixed network-data document: DHCP with use-domains on every en* and eth* interface (templates/secret-network-config.yaml). It exists for a real problem: cloud-init's fallback configuration covers one interface, so a VM joined to a VPC subnet never asks for its address there, and systemd-networkd ignores the search domains DHCP offers. But the field's own description names the guests it breaks, any guest not rendered by netplan and any netplan guest with a static interface, and those users have no way to supply their own network-data. The API carries a flag for one guest renderer.
Proposed solution
Add a string field next to cloudInit, for example cloudInitNetworkData, passed to networkDataSecretRef as is. Keep netplanDhcp as a shortcut that renders the current document, and refuse setting both. Put the netplan snippet in the README as an example.
Scope check
- This affects a single component / package (if it spans many, consider a design proposal)
- I can describe the expected behavior concretely (if not, consider a Discussion first)
Alternatives considered
Replace netplanDhcp outright with the free-form field. Cleaner API, but v1.7.1 ships netplanDhcp, so removing it is a breaking change, and a toggle is easier for the common case than pasting YAML.
Additional context
Added in #4306. Related: #2085 (systemd-resolved guests not resolving the cluster domain), which the netplan document addresses for netplan guests only.
- Ngôn ngữ chính
- Go
- Star
- 2.2k
- Fork
- 209
- Merge trung bình
- 4 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 140
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cozystack/cozystack
-
triage/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cozystack/cozystack#5464 · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
test(kubernetes-nodes): stop hand-typing the default Talos version in tests that are not about itĐang mởarea/testing kind/cleanup triage/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
cozystack/cozystack#5456 · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
area/testing kind/cleanup triage/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
cozystack/cozystack#5447 · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
area/kubernetes kind/bug triage/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
cozystack/cozystack#5445 · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
kind/bug triage/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
cozystack/cozystack#5438 · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của cozystack/cozystack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Correct local module testing instructions for Go sample contributorsCó thể đã có người làm @slievrly đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Có thể đã có người làm @pacwestnobody đã nhận hôm nay. Đang mởgo good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Podiom/Podiom#427 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -raceCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
factory:subtask
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Maintainer thường phản hồi trong vòng 1 ngày