Add ssl to the final image

This commit is contained in:
Nikolai Rodionov 2024-05-05 20:06:26 +02:00
parent 54aabc642d
commit b1464a96c7
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -5,6 +5,7 @@ import (
b64 "encoding/base64"
"fmt"
"os"
"strings"
"git.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/helmhelper"
"git.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/helmrelease"
@ -132,10 +133,10 @@ func (app *Application) Create(ctx context.Context) error {
}
logrus.Info(string(cfgYaml))
formattedName := b64.StdEncoding.EncodeToString([]byte(app.Data.Application + app.Data.Name))
formattedName := strings.ToLower(b64.StdEncoding.EncodeToString([]byte(app.Data.Application + app.Data.Name)))
appSecret := corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: formattedName[0:10],
Name: formattedName[0:20],
Namespace: app.UserID,
Labels: map[string]string{
"component": "install",