eager-wall-56838
03/17/2024, 3:21 PMexport const cert = new k8s.apiextensions.CustomResource(
"cert",
{
apiVersion: "<http://cert-manager.io/v1|cert-manager.io/v1>",
kind: "Certificate",
spec: {
secretName: "foo-bar",
dnsNames: ["example.default.svc.cluster.local"],
issuerRef: { .. },
},
}
)
I need to get secretName
to reference in a subsequent deployment. My workaround is to make const certSecretName = "foo-bar"
then reference it in both places and add a dependsOn, but that's not great.
Thanks!dry-keyboard-94795
03/17/2024, 3:50 PMcert.spec.secretName
eager-wall-56838
03/17/2024, 4:28 PMProperty 'spec' does not exist on type 'CustomResource'.ts(2339)
dry-keyboard-94795
03/17/2024, 4:46 PMspec
is missingdry-keyboard-94795
03/17/2024, 4:57 PMeager-wall-56838
03/17/2024, 7:35 PMeager-wall-56838
03/17/2024, 7:38 PMdry-keyboard-94795
03/17/2024, 7:38 PM(cert as any).spec
eager-wall-56838
03/17/2024, 7:38 PMeager-wall-56838
03/17/2024, 7:38 PMdry-keyboard-94795
03/17/2024, 7:39 PMeager-wall-56838
03/17/2024, 7:41 PM