generated from giantswarm/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor config, move configuration into config package and pass it a…
…round (#184)
- Loading branch information
1 parent
4484f05
commit a7f6ca4
Showing
2 changed files
with
52 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package config | ||
|
||
import ( | ||
"github.com/giantswarm/observability-operator/pkg/common" | ||
"github.com/giantswarm/observability-operator/pkg/monitoring" | ||
) | ||
|
||
type Config struct { | ||
MetricsAddr string | ||
EnableLeaderElection bool | ||
ProbeAddr string | ||
SecureMetrics bool | ||
EnableHTTP2 bool | ||
|
||
ManagementCluster common.ManagementCluster | ||
|
||
Monitoring monitoring.Config | ||
} |