Repository navigation
docs: add kubectl plugin reference and provide chromium for docs tests through devbox - #33
Merged
Merged
Conversation
…s through devbox Signed-off-by: bakito <github@bakito.ch>
oliverbaehler
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a full reference page for the
kubectl resource-permitsplugin and links the existing guides to it. It also makestask docs:test:browserrun without root or a separate browser install, using a Chromium that Devbox provides.kubectl plugin documentation
docs/content/docs/reference/cli.mdcovers:task build, and checking the version.KUBECONFIG→ in-cluster →~/.kube/config), current context only, and no--kubeconfig/--contextflags.-n,--as,--as-group,--version. A callout warns that--namespacedefaults todefault, not the namespace from the kubeconfig context.--as/--as-groupaffect approver matching, and the RBAC they need.review,activate,expire,retryandcompletion, with required and resulting phases, flags, duration syntax (d/wunits), conflict retries and examples.getonresourcepermitsandpatchonresourcepermits/status, plusimpersonatewhen used.concepts/requests.md: replaced the inline build-from-source instructions with a pointer to the reference page.examples/managed-grafana.md,examples/temporary-config.md: link to the plugin reference for installation.reference/_index.md: the description now mentions the plugin reference.Docs browser tests: Chromium from Devbox
Problem:
task docs:test:browserfailed unlesstask docs:browser:installhad been run first. That task usedplaywright install --with-deps, which runsapt-getthroughsudo, so it needed root and only worked on Debian/Ubuntu.Changes:
chromiumpackage (155.0.8059.39) and exportCHROMIUM_EXECUTABLEininit_hook.docs/playwright.config.jsalready uses this variable as the browser to launch.docs:browser:installtask.task docs:test:browser.Caveat: Playwright only guarantees support for the browser build it was released with.
@playwright/test1.64.0 targets Chromium 156, and the newestchromiumin the Devbox index is 155. The full suite passes with 155. When@playwright/testis bumped,chromiummay need a bump too.Playwright's matching build (
playwright-driver.browsers-chromium) is only available as a flake reference, not as a versioned Devbox package, so I used the regular package instead.Testing
devbox run -- task docs:test:browserin a clean environment, with Playwright's own browser cache pointed at an empty directory so only the Devbox Chromium could be used: 30/30 passed (desktop, android, mobile), two runs.actionlintand prek hooks (JSON, YAML, docs validation) pass on the changed files.