theconductor
09/16/2024, 3:17 PMvroldanbet
09/16/2024, 3:27 PMtheconductor
09/16/2024, 3:38 PMSpiceDBCluster
CRD, our guy needed to do something hacky to get it working. It did work though, so definitely not a showstoppervroldanbet
09/16/2024, 4:23 PMtheconductor
09/16/2024, 5:33 PMtheconductor
09/16/2024, 5:33 PMvroldanbet
09/17/2024, 9:57 AMbootstrap-crds
which will make sure the first thing done is to apply the CRDS to the APIServer. I think it would make sense for the terraform provider to have that enabled to address the "chicken and egg problem".vroldanbet
09/17/2024, 10:01 AMSpiceDBCluster
resource, but we don't know if the spicedb-operator has applied that yet
I guess one option is to implement a wait function that lists CRD resources. Whenever the SpiceDBCluster CRD appears via the API, any logic implemented over CDKTF can proceed.
Is there anything we could do to make any of this easier? What if provided a new command to the spicedb-operator
CLI like spicedb-operator bootstrap-crds
, then it would return 0, and after that you can start up spicedb-operator
normally.vroldanbet
09/17/2024, 10:01 AMecordell
09/17/2024, 6:48 PMecordell
09/17/2024, 6:49 PM--bootstrap-spicedbs
and it expects a file that is a yaml
stream of SpiceDBCluster objects (i think json is supported too, would have to double check)