feat: basic functionality implemented
- added Core CRD to manage DB migrations & configuration, PostgREST and GoTrue (auth) - added APIGateway CRD to manage Envoy proxy - added Dashboard CRD to manage (so far) pg-meta and (soon) studio deployments - implemented basic Envoy control plane based on K8s watcher
This commit is contained in:
parent
2fae578618
commit
647f602c79
123 changed files with 12173 additions and 581 deletions
test/e2e
|
@ -234,6 +234,44 @@ var _ = Describe("Manager", Ordered, func() {
|
|||
))
|
||||
})
|
||||
|
||||
It("should provisioned cert-manager", func() {
|
||||
By("validating that cert-manager has the certificate Secret")
|
||||
verifyCertManager := func(g Gomega) {
|
||||
cmd := exec.Command("kubectl", "get", "secrets", "webhook-server-cert", "-n", namespace)
|
||||
_, err := utils.Run(cmd)
|
||||
g.Expect(err).NotTo(HaveOccurred())
|
||||
}
|
||||
Eventually(verifyCertManager).Should(Succeed())
|
||||
})
|
||||
|
||||
It("should have CA injection for mutating webhooks", func() {
|
||||
By("checking CA injection for mutating webhooks")
|
||||
verifyCAInjection := func(g Gomega) {
|
||||
cmd := exec.Command("kubectl", "get",
|
||||
"mutatingwebhookconfigurations.admissionregistration.k8s.io",
|
||||
"supabase-operator-mutating-webhook-configuration",
|
||||
"-o", "go-template={{ range .webhooks }}{{ .clientConfig.caBundle }}{{ end }}")
|
||||
mwhOutput, err := utils.Run(cmd)
|
||||
g.Expect(err).NotTo(HaveOccurred())
|
||||
g.Expect(len(mwhOutput)).To(BeNumerically(">", 10))
|
||||
}
|
||||
Eventually(verifyCAInjection).Should(Succeed())
|
||||
})
|
||||
|
||||
It("should have CA injection for validating webhooks", func() {
|
||||
By("checking CA injection for validating webhooks")
|
||||
verifyCAInjection := func(g Gomega) {
|
||||
cmd := exec.Command("kubectl", "get",
|
||||
"validatingwebhookconfigurations.admissionregistration.k8s.io",
|
||||
"supabase-operator-validating-webhook-configuration",
|
||||
"-o", "go-template={{ range .webhooks }}{{ .clientConfig.caBundle }}{{ end }}")
|
||||
vwhOutput, err := utils.Run(cmd)
|
||||
g.Expect(err).NotTo(HaveOccurred())
|
||||
g.Expect(len(vwhOutput)).To(BeNumerically(">", 10))
|
||||
}
|
||||
Eventually(verifyCAInjection).Should(Succeed())
|
||||
})
|
||||
|
||||
// +kubebuilder:scaffold:e2e-webhooks-checks
|
||||
|
||||
// TODO: Customize the e2e test suite with scenarios specific to your project.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue