This commit is contained in:
Ybehrooz
2025-05-20 20:07:46 +03:30
parent 7bc33a8808
commit 965d6900be
7 changed files with 28 additions and 33 deletions

View File

@@ -70,13 +70,13 @@ func CreateApp(clustername string, ControlPlane string, PlatformVersion string,
}
// Generate unique cluster name with user prefix
uniqueClusterName := "test"
uniqueClusterName := clustername
app := ApplicationValues{
Name: uniqueClusterName,
Namespace: "ns-" + generateRandomString(4),
Path: "vcluster-0.21.1",
Cluster: "in-cluster",
Cluster: "schoobus-onsite",
Server: "https://kubernetes.default.svc",
RepoURL: "http://192.168.2.20:8015/root/application.git",
UserID: userID,
@@ -110,17 +110,17 @@ func CreateApp(clustername string, ControlPlane string, PlatformVersion string,
Name: "controlPlane.advanced.defaultImageRegistry",
Value: "192.168.2.43:31898",
},
{
Name: "controlPlane.distro.k8s.version",
Value: ControlPlane,
},
// {
// Name: "controlPlane.distro.k8s.version",
// Value: ControlPlane,
// },
{
Name: "controlPlane.distro.k8s.resources.limits.cpu",
Value: Cpu,
},
{
Name: "controlPlane.distro.k8s.resources.limits.memory",
Value: Memory,
Value: Memory + "Mi",
},
{
Name: "controlPlane.distro.k8s.resources.requests.cpu",