Exemple #1
0
        public void InstallStarterkitCommon(InstallerProcess installerProcess)
        {
            this.logger.LogInformation("Install Starterkit Commons");

            this.kubernetesHelper.CreateNameSpace("starterkit");
            // this.processHelper.Run("kubectl", "apply -f ./../components/common/cert.yaml");
            installerProcess.AddExecutedTask("InstallStarterkitCommon");
        }
Exemple #2
0
        public void InstallRancher(InstallerProcess installerProcess)
        {
            this.InstallIngress();
            this.InstallCertManager();
            this.InstallRancher();

            ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, errors) => true;

            this.WaitUntilIsUpAndReady();
            this.Login();
            this.ChangePassword();
            this.SetServerUrl();
            this.WaitUntilRancherIsActive();
            this.ExecuteUpdatesForDockerDesktop();
            installerProcess.AddExecutedTask("InstallRancher");

            ServicePointManager.ServerCertificateValidationCallback = null;
        }
Exemple #3
0
        public void InstallJenkins(InstallerProcess installerProcess)
        {
            this.logger.LogInformation("Install Jenkins");
            if (!installerProcess.ExecutedActions.Contains("InstallStarterkitCommon"))
            {
                InstallStarterkitCommon(installerProcess);
            }

            this.kubernetesHelper.InstallResourceIfNotExists(
                "starterkit",
                "configmap",
                "starterkit",
                "--from-file=./../components/jenkins/config");
            this.kubernetesHelper.InstallApplicationeIfNotExists(
                "jenkins",
                "stable/jenkins",
                "starterkit",
                $"-f ./../components/jenkins/values.yaml",
                "deploy/jenkins");

            installerProcess.AddExecutedTask("InstallJenkins");
        }
Exemple #4
0
        public void InstallLdap(InstallerProcess installerProcess)
        {
            this.logger.LogInformation("Install LDAP");
            if (!installerProcess.ExecutedActions.Contains("InstallStarterkitCommon"))
            {
                InstallStarterkitCommon(installerProcess);
            }

            this.kubernetesHelper.InstallApplicationeIfNotExists(
                "ldap",
                "stable/openldap",
                "starterkit",
                $"-f ./../components/openldap/values.yaml --set adminPassword=admin --set configPassword=admin",
                "deploy/ldap-openldap");
            this.kubernetesHelper.InstallApplicationeIfNotExists(
                "ldap-ui",
                "",
                "starterkit",
                $"./../components/openldapui",
                "deploy/ldap-ui-openldapui");
            installerProcess.AddExecutedTask("InstallLdap");
        }