Allow aliasing resource type names
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reading the resource manifest and configuration document schemas, then trace how resource type names and the configuration version field are handled. Done means aliases can be declared and used for both resource types and configuration fields, so the two example configurations work equivalently.
由索引模型根据 Issue 内容生成。
描述
Summary of the new feature / enhancement
Hi as DSC configuration administrator I see that wee need to have 2 different config for DSC resources to apply configuration
DSCv3
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
metadata:
author: "Michał"
description: "WinGet packages converted from winget export"
contentVersion: "1.0"
resources:
- name: Package-45
type: Microsoft.WinGet/Package
properties:
id: Microsoft.WindowsTerminal
source: winget
version: 1.25.2733.0
winget DSC
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
metadata:
author: "Michał"
description: "WinGet packages converted from winget export"
configurationVersion: 0.2.0
resources:
- name: Package-45
type: Microsoft.WinGet.DSC/WinGetPackage
properties:
id: Microsoft.WindowsTerminal
source: winget
version: 1.25.2733.0
So to make this transition easier I like to have aliases for some resources:
DSC resource: WinGet Microsoft.WinGet/Package --> Alias: Microsoft.WinGet.DSC/WinGetPackage
DSC : contentVersion --> Alias: configurationVersion
This will allow to generate the same config using simple approaches
Proposed technical implementation details (optional)
Example in schema implementation
{
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
"description": "",
"tags": [
"Windows",
"dism",
"feature"
],
"type": "Microsoft.WinGet/Package" ,
"Alias"": "Microsoft.WinGet.DSC/WinGetPackage",
"version": "0.1.1"
}
- 主要语言
- Rust
- 星标
- 544
- 派生
- 79
- 平均合并
- 2 天 2 小时
- 30 天内合并 PR
- 24
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PowerShell/DSC 的其他 Issue
-
Issue-Enhancement Needs Triage
难度 5/5 一周以上 新手友好度 25/100
PowerShell/DSC#1782 · 2 条评论 ·
维护者通常 1 天内回复
-
Tracing categories可能已有人在做 @michaeltlombardi 于 16 天前认领。 未关闭Area-OpenTelemetry Issue-Enhancement Needs Triage
PowerShell/DSC#1767 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
Issue-Enhancement Needs Triage
难度 5/5 一周以上 新手友好度 25/100
PowerShell/DSC#1763 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
Issue-Enhancement Needs Triage
难度 5/5 一周以上 新手友好度 35/100
PowerShell/DSC#1760 ·
维护者通常 1 天内回复
-
Hardening with dsc 3 ?可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭Issue-Enhancement Needs Triage
难度 5/5 一周以上 新手友好度 12/100
PowerShell/DSC#1755 · 9 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
fritzprix/libr-agent#2612 ·
维护者通常 1 天内回复
-
crate: spate-core priority: low
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
NSPG13/agent-bounties#1749 ·
维护者通常 1 天内回复
-
area: web bug
难度 2/5 1-3 小时 新手友好度 76/100
kinqsradio/orbyn-engineering#227 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复