refactor(db): extract Supabase migrations from release artifact
This commit is contained in:
parent
2ef37683cb
commit
7d9e518f86
20 changed files with 113 additions and 185 deletions
test
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue