Add ssl to the final image
This commit is contained in:
parent
54aabc642d
commit
b1464a96c7
@ -5,6 +5,7 @@ import (
|
|||||||
b64 "encoding/base64"
|
b64 "encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"git.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/helmhelper"
|
"git.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/helmhelper"
|
||||||
"git.badhouseplants.net/softplayer/softplayer-backend/internal/helpers/helmrelease"
|
"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))
|
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{
|
appSecret := corev1.Secret{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: formattedName[0:10],
|
Name: formattedName[0:20],
|
||||||
Namespace: app.UserID,
|
Namespace: app.UserID,
|
||||||
Labels: map[string]string{
|
Labels: map[string]string{
|
||||||
"component": "install",
|
"component": "install",
|
||||||
|
Loading…
Reference in New Issue
Block a user