@mcpg-dev/pulumi 0.1.0-beta.12 → 0.1.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ blank_issues_enabled: true
2
+ contact_links:
3
+ - name: Security report
4
+ url: mailto:security@mcpg.dev
5
+ about: Please report vulnerabilities privately by email, not as a public issue.
6
+ - name: Pull requests
7
+ url: https://github.com/mcpg-dev
8
+ about: PRs cannot be merged here — development happens upstream. File an issue instead.
@@ -0,0 +1,29 @@
1
+ # Per-push checks for the npm package. Publishing lives in release.yml.
2
+ name: CI
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ workflow_dispatch:
8
+ jobs:
9
+ check:
10
+ name: install · build · typecheck · test
11
+ if: vars.OSS_CI_ENABLED == 'true'
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
15
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
16
+ with:
17
+ node-version: 22
18
+ # Unlocked on purpose: no lockfile ships with the source, so the
19
+ # install resolves fresh.
20
+ - run: npm install --no-audit --no-fund
21
+ - run: npm run build
22
+ - name: Typecheck
23
+ run: |
24
+ set -euo pipefail
25
+ if jq -e '.scripts.typecheck' package.json >/dev/null; then npm run typecheck; fi
26
+ - name: Test
27
+ run: |
28
+ set -euo pipefail
29
+ if jq -e '.scripts.test' package.json >/dev/null; then npm test; fi
@@ -0,0 +1,16 @@
1
+ # Thin shim: fires on the v{version} release tag and calls the shared
2
+ # non-Rust release workflow with this repo's tier. Managed by the release
3
+ # pipeline — changes made here are overwritten.
4
+ name: Release
5
+ on:
6
+ push:
7
+ tags: ["v*"]
8
+ workflow_dispatch:
9
+ permissions:
10
+ contents: write
11
+ id-token: write
12
+ packages: write
13
+ jobs:
14
+ release:
15
+ uses: mcpg-dev/.github/.github/workflows/release-npm.yml@main
16
+ secrets: inherit
@@ -0,0 +1,24 @@
1
+ # Contributing
2
+
3
+ Development of this project happens upstream; this repository publishes
4
+ each release as a tagged snapshot.
5
+
6
+ ## What this means
7
+
8
+ - **Pull requests cannot be merged here.** The contents are replaced
9
+ wholesale at every release, so a PR opened against this repository has
10
+ nothing durable to land on. PRs are closed automatically with a link to
11
+ this page.
12
+ - **Issues are very welcome.** Bug reports, feature requests, and questions
13
+ filed here are read and triaged. Please include the release version you
14
+ are using and a minimal reproduction.
15
+ - **Security reports:** please email **security@mcpg.dev** rather than
16
+ opening a public issue.
17
+
18
+ ## Versions
19
+
20
+ Releases are git tags (`v{version}`); each tagged commit is a complete
21
+ snapshot of this project at that release. Dependency updates arrive with
22
+ the next release; this repository runs no Dependabot/Renovate.
23
+
24
+ Thanks for using MCPG.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpg-dev/pulumi",
3
- "version": "0.1.0-beta.12",
3
+ "version": "0.1.0-beta.14",
4
4
  "repository": "https://github.com/mcpg-dev/pulumi-mcpg",
5
5
  "description": "Opinionated Pulumi components for MCPG (operator, gateway, tenant, trust).",
6
6
  "license": "Apache-2.0",
@@ -11,7 +11,7 @@
11
11
  "typecheck": "tsc --noEmit"
12
12
  },
13
13
  "dependencies": {
14
- "@mcpg-dev/pulumi-crds": "0.1.0-beta.12",
14
+ "@mcpg-dev/pulumi-crds": "0.1.0-beta.14",
15
15
  "@pulumi/kubernetes": "4.31.1",
16
16
  "@pulumi/pulumi": "^3.142.0"
17
17
  },
package/BUILD.bazel DELETED
@@ -1,24 +0,0 @@
1
- load("@aspect_rules_js//js:defs.bzl", "js_library")
2
- load("@npm//:defs.bzl", "npm_link_all_packages")
3
-
4
- # This package's npm dependencies, linked the way node resolves them.
5
- npm_link_all_packages(name = "node_modules")
6
-
7
- # Every workspace package needs a `pkg` target: npm_link_all_packages resolves
8
- # a `workspace:*` dependency to one, and the root link covers the whole
9
- # workspace — so a package without it breaks the graph for everyone, not just
10
- # for itself.
11
- js_library(
12
- name = "pkg",
13
- srcs = glob(
14
- ["**/*"],
15
- allow_empty = True,
16
- exclude = [
17
- "node_modules/**",
18
- "dist/**",
19
- ".next/**",
20
- "BUILD.bazel",
21
- ],
22
- ),
23
- visibility = ["//visibility:public"],
24
- )
package/copy.bara.sky DELETED
@@ -1,98 +0,0 @@
1
- # GENERATED by tools/open-source/gen-copybara.mjs — DO NOT EDIT.
2
- # One-way mirror of the @mcpg-dev/pulumi npm package from the mcpg monorepo to
3
- # its own public repository. Contains NO version literals — regenerate
4
- # (`--write-npm`) only when the package's identity or layout changes.
5
- #
6
- # Licence: Apache-2.0. Repo: github.com/mcpg-dev/pulumi-mcpg.
7
- # History is SQUASHED and re-authored to the bot, so no internal commit
8
- # history, subjects, or contributor identities are exposed.
9
-
10
- # Reads "version" from the package's own package.json at MIRROR time: sets
11
- # the public release message and the PKG_VERSION label the destination
12
- # resolves in tag_name — so no version is baked into this file. Matched at
13
- # two-space indentation so a nested "version" (the CRD SDK's generated
14
- # provider block carries one) can never be mistaken for the package's.
15
- def _release_meta(ctx):
16
- content = ctx.read_path(ctx.new_path("package.json"))
17
- version = ""
18
- for line in content.split("\n"):
19
- if not line.startswith(' "version"'):
20
- continue
21
- rest = line.split(":", 1)
22
- if len(rest) < 2:
23
- continue
24
- version = rest[1].strip().strip(",").strip('"')
25
- break
26
- if version == "":
27
- fail("mirror: could not read top-level \"version\" from package.json")
28
- ctx.set_message("Release v" + version + "\n")
29
- ctx.add_label("PKG_VERSION", version, hidden = True)
30
-
31
- core.workflow(
32
- name = "default",
33
- mode = "SQUASH",
34
-
35
- origin = git.origin(
36
- url = "https://github.com/mcpg-dev/source-code.git",
37
- ref = "main",
38
- ),
39
- # push the code to main AND create the v{version} tag the public repo's
40
- # release.yml fires on to self-publish to npm.
41
- destination = git.github_destination(
42
- url = "https://github.com/mcpg-dev/pulumi-mcpg.git",
43
- push = "main",
44
- tag_name = "v${PKG_VERSION}",
45
- tag_msg = "Release v${PKG_VERSION}",
46
- ),
47
-
48
- # The package subtree, minus internal artifacts: nx project.json,
49
- # CHANGELOG.md (internal commits/PRs), AI-agent working rules, build
50
- # output, and installed dependencies. Sources and tests DO travel — the
51
- # tests use only node:test and node:assert, so they build and run in the
52
- # public repo with nothing extra.
53
- origin_files = glob(["iac/pulumi/components/**"], exclude = [
54
- "iac/pulumi/components/copy.bara.sky", "iac/pulumi/components/project.json",
55
- "iac/pulumi/components/BUILD.bazel", "iac/pulumi/components/**/BUILD.bazel",
56
- "iac/pulumi/components/CHANGELOG.md", "iac/pulumi/components/**/AGENTS.md",
57
- "iac/pulumi/components/bin/**", "iac/pulumi/components/node_modules/**",
58
- "iac/pulumi/components/**/*.tsbuildinfo",
59
- # Destination-managed names never travel from the origin (the
60
- # destination excludes them, and Copybara refuses uncovered writes).
61
- "iac/pulumi/components/.gitignore", "iac/pulumi/components/CONTRIBUTING.md",
62
- "iac/pulumi/components/package-lock.json", "iac/pulumi/components/.github/**",
63
- "iac/pulumi/components/**/DEFERRED.md", "iac/pulumi/components/**/TODO.md",
64
- "iac/pulumi/components/**/NOTES.md", "iac/pulumi/components/**/ROADMAP.md",
65
- "iac/pulumi/components/**/INTERNAL*.md",
66
- ]),
67
-
68
- # Repo-only scaffold (CI, release shim, CONTRIBUTING, .gitignore) is
69
- # seeded at bootstrap and excluded here so the mirror never deletes or
70
- # clobbers it. LICENSE is NOT excluded — the mirror manages it.
71
- destination_files = glob(["**"], exclude = [
72
- ".github/**", ".gitignore", "CONTRIBUTING.md", "package-lock.json",
73
- ]),
74
-
75
- # Re-author every commit to the bot — no real contributor identity leaks.
76
- authoring = authoring.overwrite("mcpg-bot <oss-bot@mcpg.dev>"),
77
-
78
- transformations = [
79
- # 1) subdir -> repo root.
80
- core.move("iac/pulumi/components", ""),
81
-
82
- # 2) point "repository" at this package's own public repo. Left
83
- # naming the monorepo, a published package sends every reader
84
- # to a repository they cannot open.
85
- core.transform([
86
- core.replace(
87
- before = "\"repository\": \"https://github.com/mcpg-dev/source-code\"",
88
- after = "\"repository\": \"https://github.com/mcpg-dev/pulumi-mcpg\"",
89
- paths = glob(["package.json"]),
90
- ),
91
- ], reversal = []),
92
-
93
- # 3) release message + PKG_VERSION label from the mirrored
94
- # manifest — replaces the squashed history's message entirely: NO
95
- # commit list, NO authors, NO subjects.
96
- _release_meta,
97
- ],
98
- )