Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c40fc0caac | ||
|
|
85ce271fd6 | ||
|
|
7548402542 | ||
|
|
9e0ce35712 | ||
|
|
c1e409780d | ||
|
|
5a2d32ea84 | ||
|
|
e3fab0e151 | ||
|
|
a1867b18c8 | ||
|
|
71b0f3ce7d | ||
|
|
d0600b9153 | ||
|
|
7acf83e68d | ||
|
|
088cb5add1 | ||
|
|
b04ab52fd2 |
No files matched your search
@@ -7,8 +7,8 @@
|
|||||||
#
|
#
|
||||||
# Scope: used for PRs only (list, open, check CI status, merge after your OK).
|
# 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.
|
# 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
|
# In .claude/settings.json, GET and POST (e.g. opening a PR) run without a
|
||||||
# DELETE (anything that changes something) always ask first.
|
# prompt. Merging a PR (POST .../merge), PATCH, PUT and DELETE always ask first.
|
||||||
#
|
#
|
||||||
# Usage: gitea.sh METHOD PATH [BODY]
|
# Usage: gitea.sh METHOD PATH [BODY]
|
||||||
# METHOD GET | POST | PATCH | PUT | DELETE
|
# METHOD GET | POST | PATCH | PUT | DELETE
|
||||||
|
|||||||
+43
-3
@@ -20,9 +20,51 @@
|
|||||||
"Bash(kubectl logs *)",
|
"Bash(kubectl logs *)",
|
||||||
"Bash(kubectl top *)",
|
"Bash(kubectl top *)",
|
||||||
"Bash(kubectl config get-contexts *)",
|
"Bash(kubectl config get-contexts *)",
|
||||||
|
"Bash(git log *)",
|
||||||
|
"Bash(git status *)",
|
||||||
|
"Bash(git diff *)",
|
||||||
|
"Bash(git show *)",
|
||||||
|
"Bash(git grep *)",
|
||||||
|
"Bash(git blame *)",
|
||||||
|
"Bash(git ls-files *)",
|
||||||
|
"Bash(git ls-tree *)",
|
||||||
|
"Bash(git rev-parse *)",
|
||||||
|
"Bash(git describe *)",
|
||||||
|
"Bash(git shortlog *)",
|
||||||
|
"Bash(git merge-base *)",
|
||||||
|
"Bash(git reflog show *)",
|
||||||
|
"Bash(git stash list *)",
|
||||||
|
"Bash(git branch --list *)",
|
||||||
|
"Bash(git branch -a *)",
|
||||||
|
"Bash(git branch -v *)",
|
||||||
|
"Bash(git tag --list *)",
|
||||||
|
"Bash(git remote -v)",
|
||||||
|
"Bash(git fetch *)",
|
||||||
|
"Bash(pulumi about *)",
|
||||||
|
"Bash(pulumi plugin ls *)",
|
||||||
|
"Bash(kubectl api-resources *)",
|
||||||
|
"Bash(kubectl api-versions *)",
|
||||||
|
"Bash(kubectl explain *)",
|
||||||
|
"Bash(kubectl version *)",
|
||||||
|
"Bash(kubectl events *)",
|
||||||
|
"Bash(kubectl cluster-info)",
|
||||||
|
"Bash(kubectl auth can-i *)",
|
||||||
|
"Bash(kubectl rollout status *)",
|
||||||
|
"Bash(kubectl rollout history *)",
|
||||||
|
"Bash(kubectl config current-context *)",
|
||||||
|
"Bash(npm ls *)",
|
||||||
|
"Bash(npm outdated *)",
|
||||||
|
"Bash(ls *)",
|
||||||
|
"Bash(pwd)",
|
||||||
|
"Bash(wc *)",
|
||||||
|
"Bash(which *)",
|
||||||
|
"Bash(jq *)",
|
||||||
"Bash(git add *)",
|
"Bash(git add *)",
|
||||||
"Bash(git switch *)",
|
"Bash(git switch *)",
|
||||||
"Bash(.claude/scripts/gitea.sh GET *)",
|
"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:www.pulumi.com)",
|
||||||
"WebFetch(domain:github.com)",
|
"WebFetch(domain:github.com)",
|
||||||
"WebFetch(domain:raw.githubusercontent.com)",
|
"WebFetch(domain:raw.githubusercontent.com)",
|
||||||
@@ -51,9 +93,7 @@
|
|||||||
"Bash(ssh *)",
|
"Bash(ssh *)",
|
||||||
"Bash(scp *)",
|
"Bash(scp *)",
|
||||||
"Bash(curl *)",
|
"Bash(curl *)",
|
||||||
"Bash(git commit *)",
|
"Bash(.claude/scripts/gitea.sh POST */merge*)",
|
||||||
"Bash(git push *)",
|
|
||||||
"Bash(.claude/scripts/gitea.sh POST *)",
|
|
||||||
"Bash(.claude/scripts/gitea.sh PATCH *)",
|
"Bash(.claude/scripts/gitea.sh PATCH *)",
|
||||||
"Bash(.claude/scripts/gitea.sh PUT *)",
|
"Bash(.claude/scripts/gitea.sh PUT *)",
|
||||||
"Bash(.claude/scripts/gitea.sh DELETE *)"
|
"Bash(.claude/scripts/gitea.sh DELETE *)"
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ const worker3Ip = config.requireSecret("worker3Ip");
|
|||||||
|
|
||||||
const templateSettings = {
|
const templateSettings = {
|
||||||
template: true,
|
template: true,
|
||||||
|
protection: true,
|
||||||
started: false,
|
started: false,
|
||||||
stopOnDestroy: true,
|
stopOnDestroy: true,
|
||||||
scsiHardware: "virtio-scsi-pci",
|
scsiHardware: "virtio-scsi-pci",
|
||||||
@@ -292,7 +293,15 @@ const k3sVms = nodeConfigs.map(
|
|||||||
{
|
{
|
||||||
provider: node.host.provider,
|
provider: node.host.provider,
|
||||||
retainOnDelete: true,
|
retainOnDelete: true,
|
||||||
ignoreChanges: ["clone", "started"],
|
protect: true,
|
||||||
|
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"]),
|
||||||
|
],
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,6 +3,20 @@ import * as command from "@pulumi/command";
|
|||||||
|
|
||||||
const config = new pulumi.Config();
|
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(
|
const infraRef = new pulumi.StackReference(
|
||||||
`${pulumi.getOrganization()}/proxmox-infra/dev`,
|
`${pulumi.getOrganization()}/proxmox-infra/dev`,
|
||||||
);
|
);
|
||||||
@@ -77,7 +91,7 @@ const startMaster1 = new command.local.Command("start-master-1", {
|
|||||||
interpreter: ["/bin/bash", "-c"],
|
interpreter: ["/bin/bash", "-c"],
|
||||||
});
|
});
|
||||||
const startMaster2 = new command.local.Command("start-master-2", {
|
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],
|
triggers: [master2VmId],
|
||||||
interpreter: ["/bin/bash", "-c"],
|
interpreter: ["/bin/bash", "-c"],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user