Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added bootstrap-gcp.conf, bootstrap-aws.conf, bootstrap-azure.conf and bootstrap-hashicorp-vault.conf files management #361

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### Added

- [PR #361](https://github.com/konpyutaika/nifikop/pull/361) - **[Operator/NifiCluster]** Added `bootstrap-gcp.conf`, `bootstrap-aws.conf`, `bootstrap-azure.conf` and `bootstrap-hashicorp-vault.conf` files management.

### Changed

- [PR #340](https://github.com/konpyutaika/nifikop/pull/340) - **[Operator/NifiDataflow]** Updated the logic to stop the entire dataflow instead of just the processors when the parameter context reference is updated.
Expand Down
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"`
}
juldrixx marked this conversation as resolved.
Show resolved Hide resolved

// 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
juldrixx marked this conversation as resolved.
Show resolved Hide resolved
// 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"`
juldrixx marked this conversation as resolved.
Show resolved Hide resolved
}

// 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
juldrixx marked this conversation as resolved.
Show resolved Hide resolved
// 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