faint-motherboard-95438
01/02/2019, 6:28 PMpulumi.ComponentResource
, let’s call it MyComponent
, creating in its constructor
a k8s.core.v1.ConfigMap
and a k8s.helm.v2.Chart
the former getting a direct reference to it in the later values
args.
Both have their opts
like { parent: this }
, this
obviously referencing MyComponent
.
MyComponent
is called with opts
like { providers: { kubernetes: k8sProvider /* a working k8s.Provider instance */ } }
In this situation I get this error : error: Error: Explicit providers may not be used with component resources
Where things get weirder is that if I remove opts
along with the parent reference from the ConfigMap
(and only from this one), the error disappear.
I tracked down the error in pulumi.ComponentResource
:
if (opts.provider !== undefined) {
throw new errors_1.ResourceError("Explicit providers may not be used with component resources", opts.parent);
}
That does not make any sense for me in this situation, I don’t even set an opts.provider
anywhere.
Is this intended (and if so I could use some help to understand it) or should I open an issue ?white-balloon-205
Hello everyone ! First a happy new year to all of you. And wishing to accomplish great things with pulumi to @echoing-match-29901 for this new year to come.Thanks @faint-motherboard-95438! Happy new years to you and everyone else here in the Pulumi community. We're looking forward to an exciting 2019 for Pulumi!
cuddly-eye-68174
01/03/2019, 10:24 AMrough-oil-1458
01/03/2019, 10:20 PMgifted-island-55702
01/04/2019, 10:32 AMfaint-motherboard-95438
01/04/2019, 1:28 PMgifted-island-55702
01/04/2019, 2:17 PM(Cluster)RoleBinding
when a roleRef
is changed - shall I open a github issue?
kubernetes:<http://rbac.authorization.k8s.io:RoleBinding|rbac.authorization.k8s.io:RoleBinding> (k8s-auditors):
error: Plan apply failed: 1 error occurred:
* <http://RoleBinding.rbac.authorization.k8s.io|RoleBinding.rbac.authorization.k8s.io> "k8s-auditors" is invalid: roleRef: Invalid value: rbac.RoleRef{APIGroup:"<http://rbac.authorization.k8s.io|rbac.authorization.k8s.io>", Kind:"ClusterRole", Name:"view"}: cannot change roleRef
gifted-island-55702
01/04/2019, 2:58 PMcore.v1.ContainerPort
etc are not exported. Is there a change to change it? I would like to create my own ComponentResource
class that would compose multiple k8s resources as a single ’deployment unit` and I would like to accept input options like a list of core.v1.ContainerPort
or core.v1.EnvVar
to customise the pod spec that will be part of that deployment. Otherwise I will need to create my own types to cover that which will be unnecessary boilerplate 😞chilly-photographer-60932
01/05/2019, 2:26 AMbusy-umbrella-36067
01/05/2019, 4:45 PMfaint-motherboard-95438
01/07/2019, 1:35 PM@pulumi/gcp
) :
warning: urn:pulumi:REDACTED::REDACTED::REDACTED:Cluster$gcp:container/nodePool:NodePool::REDACTED verification warning: "node_config.0.taint": [DEPRECATED] This field is in beta and will be removed from this provider. Use it in the the google-beta provider instead. See <https://terraform.io/docs/providers/google/provider_versions.html> for more details.
The page says terraform provides 2 providers google
and google-beta
but I don’t see how to choose between them from a pulumi point of view, there’s only one class Provider
without a beta
option in @pulumi/gcp
powerful-football-81694
01/07/2019, 2:04 PMpreview
and update
operations, but which are not config values stored in the stack but rather set and known by the release job on a per-release basis.helpful-advantage-49286
01/07/2019, 7:54 PMbusy-umbrella-36067
01/08/2019, 12:47 AM@pulumi/docker
provider.
I tried to write it up as best as I could: https://github.com/pulumi/pulumi-docker/issues/56
Not sure if its an actual bug, I may just be using the provider incorrectlychilly-dusk-63796
01/09/2019, 8:06 PMearly-musician-41645
01/09/2019, 8:25 PMpulumi refresh
or pulumi destroy
?
Do you want to perform this destroy? yes
Destroying (tableau/online-sandbox-3-vpc-0d18addcc5815ae23):
error: [409] Conflict: Another update is currently in progress.
early-musician-41645
01/09/2019, 8:31 PMDo you want to perform this destroy? yes
Destroying (tableau/online-vnext-10az):
Type Name Status Info
pulumi:pulumi:Stack eks-cluster-online-vnext-10az 2 messages
- ├─ kubernetes:core:ConfigMap kube-system/online-splunk-config **deleting failed** 1 error
- └─ kubernetes:extensions:DaemonSet kube-system/splunk-forwarder **deleting failed** 1 error
Diagnostics:
kubernetes:core:ConfigMap (kube-system/online-splunk-config):
error: Plan apply failed: Unauthorized
pulumi:pulumi:Stack (eks-cluster-online-vnext-10az):
warning: Cluster failed to report its version number; falling back to 1.9%!(EXTRA bool=false)
warning: Cluster failed to report its version number; falling back to 1.9%!(EXTRA bool=false)
kubernetes:extensions:DaemonSet (kube-system/splunk-forwarder):
error: Plan apply failed: Unauthorized
Permalink: <https://app.pulumi.com/tableau/online-vnext-10az/updates/82>
error: update failed
Any ideas on how I can modify/destroy it?early-musician-41645
01/09/2019, 8:36 PMhelpful-advantage-49286
01/09/2019, 9:31 PMearly-musician-41645
01/09/2019, 10:41 PMlet iamStack = new pulumi.StackReference(config.require("aws-iam-stack"));
let clusterAutomationAccessRoleArn = iamStack.getOutput("clusterAutomationAccessRoleArn");
if (config.get("clusterAutomationAccessRoleArn") != undefined) {
clusterAutomationAccessRoleArn = config.require("clusterAutomationAccessRoleArn");
}
index.ts(71,3): error TS2322: Type 'string' is not assignable to type 'Output<any>'.
The ARN is exported in another stack like this:
export const clusterAutomationAccessRoleArn = automationRole.arn;
early-musician-41645
01/09/2019, 10:53 PMhelpful-advantage-49286
01/09/2019, 10:53 PMmicroscopic-florist-22719
early-musician-41645
01/09/2019, 10:54 PMindex.ts(65,38): error TS2554: Expected 1 arguments, but got 0.
microscopic-florist-22719
microscopic-florist-22719
let iamStack = new pulumi.StackReference(config.require("aws-iam-stack"));
let clusterAutomationAccessRoleArn: pulumi.Input<string> = <pulumi.Output<string>>iamStack.getOutput("clusterAutomationAccessRoleArn");
if (config.get("clusterAutomationAccessRoleArn") != undefined) {
clusterAutomationAccessRoleArn = config.require("clusterAutomationAccessRoleArn");
}
early-musician-41645
01/09/2019, 10:57 PMmicroscopic-florist-22719
adventurous-kilobyte-12973
01/09/2019, 11:27 PMadventurous-kilobyte-12973
01/09/2019, 11:27 PM