Skip to content

Commit

Permalink
Add a config to enable InstaScale controller
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Aug 31, 2023
1 parent a0265cc commit 4fea0e6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion PCF-ADR-0007-operator-redesign.md
Expand Up @@ -113,12 +113,23 @@ import (
instascale "github.com/project-codeflare/instascale/pkg/config"
)

struct InstaScaleConfiguration {
// Enabled controls whether the InstaScale controller is started.
// It may defaults to true on platforms that InstaScale supports.
// Otherwise defaults to false.
Enabled *bool `json:"enabled,omitempty"`

// The InstaScale controller configuration
instascale.InstaScaleConfiguration `json:",inline,omitempty"`
}

struct CodeFlareOperatorConfiguration {
// The MCAD controller configuration
MCAD *mcad.MCADConfiguration `json:"mcad,omitempty"`

// The InstaScale controller configuration
InstaScale *instascale.InstaScaleConfiguration `json:"instascale,omitempty"`
InstaScale *InstaScaleConfiguration `json:"instascale,omitempty"`

// ClientConnection configures the connection to the cluster
ClientConnection *configv1alpha1.ClientConnectionConfiguration `json:"clientConnection,omitempty"`

Expand Down

0 comments on commit 4fea0e6

Please sign in to comment.