important-leather-28796
03/11/2019, 9:15 PMdependsOn
mechanism, it seems like it is not being respected by a helm chart that is the child of my Component
. Details inside ->Component
usage looks like:
export const certManager = new CertManager(
'certmanager',
{
cloudflareApiKey: new Config('cloudflare').require('apikey'),
email: output(stack.identity.getOutput('email')),
namespace,
staging: new Config('certmanager').requireBoolean('staging'),
},
opts({ dependsOn: [clusterAdminBinding, namespace] }),
)
dependsOn
inside my Component
definition to every child?opts
just to be sure, they look good to me:
options: { providers:
{ kubernetes:
Provider {
__pulumiResource: true,
__providers: {},
__protect: false,
urn: [OutputImpl],
id: [OutputImpl],
cluster: [OutputImpl],
context: [OutputImpl],
kubeconfig: [OutputImpl],
namespace: [OutputImpl],
__pulumiCustomResource: true } },
dependsOn:
[ ClusterRoleBinding {
__pulumiResource: true,
__providers: {},
__protect: false,
urn: [OutputImpl],
id: [OutputImpl],
apiVersion: [OutputImpl],
kind: [OutputImpl],
metadata: [OutputImpl],
roleRef: [OutputImpl],
subjects: [OutputImpl],
__pulumiCustomResource: true,
__inputs: [Object] },
Namespace {
__pulumiResource: true,
__providers: {},
__protect: false,
urn: [OutputImpl],
id: [OutputImpl],
apiVersion: [OutputImpl],
kind: [OutputImpl],
metadata: [OutputImpl],
spec: [OutputImpl],
status: [OutputImpl],
__pulumiCustomResource: true,
__inputs: [Object] } ] }
creamy-potato-29402
03/11/2019, 9:43 PMmicroscopic-florist-22719
dependsOn
are readyimportant-leather-28796
03/11/2019, 9:47 PMmicroscopic-florist-22719
important-leather-28796
03/11/2019, 9:51 PM'af:pulumi:CertManager'
- not sure where I could be making an error here. I’ll try to simplify and see if preview is correct at some pointmicroscopic-florist-22719
important-leather-28796
03/11/2019, 9:52 PMmicroscopic-florist-22719
important-leather-28796
03/11/2019, 9:53 PMdependsOn
yields the same errors.microscopic-florist-22719
important-leather-28796
03/11/2019, 10:03 PMmicroscopic-florist-22719
dependsOn
on the parent component should prevent its child resources from being created before they are ready.busy-pizza-73563
03/11/2019, 10:06 PMnamespace
a Namespace
resource instance? If so, can you use it in helm values like that?important-leather-28796
03/11/2019, 10:07 PMComponent
is a resource instance.const { cloudflareApiKey, email, namespace: namespaceObject, staging = false } = args
const namespace = namespaceObject.metadata.name
dependsOn: [namespaceObject, crds]
to the chartbusy-pizza-73563
03/11/2019, 10:08 PMnamespace
in both helm values and dependsOn
.important-leather-28796
03/11/2019, 10:09 PMbusy-pizza-73563
03/11/2019, 10:12 PMnamespaceObject.metadata.name
before actually creating the namespace...important-leather-28796
03/11/2019, 10:12 PMinfo
on creation is still failing on the retries e.g. Retry #5; creation failed: namespaces "development" not found
busy-pizza-73563
03/11/2019, 10:13 PMdefault
namespace and not complain about not finding development
namespace.important-leather-28796
03/11/2019, 10:20 PMdevelopment
exists, I need to look again at permissions or something else.