File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -85,17 +85,15 @@ spec:
8585 mountPath : /etc/fleet-scheduler
8686 readOnly : true
8787 env :
88- - name : FLEET_SCHEDULER_CONFIG
89- value : " /etc/fleet-scheduler/config.yaml"
9088 {{- if $.Values.env.endpoints.fleetdb.authenticate }}
91- - name : FLEET_SCHEDULER_FLEETDB_OIDC_CLIENT_SECRET
89+ - name : ENDPOINTS_FLEETDB_OIDC_CLIENT_SECRET
9290 valueFrom :
9391 secretKeyRef :
9492 name : fleet-scheduler-secrets
9593 key : fleetdb-oidc-client-secret
9694 {{- end }}
9795 {{- if $.Values.env.endpoints.conditionorc.authenticate }}
98- - name : FLEET_SCHEDULER_CONDITIONORC_OIDC_CLIENT_SECRET
96+ - name : ENDPOINTS_CONDITIONORC_OIDC_CLIENT_SECRET
9997 valueFrom :
10098 secretKeyRef :
10199 name : fleet-scheduler-secrets
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const (
1919// Values are then grabbed from the ENV variables, anything found will be used to override values in the config file.
2020// Example: Setting Configuration.Endpoints.FleetDB.URL
2121// In the config file (as yaml); endpoints.fleetdb.url: http://fleetdb:8000
22- // As a ENV variable; FLIPFLOP_ENDPOINTS_FLEETDB_URL =http://fleetdb:8000
22+ // As a ENV variable; ENDPOINTS_FLEETDB_URL =http://fleetdb:8000
2323type Configuration struct {
2424 // FacilityCode limits this flipflop to events in a facility.
2525 FacilityCode string `mapstructure:"facility"`
@@ -34,10 +34,10 @@ type Configuration struct {
3434
3535type Endpoints struct {
3636 // FleetDBConfig defines the fleetdb client configuration parameters
37- ConditionOrc * ConfigOIDC `mapstructure:"conditionorc"`
37+ ConditionOrc ConfigOIDC `mapstructure:"conditionorc"`
3838
3939 // FleetDBConfig defines the fleetdb client configuration parameters
40- FleetDB * ConfigOIDC `mapstructure:"fleetdb"`
40+ FleetDB ConfigOIDC `mapstructure:"fleetdb"`
4141}
4242
4343type ConfigOIDC struct {
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ func (c *Client) newFleetDBClient() error {
5858 var secret string
5959 if c .cfg .Endpoints .FleetDB .Authenticate {
6060 secret = c .cfg .Endpoints .FleetDB .OidcClientSecret
61- client , err = c .setUpClientWithOAuth (c .cfg .Endpoints .FleetDB )
61+ client , err = c .setUpClientWithOAuth (& c .cfg .Endpoints .FleetDB )
6262 if err != nil {
6363 return err
6464 }
@@ -89,7 +89,7 @@ func (c *Client) newConditionOrcClient() error {
8989 var secret string
9090 if c .cfg .Endpoints .ConditionOrc .Authenticate {
9191 secret = c .cfg .Endpoints .ConditionOrc .OidcClientSecret
92- client , err = c .setUpClientWithOAuth (c .cfg .Endpoints .ConditionOrc )
92+ client , err = c .setUpClientWithOAuth (& c .cfg .Endpoints .ConditionOrc )
9393 if err != nil {
9494 return err
9595 }
You can’t perform that action at this time.
0 commit comments