brave-angle-33257
10/19/2018, 12:28 AMquaint-queen-37896
10/19/2018, 12:53 AMworried-sandwich-8337
10/19/2018, 6:49 AMtall-monitor-77779
10/19/2018, 1:44 PMnutritious-grass-41895
10/19/2018, 1:50 PMnutritious-grass-41895
10/19/2018, 1:51 PMbright-motherboard-93404
10/19/2018, 1:57 PMsparse-insurance-40223
10/19/2018, 2:00 PMsparse-insurance-40223
10/19/2018, 2:01 PMsparse-insurance-40223
10/19/2018, 2:01 PMquiet-wolf-18467
quiet-wolf-18467
quiet-wolf-18467
adamant-restaurant-73893
10/19/2018, 3:44 PMadamant-restaurant-73893
10/19/2018, 6:54 PMorange-tailor-85423
10/19/2018, 7:11 PMorange-tailor-85423
10/19/2018, 7:11 PMnutritious-grass-41895
10/19/2018, 7:30 PMnutritious-grass-41895
10/19/2018, 7:30 PMnutritious-grass-41895
10/19/2018, 7:49 PMcuddly-leather-18640
10/19/2018, 7:51 PMCannot call '.get' during update or preview
and I think it’s from the following new TS I added to my index.ts:
let apiIntentRobotServiceAccount = new k8s.core.v1.ServiceAccount(
'api-intent-robot-service-account', {
metadata: {
name: 'api-intent-robot',
namespace: context.inferredNamespace
}
}
)
let apiIntentEphemeralRobotRole = new k8s.rbac.v1.Role(
'api-intent-ephemeral-robot-role',
{
metadata: {
name: 'api-intent-robot-role',
namespace: EPHEMERAL_NAMESPACE_NAME
},
rules: [
{
apiGroups: [''],
resources: ['pods', 'pods/status'],
verbs: ['get', 'create', 'patch', 'delete', 'list', 'status']
}
]
}
)
let apiIntentEphemeralRolebinding = new k8s.rbac.v1.RoleBinding(
'api-intent-ephemeral-robot-rolebinding',
{
metadata: {
name: 'api-intent-robot-rolebinding',
namespace: EPHEMERAL_NAMESPACE_NAME
},
roleRef: {
name: apiIntentEphemeralRobotRole.metadata.get().name,
apiGroup: apiIntentEphemeralRobotRole.apiVersion,
kind: apiIntentEphemeralRobotRole.kind
},
subjects: [
{
kind: apiIntentRobotServiceAccount.kind,
name: apiIntentRobotServiceAccount.metadata.get().name,
}
]
})
Am I not allowed to get the name of a resource to use in the spec of another resource?nutritious-grass-41895
10/19/2018, 8:04 PMnutritious-grass-41895
10/19/2018, 8:04 PMastonishing-queen-78888
10/19/2018, 8:13 PMnutritious-grass-41895
10/19/2018, 8:19 PMpulimi up
cuddly-leather-18640
10/19/2018, 8:21 PMbrave-angle-33257
10/19/2018, 8:36 PMpulumi refresh
?quick-action-34599
10/19/2018, 8:46 PMquiet-wolf-18467
quick-action-34599
10/19/2018, 9:08 PM