Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: minor k8s improvements #19

Merged
merged 2 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}`;