Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46b6593682 | ||
|
|
52e780f4af |
@@ -23,13 +23,13 @@ const domain = config.requireSecret("domain");
|
|||||||
const longhornUiUser = config.requireSecret("longhornUiUser");
|
const longhornUiUser = config.requireSecret("longhornUiUser");
|
||||||
const longhornUiPassword = config.requireSecret("longhornUiPassword");
|
const longhornUiPassword = config.requireSecret("longhornUiPassword");
|
||||||
|
|
||||||
// Keep the kubeconfig stored in state. A changed API address would otherwise
|
// A fixed identifier makes kubeconfig changes (e.g. a new API address) provider
|
||||||
// make Pulumi replace the provider and every resource in this stack.
|
// updates. Without it, they replace the provider and every resource in this
|
||||||
const k8sProvider = new k8s.Provider(
|
// stack. Changing this value triggers that replacement, so never change it.
|
||||||
"k3s",
|
const k8sProvider = new k8s.Provider("k3s", {
|
||||||
{ kubeconfig },
|
kubeconfig,
|
||||||
{ ignoreChanges: ["kubeconfig"] },
|
clusterIdentifier: "homelab-k3s",
|
||||||
);
|
});
|
||||||
const opts = (extras?: pulumi.ResourceOptions): pulumi.ResourceOptions => ({
|
const opts = (extras?: pulumi.ResourceOptions): pulumi.ResourceOptions => ({
|
||||||
provider: k8sProvider,
|
provider: k8sProvider,
|
||||||
...extras,
|
...extras,
|
||||||
|
|||||||
Reference in new issue
Block a user