Skip to content

Commit

Permalink
Merge pull request #4 from redskyops/deployment-name
Browse files Browse the repository at this point in the history
Add the controller deployment name to the configuration
  • Loading branch information
jgustie authored Oct 30, 2020
2 parents eab60bf + 2514bb9 commit e07f5d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/config/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ type Cluster struct {

// Controller contains additional controller configuration when working with Red Sky on a specific cluster
type Controller struct {
// DeploymentName is the name of the controller deployment object
DeploymentName string `json:"deploymentName,omitempty"`
// Namespace overrides the default namespace to use during configuration
Namespace string `json:"namespace,omitempty"`
// RegistrationClientURI is the fully qualified URL of the client configuration endpoint for the controller's client
Expand Down
1 change: 1 addition & 0 deletions pkg/config/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func (d *defaults) applyControllerDefaults() error {
for i := range d.cfg.Controllers {
ctrl := &d.cfg.Controllers[i].Controller

defaultString(&ctrl.DeploymentName, "redsky-controller-manager")
defaultString(&ctrl.Namespace, "redsky-system")
}
return nil
Expand Down

0 comments on commit e07f5d4

Please sign in to comment.