Kubegres is a Kubernetes operator allowing to deploy one or many clusters of PostgreSql instances and manage databases replication, failover and backup.
the patch makes minor changes to volume size and number of cluster nodes. happy to post it if it's deemed relevant.
however, when trying to generate the overlay with kustomize, i receive the following error:
Error: accumulating resources: accumulation err='accumulating resources from '../../synapse': '/home/wreck/git/jmk8s/synapse' must resolve to a file': recursed accumulation of path '/home/wreck/git/jmk8s/synapse': accumulating resources: accumulation err='accumulating resources from 'kubegres-cluster.yaml': yaml: line 11: did not find expected '-' indicator': got file 'kubegres-cluster.yaml', but '/home/wreck/git/jmk8s/synapse/kubegres-cluster.yaml' must be a directory to be a root
line 11 appears to be the part where i start defining env vars in the kubegres-cluster.yaml file, and attempting to manipulate this file changes the output of the error but never to anything that seems to work. i'm wondering if the custom resource is structured in such a way that kustomize isn't able to parse it correctly? or perhaps i'm doing something wrong. I've tried to follow the yaml structure in the examples as closely as i can.
I have the following kubegres resource defined for testing (
kubegres-cluster.yaml
):the resource is included in my base-level
kustomization.yaml
:and i reference both the base directory and a patch in my overlay:
the patch makes minor changes to volume size and number of cluster nodes. happy to post it if it's deemed relevant.
however, when trying to generate the overlay with kustomize, i receive the following error:
line 11 appears to be the part where i start defining env vars in the kubegres-cluster.yaml file, and attempting to manipulate this file changes the output of the error but never to anything that seems to work. i'm wondering if the custom resource is structured in such a way that kustomize isn't able to parse it correctly? or perhaps i'm doing something wrong. I've tried to follow the yaml structure in the examples as closely as i can.
i appreciate any help!