Compare commits

..
Author SHA1 Message Date
kasun e3fab0e151 bug(k8s-bootstrap): stop re-running install commands on live nodes
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Skipped
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 40s
Bootstrap commands used VM IDs as triggers, so renumbering VMs would re-run the unpinned k3s installer on every node and append duplicate fstab entries. Treat them as run-once and re-run them explicitly after recreating a VM. Also start master-2 through pve-esprimo, where it now lives.
2026-11-22 02:58:30 +01:00
claude-bot Bot a1867b18c8 Merge pull request 'Bug: Stop permanent disk speed diffs on k3s VMs' (#43) from bug/ignore-disk-speed-diff into main 2026-11-22 02:27:45 +01:00
kasun 71b0f3ce7d bug(proxmox-infra): ignore permanent disk speed diff
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 1m2s
The Pulumi bridge applies the provider's internal default for the disk speed block, but Proxmox stores nothing when no limit is set, so every preview shows a change that can never settle. Ignore the field per disk because the wildcard form is reported not to work with this provider.
2026-11-22 02:25:59 +01:00
claude-bot Bot d0600b9153 Merge pull request 'Chore: Let Claude Code commit, push and open PRs without a prompt' (#40) from chore/allow-git-write-commands into main 2026-11-21 15:57:10 +01:00
kasun 7acf83e68d chore: keep the permission prompt for merging PRs 2026-11-21 15:56:49 +01:00
kasun 088cb5add1 chore: allow Claude Code to commit, push and open PRs without a prompt
CLAUDE.md already requires an explicit request before committing or opening a PR, so the extra permission prompt only repeated that approval.
2026-11-21 15:54:45 +01:00
kasun b04ab52fd2 Merge pull request 'Bug: Prevent Longhorn disks filling up after node outages' (#39) from bug/longhorn-storage-exhaustion into main
Deploy k8s Infra / Pulumi Preview (push) Skipped
Deploy k8s Infra / Pulumi Deploy (push) Successful in 1m4s
Reviewed-on: #39
2026-11-21 15:52:36 +01:00
4 changed files with 29 additions and 7 deletions

No files matched your search

+2 -2
View File
@@ -7,8 +7,8 @@
#
# Scope: used for PRs only (list, open, check CI status, merge after your OK).
# Technically it can call any endpoint; CLAUDE.md limits its use to PRs.
# In .claude/settings.json, GET runs without a prompt; POST, PATCH, PUT and
# DELETE (anything that changes something) always ask first.
# In .claude/settings.json, GET and POST (e.g. opening a PR) run without a
# prompt. Merging a PR (POST .../merge), PATCH, PUT and DELETE always ask first.
#
# Usage: gitea.sh METHOD PATH [BODY]
# METHOD GET | POST | PATCH | PUT | DELETE
+4 -3
View File
@@ -23,6 +23,9 @@
"Bash(git add *)",
"Bash(git switch *)",
"Bash(.claude/scripts/gitea.sh GET *)",
"Bash(.claude/scripts/gitea.sh POST *)",
"Bash(git commit *)",
"Bash(git push *)",
"WebFetch(domain:www.pulumi.com)",
"WebFetch(domain:github.com)",
"WebFetch(domain:raw.githubusercontent.com)",
@@ -51,9 +54,7 @@
"Bash(ssh *)",
"Bash(scp *)",
"Bash(curl *)",
"Bash(git commit *)",
"Bash(git push *)",
"Bash(.claude/scripts/gitea.sh POST *)",
"Bash(.claude/scripts/gitea.sh POST */merge*)",
"Bash(.claude/scripts/gitea.sh PATCH *)",
"Bash(.claude/scripts/gitea.sh PUT *)",
"Bash(.claude/scripts/gitea.sh DELETE *)"
+8 -1
View File
@@ -292,7 +292,14 @@ const k3sVms = nodeConfigs.map(
{
provider: node.host.provider,
retainOnDelete: true,
ignoreChanges: ["clone", "started"],
ignoreChanges: [
"clone",
"started",
// Pulumi bridge bug: unset disk speed always shows a diff.
// https://github.com/muhlba91/pulumi-proxmoxve/issues/664
"disks[0].speed",
...(node.longhornDiskSize == null ? [] : ["disks[1].speed"]),
],
},
),
);
+15 -1
View File
@@ -3,6 +3,20 @@ import * as command from "@pulumi/command";
const config = new pulumi.Config();
// Bootstrap commands run once, on a fresh install. Without this, a changed VM
// ID or command would re-run the k3s installer on the live cluster. After
// recreating a VM, re-run its commands explicitly with --target-replace.
pulumi.runtime.registerResourceTransform((args) =>
args.type.startsWith("command:")
? {
props: args.props,
opts: pulumi.mergeOptions(args.opts, {
ignoreChanges: ["create", "triggers"],
}),
}
: undefined,
);
const infraRef = new pulumi.StackReference(
`${pulumi.getOrganization()}/proxmox-infra/dev`,
);
@@ -77,7 +91,7 @@ const startMaster1 = new command.local.Command("start-master-1", {
interpreter: ["/bin/bash", "-c"],
});
const startMaster2 = new command.local.Command("start-master-2", {
create: pulumi.interpolate`curl -sf -k -X POST -H "Authorization: PVEAPIToken=${pve1ApiToken}" "${pve1Endpoint}/api2/json/nodes/pve/qemu/${master2VmId}/status/start" 2>/dev/null || true`,
create: pulumi.interpolate`curl -sf -k -X POST -H "Authorization: PVEAPIToken=${pve3ApiToken}" "${pve3Endpoint}/api2/json/nodes/pve/qemu/${master2VmId}/status/start" 2>/dev/null || true`,
triggers: [master2VmId],
interpreter: ["/bin/bash", "-c"],
});