proud-pizza-80589
01/20/2021, 2:59 PMimport * as k8s from '@pulumi/kubernetes';
import * as pulumi from '@pulumi/pulumi';
// get the cluster stack from infra-launchpad-cluster package
const clusterStack = new pulumi.StackReference(`settlemint/bpaas-clusters/production`);
// fetch the correct kubeconfig file
const kubeconfig = clusterStack.requireOutput(`${'GKE'}${'EUROPE'}kubeconfig`.toLowerCase());
// create a k8s provider to talk to the cluster for this service based on provider and region
const provider = new k8s.Provider(`kdkdkdkdkdkd`, {
kubeconfig,
});
console.log(provider);
It is normal that there are a lot of open promises since it is embedded in my application.
In the automation api the error reported is an unhandled error occurred: The Pulumi runtime detected that 58 promises were still active
gifted-terabyte-92288
01/21/2021, 3:16 PMproud-pizza-80589
01/21/2021, 5:20 PMlimited-rainbow-51650
01/24/2021, 11:55 AMmagnificent-television-29869
01/25/2021, 9:32 AMlemon-agent-27707
01/27/2021, 11:23 PMlittle-cartoon-10569
01/28/2021, 3:31 AMsquare-art-73366
02/02/2021, 12:19 AMlemon-agent-27707
02/03/2021, 11:23 PMred-match-15116
02/09/2021, 8:25 PMlemon-agent-27707
02/10/2021, 8:42 PMlimited-rainbow-51650
02/15/2021, 5:59 PMUpResult
after running stack.Up
?
https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v2/go/x/auto#UpResult
The update ID is what I get returned from this platform REST call:
https://api.pulumi.com/api/stacks/{{.Organization}}/{{.Project}}/{{.Stack}}/updates?output-type=service&pageSize=10&page=1alert-processor-41605
02/23/2021, 9:21 PMunknown flag: --page-size
after the up runs. Up is successful, but this error is thrown whent he history is getting fetched. This happened locally and running brew upgrade pulumi
fixed the problem. When I'm running in my CI environment (Github Actions), however, I do not know how to resolve it as I don't have a specific version of pulumi running in the action.
Any thoughts on how to resolve this? I will put the full error in a thread below.prehistoric-kite-30979
02/25/2021, 11:14 AMstack-name.pulumi.yaml
file.little-orange-65618
02/26/2021, 12:30 AMdisplay_name
and will be removed in v2.0 of this provider.
The 'name' one happens a lot and seems to be tied to Azure role (assignment / lookup, hard to tell since the log doesn't indicate where) but checking all name properties (in resource creation and member variables) makes it seem like none of them support display_namebored-flower-84342
03/02/2021, 9:00 PMcolossal-australia-65039
03/03/2021, 11:21 PMStackReference
but it only ties the stacks together with a string value (the name of the stack). I'd like to do this with an object reference so I can run a single command to bring up multiple stacks all in the correct order. Is something like this possible?colossal-australia-65039
03/04/2021, 12:26 AMcreateOrSelectStack
so I don't need to run that and then run setAllConfig
as two imperative actions?fast-dinner-32080
03/06/2021, 1:39 AMfaint-table-42725
03/08/2021, 6:24 PMclever-cartoon-41433
03/08/2021, 11:43 PMtall-needle-56640
03/09/2021, 4:32 PMvar servicePrincipalId = Environment.GetEnvironmentVariable("AzureServicePrincipalId");
programArgs.EnvironmentVariables = new Dictionary<string, string>
{
["ARM_CLIENT_ID"] = servicePrincipalId,
["ARM_CLIENT_SECRET"] = Environment.GetEnvironmentVariable("AzureServicePrincipalKey"),
["ARM_TENANT_ID"] = Environment.GetEnvironmentVariable("AzureServiceTenantId"),
["ARM_SUBSCRIPTION_ID"] = Environment.GetEnvironmentVariable("AzureSubscriptionId"),
};
var upResult = await stack.UpAsync();
I know ARM_SUBSCRIPTION_ID
is set to the correct value, but when I run (test in VS), it errors out saying it can't find the resource group. Turns out it is using the subscription ID I normally use (default), but why isn't it picking up the subscription ID I am setting?tall-needle-56640
03/09/2021, 6:48 PMGrpc.AspNetCore.Server.ServerCallHandler: Error: Error when executing service method 'Run'.
Pulumi.LogException: Error occurred during logging
---> Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="failed to connect to all addresses", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1615315279.587000000","description":"Failed to pick subchannel","file":"..\..\..\src\core\ext\filters\client_channel\<http://client_channel.cc|client_channel.cc>","file_line":4143,"referenced_errors":[{"created":"@1615315279.467000000","description":"failed to connect to all addresses","file":"..\..\..\src\core\ext\filters\client_channel\lb_policy\pick_first\<http://pick_first.cc|pick_first.cc>","file_line":398,"grpc_status":14}]}")
at Pulumi.GrpcEngine.LogAsync(LogRequest request)
at Pulumi.Deployment.Logger.LogAsync(LogSeverity severity, String message, Resource resource, Nullable`1 streamId, Nullable`1 ephemeral)
Any ideas?
Additional output:
Microsoft.Hosting.Lifetime: Information: Now listening on: <http://0.0.0.0:63544>
Microsoft.Hosting.Lifetime: Information: Application started. Press Ctrl+C to shut down.
Microsoft.Hosting.Lifetime: Information: Hosting environment: Production
Microsoft.Hosting.Lifetime: Information: Content root path: C:\repos\Atlas.Infrastructure.Templates\tests\Atlas.Infrastructure.Templates.Tests.Integration\bin\Debug\netcoreapp3.1
'testhost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\<http://Microsoft.NETCore.App|Microsoft.NETCore.App>\3.1.11\System.Runtime.CompilerServices.Unsafe.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'testhost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\<http://Microsoft.NETCore.App|Microsoft.NETCore.App>\3.1.11\System.Numerics.Vectors.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request starting HTTP/2 POST <http://127.0.0.1:63544/pulumirpc.LanguageRuntime/GetRequiredPlugins> application/grpc
'testhost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\<http://Microsoft.AspNetCore.App|Microsoft.AspNetCore.App>\3.1.11\Microsoft.AspNetCore.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Microsoft.AspNetCore.Routing.EndpointMiddleware: Information: Executing endpoint 'gRPC - /pulumirpc.LanguageRuntime/GetRequiredPlugins'
Microsoft.AspNetCore.Routing.EndpointMiddleware: Information: Executed endpoint 'gRPC - /pulumirpc.LanguageRuntime/GetRequiredPlugins'
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request starting HTTP/2 POST <http://127.0.0.1:63544/pulumirpc.LanguageRuntime/Run> application/grpc
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request finished in 88.9516ms 200 application/grpc
Microsoft.AspNetCore.Routing.EndpointMiddleware: Information: Executing endpoint 'gRPC - /pulumirpc.LanguageRuntime/Run'
The thread 0x767c has exited with code 0 (0x0).
Microsoft.Hosting.Lifetime: Information: Application is shutting down...
red-match-15116
03/11/2021, 5:56 PMlimited-rainbow-51650
03/11/2021, 7:46 PMConfigMap
type in:
// SetAllConfig sets all values in the provided config map.
func (s *Stack) SetAllConfig(ctx context.Context, config ConfigMap) error {
return s.Workspace().SetAllConfig(ctx, s.Name(), config)
}
support Pulumi structured configuration? It doesn’t look like it.better-shampoo-48884
03/17/2021, 6:16 PMbetter-shampoo-48884
03/17/2021, 6:18 PMbetter-shampoo-48884
03/17/2021, 6:19 PMbrave-winter-60074
03/19/2021, 7:55 AMpackage main
import (
"context"
"fmt"
"os"
"<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi|github.com/pulumi/pulumi/sdk/v2/go/pulumi>"
"<http://github.com/pulumi/pulumi/sdk/v2/go/x/auto|github.com/pulumi/pulumi/sdk/v2/go/x/auto>"
"<http://github.com/pulumi/pulumi/sdk/v2/go/x/auto/optup|github.com/pulumi/pulumi/sdk/v2/go/x/auto/optup>"
)
func main() {
ctx := context.Background()
stackName := "salesforce"
better-shampoo-48884
03/21/2021, 2:13 PMbetter-shampoo-48884
03/21/2021, 2:13 PMclever-byte-21551
03/21/2021, 2:25 PMproject := workspace.Project{
Name: tokens.PackageName(projectName),
Runtime: workspace.NewProjectRuntimeInfo("go", nil),
}
w, err := auto.NewLocalWorkspace(
ctx,
auto.Program(deployFunc),
auto.Project(project),
)
if err != nil {
return nil, errorlib.Wrapf(err, "failed to create workspace")
}
w.SetEnvVar("PULUMI_CONFIG_PASSPHRASE", passphrase)
better-shampoo-48884
03/21/2021, 2:27 PMclever-byte-21551
03/21/2021, 3:09 PMbored-oyster-3147
03/21/2021, 4:17 PMbetter-shampoo-48884
03/21/2021, 4:21 PM