Merge pull request 'Bug: Stop kubeconfig address change from replacing k8s resources' (#57) from bug/stop-k8s-provider-replacement into main
Deploy k8s Infra / Pulumi Preview (push) Skipped
Deploy k8s Apps / Pulumi Preview (push) Skipped
Deploy Monitoring / Pulumi Preview (push) Skipped
Deploy k8s Infra / Pulumi Deploy (push) Successful in 53s
Deploy k8s Apps / Pulumi Deploy (push) Successful in 47s
Deploy Monitoring / Pulumi Deploy (push) Successful in 53s
Secret Scan / Betterleaks (push) Successful in 7s
Deploy k8s Infra / Pulumi Preview (push) Skipped
Deploy k8s Apps / Pulumi Preview (push) Skipped
Deploy Monitoring / Pulumi Preview (push) Skipped
Deploy k8s Infra / Pulumi Deploy (push) Successful in 53s
Deploy k8s Apps / Pulumi Deploy (push) Successful in 47s
Deploy Monitoring / Pulumi Deploy (push) Successful in 53s
Secret Scan / Betterleaks (push) Successful in 7s
This commit was merged in pull request #57.
This commit is contained in:
commit
39dbfafe1c
3 files changed
+21
-3
No files matched your search
@@ -23,7 +23,13 @@ const domain = config.requireSecret("domain");
|
||||
const longhornUiUser = config.requireSecret("longhornUiUser");
|
||||
const longhornUiPassword = config.requireSecret("longhornUiPassword");
|
||||
|
||||
const k8sProvider = new k8s.Provider("k3s", { kubeconfig });
|
||||
// Keep the kubeconfig stored in state. A changed API address would otherwise
|
||||
// make Pulumi replace the provider and every resource in this stack.
|
||||
const k8sProvider = new k8s.Provider(
|
||||
"k3s",
|
||||
{ kubeconfig },
|
||||
{ ignoreChanges: ["kubeconfig"] },
|
||||
);
|
||||
const opts = (extras?: pulumi.ResourceOptions): pulumi.ResourceOptions => ({
|
||||
provider: k8sProvider,
|
||||
...extras,
|
||||
|
||||
@@ -10,7 +10,13 @@ const bootstrapRef = new pulumi.StackReference(
|
||||
const kubeconfig = bootstrapRef.requireOutput("kubeconfig");
|
||||
export const domain = config.requireSecret("domain");
|
||||
|
||||
const k8sProvider = new k8s.Provider("k3s", { kubeconfig });
|
||||
// Keep the kubeconfig stored in state. A changed API address would otherwise
|
||||
// make Pulumi replace the provider and every resource in this stack.
|
||||
const k8sProvider = new k8s.Provider(
|
||||
"k3s",
|
||||
{ kubeconfig },
|
||||
{ ignoreChanges: ["kubeconfig"] },
|
||||
);
|
||||
const opts = (extras?: pulumi.ResourceOptions): pulumi.ResourceOptions => ({
|
||||
provider: k8sProvider,
|
||||
...extras,
|
||||
|
||||
@@ -18,7 +18,13 @@ const grafanaDbPassword = config.requireSecret("grafanaDbPassword");
|
||||
const grafanaDbHost = config.requireSecret("grafanaDbHost");
|
||||
const grafanaDbName = config.require("grafanaDbName");
|
||||
|
||||
const k8sProvider = new k8s.Provider("k3s", { kubeconfig });
|
||||
// Keep the kubeconfig stored in state. A changed API address would otherwise
|
||||
// make Pulumi replace the provider and every resource in this stack.
|
||||
const k8sProvider = new k8s.Provider(
|
||||
"k3s",
|
||||
{ kubeconfig },
|
||||
{ ignoreChanges: ["kubeconfig"] },
|
||||
);
|
||||
|
||||
const monitoringNs = new k8s.core.v1.Namespace(
|
||||
"monitoring",
|
||||
|
||||
Reference in new issue
Block a user