sunguroku 5 лет назад
Родитель
Сommit
949b84bac4

+ 2 - 8
cmd/app/main.go

@@ -102,13 +102,7 @@ func main() {
 		IdleTimeout:  appConf.Server.TimeoutIdle,
 	}
 
-	if appConf.Server.Production {
-		if err := s.ListenAndServeTLS("/etc/wss/tls.crt", "/etc/wss/tls.key"); err != nil && err != http.ErrServerClosed {
-			log.Fatal("Server startup failed", err)
-		}
-	} else {
-		if err := s.ListenAndServe(); err != nil && err != http.ErrServerClosed {
-			log.Fatal("Server startup failed", err)
-		}
+	if err := s.ListenAndServe(); err != nil && err != http.ErrServerClosed {
+		log.Fatal("Server startup failed", err)
 	}
 }

+ 1 - 1
dashboard/src/components/image-selector/ImageSelector.tsx

@@ -65,7 +65,7 @@ export default class ImageSelector extends Component<PropsType, StateType> {
                 })
                 images.push(...newImg)
                 this.setState({
-                  images: [],
+                  images,
                   registryId: registry.id,
                   loading: false,
                   error: false,

+ 0 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/SettingsSection.tsx

@@ -32,7 +32,6 @@ export default class SettingsSection extends Component<PropsType, StateType> {
 
   redeployWithNewImage = (img: string, tag: string) => {
     let { currentCluster, currentProject } = this.context;
-    console.log(img, tag)
     let image = {
       image: {
         repository: img,

+ 0 - 1
internal/config/config.go

@@ -25,7 +25,6 @@ type ServerConf struct {
 	TimeoutRead    time.Duration `env:"SERVER_TIMEOUT_READ,default=5s"`
 	TimeoutWrite   time.Duration `env:"SERVER_TIMEOUT_WRITE,default=10s"`
 	TimeoutIdle    time.Duration `env:"SERVER_TIMEOUT_IDLE,default=15s"`
-	Production     bool          `env:"PRODUCTION,default=false"`
 	IsLocal        bool          `env:"IS_LOCAL,default=false"`
 
 	GithubClientID     string `env:"GITHUB_CLIENT_ID"`