refactor(db): extract Supabase migrations from release artifact

This commit is contained in:
Peter 2025-01-05 11:42:15 +01:00
parent 2ef37683cb
commit 7d9e518f86
Signed by: prskr
GPG key ID: F56BED6903BC5E37
20 changed files with 113 additions and 185 deletions

View file

@ -316,7 +316,7 @@ func serviceAccountToken() (string, error) {
// Parse the JSON output to extract the token
var token tokenRequest
err = json.Unmarshal([]byte(output), &token)
err = json.Unmarshal(output, &token)
g.Expect(err).NotTo(HaveOccurred())
out = token.Status.Token

View file

@ -92,7 +92,7 @@ func IsPrometheusCRDsInstalled() bool {
if err != nil {
return false
}
crdList := GetNonEmptyLines(string(output))
crdList := GetNonEmptyLines(output)
for _, crd := range prometheusCRDs {
for _, line := range crdList {
if strings.Contains(line, crd) {
@ -153,7 +153,7 @@ func IsCertManagerCRDsInstalled() bool {
}
// Check if any of the Cert Manager CRDs are present
crdList := GetNonEmptyLines(string(output))
crdList := GetNonEmptyLines(output)
for _, crd := range certManagerCRDs {
for _, line := range crdList {
if strings.Contains(line, crd) {