|
@@ -33,6 +33,14 @@ type VaultDynamicSecretSpec struct {
|
|
|
// Parameters to pass to Vault write (for non-GET methods)
|
|
// Parameters to pass to Vault write (for non-GET methods)
|
|
|
Parameters *apiextensions.JSON `json:"parameters,omitempty"`
|
|
Parameters *apiextensions.JSON `json:"parameters,omitempty"`
|
|
|
|
|
|
|
|
|
|
+ // Result type defines which data is returned from the generator.
|
|
|
|
|
+ // By default it is the "data" section of the Vault API response.
|
|
|
|
|
+ // When using e.g. /auth/token/create the "data" section is empty but
|
|
|
|
|
+ // the "auth" section contains the generated token.
|
|
|
|
|
+ // Please refer to the vault docs regarding the result data structure.
|
|
|
|
|
+ // +kubebuilder:default=Data
|
|
|
|
|
+ ResultType VaultDynamicSecretResultType `json:"resultType,omitempty"`
|
|
|
|
|
+
|
|
|
// Vault provider common spec
|
|
// Vault provider common spec
|
|
|
Provider *esv1beta1.VaultProvider `json:"provider"`
|
|
Provider *esv1beta1.VaultProvider `json:"provider"`
|
|
|
|
|
|
|
@@ -40,6 +48,13 @@ type VaultDynamicSecretSpec struct {
|
|
|
Path string `json:"path"`
|
|
Path string `json:"path"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+type VaultDynamicSecretResultType string
|
|
|
|
|
+
|
|
|
|
|
+const (
|
|
|
|
|
+ VaultDynamicSecretResultTypeData VaultDynamicSecretResultType = "Data"
|
|
|
|
|
+ VaultDynamicSecretResultTypeAuth VaultDynamicSecretResultType = "Auth"
|
|
|
|
|
+)
|
|
|
|
|
+
|
|
|
// +kubebuilder:object:root=true
|
|
// +kubebuilder:object:root=true
|
|
|
// +kubebuilder:storageversion
|
|
// +kubebuilder:storageversion
|
|
|
// +kubebuilder:subresource:status
|
|
// +kubebuilder:subresource:status
|