Remove environment.Environment struct
This commit completely removes the environment struct as it is no longer used.
This commit is contained in:
parent
3263920d6b
commit
473040a69f
40 changed files with 91 additions and 146 deletions
|
|
@ -5,7 +5,6 @@ import (
|
|||
"path/filepath"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
|
||||
)
|
||||
|
||||
// Web implements the ingress gateway for the distillery.
|
||||
|
|
@ -27,11 +26,11 @@ func (*Web) Context(parent component.InstallationContext) component.Installation
|
|||
return parent
|
||||
}
|
||||
|
||||
func (web Web) Stack(env environment.Environment) component.StackWithResources {
|
||||
func (web Web) Stack() component.StackWithResources {
|
||||
if web.Config.HTTP.HTTPSEnabled() {
|
||||
return web.stackHTTPS(env)
|
||||
return web.stackHTTPS()
|
||||
} else {
|
||||
return web.stackHTTP(env)
|
||||
return web.stackHTTP()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -39,8 +38,8 @@ func (web Web) Stack(env environment.Environment) component.StackWithResources {
|
|||
//go:embed web.env
|
||||
var httpsResources embed.FS
|
||||
|
||||
func (web *Web) stackHTTPS(env environment.Environment) component.StackWithResources {
|
||||
return component.MakeStack(web, env, component.StackWithResources{
|
||||
func (web *Web) stackHTTPS() component.StackWithResources {
|
||||
return component.MakeStack(web, component.StackWithResources{
|
||||
Resources: httpsResources,
|
||||
ContextPath: "web-https",
|
||||
EnvPath: "web.env",
|
||||
|
|
@ -58,8 +57,8 @@ func (web *Web) stackHTTPS(env environment.Environment) component.StackWithResou
|
|||
//go:embed web.env
|
||||
var httpResources embed.FS
|
||||
|
||||
func (web *Web) stackHTTP(env environment.Environment) component.StackWithResources {
|
||||
return component.MakeStack(web, env, component.StackWithResources{
|
||||
func (web *Web) stackHTTP() component.StackWithResources {
|
||||
return component.MakeStack(web, component.StackWithResources{
|
||||
Resources: httpResources,
|
||||
ContextPath: "web-http",
|
||||
EnvPath: "web.env",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue