forked from open-feature/open-feature-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.go
23 lines (21 loc) · 928 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package flagd
import (
"github.com/open-feature/open-feature-operator/common"
"github.com/open-feature/open-feature-operator/common/types"
resources "github.com/open-feature/open-feature-operator/controllers/core/flagd/common"
)
func NewFlagdConfiguration(env types.EnvConfig, imagePullSecrets []string, labels map[string]string, annotations map[string]string) resources.FlagdConfiguration {
return resources.FlagdConfiguration{
Image: env.FlagdImage,
Tag: env.FlagdTag,
OperatorDeploymentName: common.OperatorDeploymentName,
FlagdPort: env.FlagdPort,
OFREPPort: env.FlagdOFREPPort,
SyncPort: env.FlagdSyncPort,
ManagementPort: env.FlagdManagementPort,
DebugLogging: env.FlagdDebugLogging,
ImagePullSecrets: imagePullSecrets,
Labels: labels,
Annotations: annotations,
}
}