Commit Graph

32 Commits

Author SHA1 Message Date
Chris Farhood ce54d83d16 fix: remove vite/vite-plugin-svgr type refs (packages not in deps)
CI / ci (push) Successful in 39s
CI / ci (pull_request) Successful in 2m45s
Dual Approval (CTO + QA) / dual-approval (pull_request) Failing after 0s
2026-05-20 11:12:46 +00:00
Chris Farhood eff564b7d1 fix: pin pnpm@10.32.1 via packageManager field (PRI-1630)
Dual Approval (CTO + QA) / dual-approval (pull_request) Failing after 0s
CI / ci (push) Failing after 35s
CI / ci (pull_request) Failing after 33s
2026-05-20 11:11:16 +00:00
Chris Farhood 7589718ac6 fix: correct pnpm overrides format and regenerate lockfile (PRI-1630)
Dual Approval (CTO + QA) / dual-approval (pull_request) Failing after 0s
CI / ci (push) Failing after 42s
CI / ci (pull_request) Failing after 39s
- Move overrides from pnpm.overrides to top-level overrides (pnpm 10+ requirement)
- Add pnpm.onlyBuiltDependencies to match other plugins
- Remove redundant direct vite/vite-plugin-svgr devDeps (provided by headlamp-plugin)
- Regenerate pnpm-lock.yaml in sync with updated package.json
- Update artifacthub-pkg.yml with real v0.1.0 release values and correct checksum
2026-05-20 11:07:15 +00:00
Countess von Containerheim 6996a63c2c Merge pull request 'fix(ci): inline CI workflow (PRI-1630)' (#18) from fix/pri-1630-inline-ci into main
CI / ci (pull_request) Failing after 9s
CI / ci (push) Failing after 9s
Dual Approval (CTO + QA) / dual-approval (pull_request) Failing after 0s
fix(ci): inline CI workflow (PRI-1630)
v0.1.0
2026-05-20 10:47:33 +00:00
Countess von Containerheim 3972589532 fix(ci): inline CI workflow, remove reusable .github dependency (PRI-1630)
CI / ci (push) Failing after 7s
Dual Approval (CTO + QA) / dual-approval (pull_request) Failing after 0s
CI / ci (pull_request) Failing after 8s
2026-05-20 10:47:25 +00:00
Countess von Containerheim 1d1cb6babe Merge pull request 'fix(ci): pass pr_number to dual-approval-check workflow' (#11) from fix/dual-approval-pr-number into main
CI / ci (push) Failing after 8s
merge
2026-05-20 03:04:24 +00:00
Countess von Containerheim e66ea0dcd2 Merge pull request 'fix: add missing GITHUB_TOKEN to Renovate workflow' (#16) from gandalf/fix-renovate-token into main
CI / ci (push) Failing after 3s
fix: add missing GITHUB_TOKEN to Renovate workflow
2026-05-20 03:03:47 +00:00
privilegedescalation-engineer[bot] 46e7733cf5 chore(ci): add audit-ci allowlist for inherited @kinvolk/headlamp-plugin CVEs (PRI-855)
QA reviewed and approved. Adds audit-ci.jsonc with 3 CVE allowlist entries for dev-only dependencies.
2026-05-12 22:22:41 +00:00
Chris Farhood 23db059a23 fix: add missing GITHUB_TOKEN to Renovate workflow
The Renovate workflow was failing because the token parameter
was removed in commit 0955832. This commit restores the
required GITHUB_TOKEN parameter so Renovate can authenticate
and create PRs for dependency updates.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-11 23:06:37 +00:00
privilegedescalation-ceo[bot] fc5796d2ca chore(renovate): add self-hosted Renovate GitHub Action workflow
chore(renovate): add self-hosted Renovate GitHub Action workflow
2026-05-10 19:43:36 +00:00
Chris Farhood 0955832d4a chore(renovate): pin action to v40.3.0, fix inputs per spec 2026-05-06 11:04:51 +00:00
privilegedescalation-engineer[bot] b704a381d4 chore(renovate): add self-hosted Renovate GitHub Action workflow 2026-05-06 10:51:38 +00:00
Chris Farhood 066db0b902 fix(ci): pass pr_number to dual-approval-check workflow
Passes github.event.pull_request.number to the reusable workflow so
dual-approval status checks work correctly on PRs instead of always
receiving pr_number=0.
2026-05-06 02:18:50 +00:00
privilegedescalation-engineer[bot] 59cfa0bd78 fix: override elliptic for GHSA-848j-6mx2-7j84
* fix: override elliptic to patched version for GHSA-848j-6mx2-7j84

* chore: regenerate pnpm-lock.yaml for elliptic override

Co-Authored-By: Paperclip <noreply@paperclip.ing>

---------

Co-authored-by: Chris Farhood <chris@farhood.org>
Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-05-06 02:14:16 +00:00
privilegedescalation-ceo[bot] d30d4894cf Merge pull request #8 from privilegedescalation/fix/add-eslint-direct-dependency
fix: add eslint as direct devDependency (unblocks PRI-556, PRI-568)
2026-05-05 10:30:59 +00:00
Chris Farhood 514d306eea fix: add prettier as direct devDependency
prettier is needed by the format:check script but was only available
as a transitive dependency of @kinvolk/headlamp-plugin.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-04 20:00:49 +00:00
Chris Farhood f07a4c7775 fix: add missing direct devDependencies to package.json
This is a prerequisite for CI to work with pnpm --frozen-lockfile.

Missing direct devDependencies that were only available transitively:
- eslint (lint script needs it)
- typescript (tsc script needs it)
- vite (provides vite/client.d.ts type definitions)
- vite-plugin-svgr (provides vite-plugin-svgr/client.d.ts type definitions)

Also fixed: tsconfig.json was missing skipLibCheck: true which caused
errors when type definitions referenced packages not in node_modules.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-04 19:58:07 +00:00
Chris Farhood b204491808 fix: add typescript as direct devDependency (fixes tsc not found)
PR #8 revealed that typescript is also missing as a direct dependency.
The tsc script calls 'tsc --noEmit' but typescript was only available
as a transitive dependency, causing CI to fail with 'tsc: not found'.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-04 19:53:42 +00:00
Chris Farhood 8600cedb64 fix: add eslint as direct devDependency
ESLint was only a transitive dependency of @kinvolk/headlamp-plugin.
Without it as a direct devDependency, CI fails at the lint step with
'eslint: not found' when using --frozen-lockfile.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-04 19:51:07 +00:00
privilegedescalation-ceo[bot] 9de84bf641 Merge pull request #5 from privilegedescalation/feat/renovate-extend-org-config
feat: extend Renovate config from org-level preset
2026-03-24 18:46:17 +00:00
Hugh Hackman 2e2cbe3414 feat: extend Renovate config from org-level preset
Replaces the duplicated Renovate config with a simple extend from the
org-level preset (privilegedescalation/.github:renovate-config). All
rules (schedule, pinDigests, npm/github-actions minor+patch+major groups)
are now inherited from the org config, which was updated in PR #66 to add
major-version update rules for GitHub Actions.

This eliminates config drift between repos and reduces maintenance toil —
future rule changes only need to be made in one place.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-24 16:16:54 +00:00
privilegedescalation-ceo[bot] 1369cb047f Merge pull request #4 from privilegedescalation/chore/renovate-pin-digests
chore(renovate): add pinDigests to template so new repos start with SHA pinning
2026-03-22 11:06:35 +00:00
privilegedescalation-engineer[bot] bf9aab7957 chore(renovate): add pinDigests to template repo renovate.json
Ensures repos created from this template start with GitHub Actions SHA pinning
configured. Matches the pinDigests: true change being applied to all existing
plugin repos (PRI-757).

Without this, new repos created from the template would need a follow-up PR
to add pinDigests.
2026-03-22 07:18:36 +00:00
privilegedescalation-ceo[bot] 7cc3ea5459 Merge pull request #2 from privilegedescalation/feat/add-dual-approval-workflow
ci: add dual-approval status check (CTO + QA)
2026-03-22 05:35:57 +00:00
Hugh Hackman ade88e255f ci: add dual-approval status check (CTO + QA)
Adds the shared dual-approval caller workflow, mirroring all other
plugin repos. Enforces the CTO + QA dual approval policy as a GitHub
required status check.

Resolves the gap identified in PRI backlog (dd33f62f).
2026-03-22 05:23:52 +00:00
privilegedescalation-ceo[bot] d9b0df2784 Merge pull request #1 from privilegedescalation/feat/scaffold-template
feat: scaffold starter template with TypeScript, CRD list view, CI, ArtifactHub
2026-03-21 14:07:11 +00:00
Gandalf the Greybeard a62dbcac2d fix: add missing test devDependencies (vitest, @testing-library/*)
The test script runs vitest and imports from @testing-library/react and
@testing-library/jest-dom, but none of these were listed as devDependencies.
Adds vitest ^3.0.5 and all required @testing-library packages matching other
plugin repos in the org.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 12:53:39 +00:00
Gandalf the Greybeard 4da033d8d7 fix: add .eslintrc.js and .prettierrc.js to fix CI lint failure
The shared CI workflow runs `npm run lint` (ESLint) and `npm run format:check`
(Prettier) but neither config file was present in the template repo. ESLint
was failing with "ESLint couldn't find a configuration file."

Add both configs matching the pattern used in other plugins in the org:
- .eslintrc.js extends @headlamp-k8s/eslint-config (provided by @kinvolk/headlamp-plugin)
- .prettierrc.js uses @headlamp-k8s/eslint-config/prettier-config

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 08:08:16 +00:00
Hugh Hackman 3d272d3f6e fix: add package-lock.json to satisfy npm cache in CI
The shared plugin-ci.yaml workflow uses `cache: npm` in setup-node
and runs `npm ci`, both of which require a lock file. Without it,
CI fails with "Dependencies lock file is not found".

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 07:59:51 +00:00
Hugh Hackman f40ecbb899 fix(workflows): add pull-requests permission and secrets: inherit to release
The shared plugin-release.yaml reusable workflow declares pull-requests: write
and uses it to create/merge the release PR. Calling workflows must grant all
permissions declared by reusable workflows or the job fails at startup.

Also adds secrets: inherit so org-level RELEASE_APP_ID and RELEASE_APP_PRIVATE_KEY
are forwarded to the external reusable workflow — without this they arrive empty
and the release is silently skipped.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 07:58:50 +00:00
Gandalf the Greybeard 9da27f4186 feat: scaffold starter template with TypeScript, CRD list view, CI, ArtifactHub
Adds full plugin starter template including:
- package.json with @kinvolk/headlamp-plugin devDependency and standard scripts
- tsconfig.json extending headlamp plugin config
- vitest.config.mts + vitest.setup.ts (jsdom, NODE_ENV=test, localStorage shim)
- src/index.tsx: registers sidebar entry and route for ResourceListPage
- src/components/ResourceListPage.tsx: placeholder CRD list view with TODO guide
- src/components/ResourceListPage.test.tsx: example tests using vi.mock pattern
- .github/workflows/ci.yaml: delegates to shared plugin-ci.yaml
- .github/workflows/release.yaml: delegates to shared plugin-release.yaml
- artifacthub-pkg.yml + artifacthub-repo.yml: ArtifactHub metadata with TODO markers
- renovate.json: Mend Renovate config for weekly dependency updates
- README.md: complete getting-started guide
- CONTRIBUTING.md: local dev, code style, testing, PR process
- LICENSE: Apache-2.0

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 03:45:12 +00:00
Gandalf the Greybeard b741cfebc6 chore: initialize repository
Empty bootstrap commit to establish main branch before template scaffolding PR.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 03:40:50 +00:00