Skip to content

Commit

Permalink
chore: minor k8s improvements (#19)
Browse files Browse the repository at this point in the history
adding some quality-of-life improvements
  • Loading branch information
linuxwolf authored Feb 13, 2025
1 parent bdf4b0a commit 13a0455
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 6 additions & 2 deletions modules/k8s/_provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { Output, getStack } from "@pulumi/pulumi";
export async function getProvider() {
const stack = getStack();
const mod = await import(`./${stack}`);
const providerArgs = await mod.default() as k8s.ProviderArgs;
const modProviderArgs = await mod.default() as k8s.ProviderArgs;
const providerArgs: k8s.ProviderArgs = {
...modProviderArgs,
deleteUnreachable: true,
};

return new k8s.Provider("k8s-provider", providerArgs);
return new k8s.Provider("k8s-provider", modProviderArgs);
}
4 changes: 2 additions & 2 deletions modules/k8s/_provider/local.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { local } from "@pulumi/command";
import { Kind } from "../../../providers/kind";
import { VERSION } from "./version";
import { VERSION_FULL } from "./version";

export default async function stack() {
const minikube = new Kind("local-minikube", {
configPath: `${process.env["HOME"]}/.kube/local.config`,
version: VERSION,
version: VERSION_FULL,
});

return {
Expand Down
7 changes: 6 additions & 1 deletion modules/k8s/_provider/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
export const VERSION = "1.31.4";
export const VERSION_MAJOR = "1";
export const VERSION_MINOR = "31";
export const VERSION_PATCH = "4";
export const VERSION = `${VERSION_MAJOR}.${VERSION_MINOR}`;
export const VERSION_FULL = `${VERSION}.${VERSION_PATCH}`;

export const CHANNEL = "stable";
export const VERSION_CHANNEL = `${VERSION}/${CHANNEL}`;

0 comments on commit 13a0455

Please sign in to comment.