most-lighter-95902
07/04/2022, 12:02 AMstorage:
# -- Sets the storage type. Supported values are sandbox, s3, gcs and custom.
type: s3
# -- bucketName defines the storage bucket flyte will use. Required for all types except for sandbox.
bucketName: "{{ .Values.userSettings.bucketName }}"
s3:
region: "{{ .Values.userSettings.accountRegion }}"
most-lighter-95902
07/04/2022, 12:03 AMmost-lighter-95902
07/04/2022, 12:03 AMnew k8s.helm.v3.Release(
flyteHelmReleaseName,
{
name: flyteHelmReleaseName,
namespace: flyteNsName,
createNamespace: true,
chart: 'flyte',
version: 'v1.1.0-beta.5',
repositoryOpts: {
repo: '<https://helm.flyte.org>',
},
valueYamlFiles,
values: {
userSettings: {
accountRegion: awsRegion,
bucketName: flyteBucketName,
...
}
},
...
most-lighter-95902
07/04/2022, 12:04 AMfamous-salesclerk-74711
07/05/2022, 6:07 PMfamous-salesclerk-74711
07/05/2022, 8:31 PMpulumi_kubernetes
resources to pull from a default eks_provider w/o explicitly passing one in in the ResourceOptions
? Kind of like how environment variables can auto-configure resources with the aws_provider
?helpful-morning-53046
07/06/2022, 4:55 PMnodeGroupOptions
as I get an error Setting nodeGroupOptions, and any set of singular node group option(s) on the cluster, is mutually exclusive. Choose a single approach.
when trying to spin up a NodeGroup (or ManagedNodeGroup) alongside the existing one.
Does anyone have any advice as to how to perform a zero downtime worker node upgrade i.e. without having to tear them all down?important-leather-28796
07/06/2022, 6:16 PMcurl <https://github.com/cert-manager/cert-manager/releases/download/v1.8.2/cert-manager.yaml> -O
is a zero byte file. Pulumi just started reporting this with a not-so-great error. Is there a workaround for this?
error: TypeError: Cannot read properties of undefined (reading 'map')
at /Users/kross/projects/archetype/node_modules/@pulumi/yaml/yaml.ts:2993:14
at processTicksAndRejections (node:internal/process/task_queues:95:5)
victorious-exabyte-70545
07/06/2022, 6:24 PMcrooked-laptop-67565
07/06/2022, 7:51 PMkubernetes.Provider
for an EKS cluster? I have two Pulumi projects, one that sets up infra like k8s and databases, and a second one for apps that deploy to kubernetes and use the db etc... the app project needs to work with a kubernetes provider (eg when I define a Service
), like the one that's available from new eks.Cluster(...)
. But the app code isn't doing the cluster creation, so it presumably needs to create that provider for itself.
(I'm new to both Pulumi and k8s so please let me know if any part of what I said doesn't make sense or seems wrong).victorious-exabyte-70545
07/06/2022, 8:22 PMmost-lighter-95902
07/06/2022, 11:21 PMvalueYamlFiles
and values
together where the valueYamlFiles
yaml is referencing some values from values
object using this kind of templating syntax:
storage:
type: s3
bucketName: "{{ .Values.userSettings.bucketName }}"
most-lighter-95902
07/06/2022, 11:21 PMvalues
key in the Pulumi helm release resource?narrow-translator-93508
07/07/2022, 6:54 AMPulumi
and helm
, no problem to install ArgoCD
but when I try to configure dex.config
section, it expects a string
rather than a map
and when I pass a string it is not rendered with the right structure in the config mapnarrow-translator-93508
07/07/2022, 6:55 AM_, err := helm.NewRelease(
a.Context, "argocd", &helm.ReleaseArgs{
Chart: pulumi.String("argo-cd"),
RepositoryOpts: helm.RepositoryOptsArgs{
Repo: pulumi.String("<https://argoproj.github.io/argo-helm>"),
},
Namespace: pulumi.String(a.Config.Require("namespace")),
Version: pulumi.String(a.Config.Require("version")),
Values: pulumi.Map{
"dex": pulumi.Map{
"enabled": pulumi.Bool(true),
},
"server": pulumi.Map{
"config": pulumi.Map{
"dex.config": pulumi.Map{
"connectors": pulumi.MapArray{
pulumi.Map{
"config": pulumi.StringMap{
"issuer": pulumi.String("<https://accounts.google.com>"),
"clientID": a.Config.RequireSecret("client-id"),
"clientSecret": a.Config.RequireSecret("client-secret"),
},
"type": pulumi.String("oidc"),
"id": pulumi.String("google"),
"name": pulumi.String("Google"),
},
},
},
},
},
},
},
)
narrow-translator-93508
07/07/2022, 6:55 AMmap
it generates this error messagenarrow-translator-93508
07/07/2022, 6:55 AMDiagnostics:
kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> (argocd):
error: error validating "": error validating data: ValidationError(ConfigMap.data.dex.config): invalid type for io.k8s.api.core.v1.ConfigMap.data: got "map", expected "string"
narrow-translator-93508
07/07/2022, 6:56 AMnarrow-translator-93508
07/07/2022, 6:56 AMnarrow-translator-93508
07/07/2022, 10:19 AMnarrow-translator-93508
07/07/2022, 10:19 AMnarrow-translator-93508
07/07/2022, 10:19 AMpulumi.All(
a.Config.RequireSecret("client-id"), a.Config.RequireSecret("client-secret"),
).ApplyT(
func(args []interface{}) error {
dex := &OIDCConfig{
Connectors: []*OIDCConnector{
{
Config: map[string]interface{}{
"issuer": "<https://accounts.google.com>",
"clientID": args[0].(string),
"clientSecret": args[1].(string),
},
Type: "oidc",
Name: "Google",
ID: "google",
},
},
}
d, err := yaml.Marshal(&dex)
if err != nil {
return errors.Wrap(err, "SetupArgoCD: failed creating dex config")
}
_, err = helm.NewRelease(
a.Context, "argocd", &helm.ReleaseArgs{
Chart: pulumi.String("argo-cd"),
RepositoryOpts: helm.RepositoryOptsArgs{
Repo: pulumi.String("<https://argoproj.github.io/argo-helm>"),
},
Namespace: pulumi.String(a.Config.Require("namespace")),
Version: pulumi.String(a.Config.Require("version")),
Values: pulumi.Map{
"dex": pulumi.Map{
"enabled": pulumi.Bool(true),
},
"server": pulumi.Map{
"config": pulumi.Map{
"dex.config": pulumi.String(d),
},
},
},
},
)
if err != nil {
return errors.Wrap(err, "SetupArgoCD: failed installing helm chart")
}
return nil
},
)
narrow-translator-93508
07/07/2022, 10:21 AMmap
represented as string
curved-morning-41391
07/07/2022, 11:29 PMkubectl wait --for=condition=available --timeout=600s deployment/cert-manager-webhook -n cert-manager
in pulumi?glamorous-australia-21342
07/07/2022, 11:34 PMglamorous-australia-21342
07/07/2022, 11:35 PMglamorous-australia-21342
07/07/2022, 11:35 PMcurved-morning-41391
07/08/2022, 2:24 AMglamorous-australia-21342
07/08/2022, 2:25 AMcurved-morning-41391
07/08/2022, 2:33 AMkubectl version
?curved-morning-41391
07/08/2022, 2:33 AMkubectl version
?billowy-army-68599
07/08/2022, 3:11 PMkubectl version
just returns the server and client api version.platformVersion
output that you need?curved-morning-41391
07/08/2022, 8:13 PM