Skip to content

Commit

Permalink
Add boostrap-x.conf file management
Browse files Browse the repository at this point in the history
  • Loading branch information
juldrixx committed Jan 11, 2024
1 parent 4a0da17 commit 4ffcd00
Show file tree
Hide file tree
Showing 8 changed files with 1,360 additions and 0 deletions.
60 changes: 60 additions & 0 deletions api/v1/nificluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,14 @@ type ReadOnlyConfig struct {
AuthorizerConfig AuthorizerConfig `json:"authorizerConfig,omitempty"`
// BootstrapNotificationServices configuration that will be applied to the node.
BootstrapNotificationServicesReplaceConfig BootstrapNotificationServicesConfig `json:"bootstrapNotificationServicesConfig,omitempty"`
// BootstrapGCPProperties configuration that will be applied to the node.
BootstrapGCPProperties BootstrapGCPProperties `json:"bootstrapGCPProperties,omitempty"`
// BootstrapAWSProperties configuration that will be applied to the node.
BootstrapAWSProperties BootstrapAWSProperties `json:"bootstrapAWSProperties,omitempty"`
// BootstrapAzureProperties configuration that will be applied to the node.
BootstrapAzureProperties BootstrapAzureProperties `json:"bootstrapAzureProperties,omitempty"`
// BootstrapHashicorpVaultProperties configuration that will be applied to the node.
BootstrapHashicorpVaultProperties BootstrapHashicorpVaultProperties `json:"bootstrapHashicorpVaultProperties,omitempty"`
}

// Optional configuration for the default authorizers.xml template.
Expand Down Expand Up @@ -305,6 +313,58 @@ type BootstrapNotificationServicesConfig struct {
ReplaceSecretConfig *SecretConfigReference `json:"replaceSecretConfig,omitempty"`
}

// BootstrapGCPProperties configuration that will be applied to the node.
type BootstrapGCPProperties struct {
// Additionnals bootstrap-gcp.conf configuration that will override the one produced based on template and
// configuration
OverrideConfigMap *ConfigmapReference `json:"overrideConfigMap,omitempty"`
// Additionnals bootstrap-gcp.conf configuration that will override the one produced based
// on template and configurations.
OverrideConfigs string `json:"overrideConfigs,omitempty"`
// Additionnals bootstrap-gcp.conf configuration that will override the one produced based
// on template, configurations, overrideConfigMap and overrideConfigs.
OverrideSecretConfig *SecretConfigReference `json:"overrideSecretConfig,omitempty"`
}

// BootstrapAWSProperties configuration that will be applied to the node.
type BootstrapAWSProperties struct {
// Additionnals bootstrap-aws.conf configuration that will override the one produced based on template and
// configuration
OverrideConfigMap *ConfigmapReference `json:"overrideConfigMap,omitempty"`
// Additionnals bootstrap-aws.conf configuration that will override the one produced based
// on template and configurations.
OverrideConfigs string `json:"overrideConfigs,omitempty"`
// Additionnals bootstrap-aws.conf configuration that will override the one produced based
// on template, configurations, overrideConfigMap and overrideConfigs.
OverrideSecretConfig *SecretConfigReference `json:"overrideSecretConfig,omitempty"`
}

// BootstrapAzureProperties configuration that will be applied to the node.
type BootstrapAzureProperties struct {
// Additionnals bootstrap-azure.conf configuration that will override the one produced based on template and
// configuration
OverrideConfigMap *ConfigmapReference `json:"overrideConfigMap,omitempty"`
// Additionnals bootstrap-azure.conf configuration that will override the one produced based
// on template and configurations.
OverrideConfigs string `json:"overrideConfigs,omitempty"`
// Additionnals bootstrap-azure.conf configuration that will override the one produced based
// on template, configurations, overrideConfigMap and overrideConfigs.
OverrideSecretConfig *SecretConfigReference `json:"overrideSecretConfig,omitempty"`
}

// BootstrapHashicorpVaultProperties configuration that will be applied to the node.
type BootstrapHashicorpVaultProperties struct {
// Additionnals bootstrap-hashicorp-vault.conf configuration that will override the one produced based on template and
// configuration
OverrideConfigMap *ConfigmapReference `json:"overrideConfigMap,omitempty"`
// Additionnals bootstrap-hashicorp-vault.conf configuration that will override the one produced based
// on template and configurations.
OverrideConfigs string `json:"overrideConfigs,omitempty"`
// Additionnals bootstrap-hashicorp-vault.conf configuration that will override the one produced based
// on template, configurations, overrideConfigMap and overrideConfigs.
OverrideSecretConfig *SecretConfigReference `json:"overrideSecretConfig,omitempty"`
}

// NodeConfig defines the node configuration.
type NodeConfig struct {
// provenanceStorage allow to specify the maximum amount of data provenance information to store at a time
Expand Down
104 changes: 104 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4ffcd00

Please sign in to comment.