Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Trait ¶
type Trait struct { traitv1.Trait `property:",squash"` // Enables automatic configuration of the trait. Auto *bool `property:"auto" json:"auto,omitempty"` // The Project Id from Google Cloud ProjectID string `property:"project-id" json:"projectId,omitempty"` // The Path to a service account Key File to use secrets from Google Secret Manager ServiceAccountKey string `property:"service-account-key" json:"serviceAccountKey,omitempty"` // Define if we want to use the Default Instance approach for accessing the Google Secret Manager service UseDefaultInstance *bool `property:"use-default-instance" json:"useDefaultInstance,omitempty"` // Define if we want to use the Camel Context Reload feature or not ContextReloadEnabled *bool `property:"context-reload-enabled" json:"contextReloadEnabled,omitempty"` // Define if we want to use the Refresh Feature for secrets RefreshEnabled *bool `property:"refresh-enabled" json:"refreshEnabled,omitempty"` // If Refresh is enabled, this defines the interval to check the refresh event RefreshPeriod string `property:"refresh-period" json:"refreshPeriod,omitempty"` // If Refresh is enabled, the regular expression representing the secrets we want to track Secrets string `property:"secrets" json:"secrets,omitempty"` // If Refresh is enabled, this defines the subscription name to the Google PubSub topic used to keep track of updates SubscriptionName string `property:"subscription-name" json:"subscriptionName,omitempty"` }
The Google Secret Manager trait can be used to use secrets from Google Secret Manager
The Google Secret Manager trait is disabled by default.
For more information about how to use secrets from Google Secret Manager take a look at the components docs: xref:components::google-secret-manager-component.adoc[AWS Secrets Manager component]
A sample execution of this trait, would require the following trait options: -t gpc-secret-manager.enabled=true -t gpc-secret-manager.project-id="project-id" -t gpc-secret-manager.service-account-key="file:serviceaccount.json"
To enable the automatic context reload on secrets updates you should define the following trait options: -t gpc-secret-manager.enabled=true -t gpc-secret-manager.project-id="project-id" -t gpc-secret-manager.service-account-key="file:serviceaccount.json" -t gcp-secret-manager.subscription-name="pubsub-sub" -t gcp-secret-manager.context-reload-enabled="true" -t gcp-secret-manager.refresh-enabled="true" -t gcp-secret-manager.refresh-period="30000" -t gcp-secret-manager.secrets="test*"
WARNING: The trait is **deprecated** and will removed in future release versions: configure directly the Camel properties as required by the component instead.
+camel-k:trait=gcp-secret-manager. +camel-k:deprecated=2.5.0.