ConditionalSourceSecretGenerateRules#
- pydantic model phalanx.models.secrets.ConditionalSourceSecretGenerateRules#
- Conditional rules for generating a secret from another secret. - Parameters:
- data ( - Any) –
 - Show JSON schema- { "title": "ConditionalSourceSecretGenerateRules", "description": "Conditional rules for generating a secret from another secret.", "type": "object", "properties": { "if": { "title": "Condition", "description": "Configuration only applies if this Helm chart setting is set to a true value", "type": "string" }, "type": { "title": "Type", "enum": [ "bcrypt-password-hash", "mtime" ], "type": "string" }, "source": { "title": "Source", "type": "string" } }, "required": [ "type", "source" ] } - Fields:
- type (Literal[
 
 - 
field condition: Optional[str] = None (alias 'if')#
- Configuration only applies if this Helm chart setting is set to a true value 
 - 
field source: str[Required]#
- Key of secret on which this secret is based. - This may only be set by secrets of type - bcrypt-password-hashor- mtime.
 - 
field type: Literal[<SecretGenerateType.bcrypt_password_hash: 'bcrypt-password-hash'>,<SecretGenerateType.mtime: 'mtime'>] [Required]#
- Type of secret. 
 - generate(source)#
- Parameters:
- source ( - SecretStr) –
- Return type:
- SecretStr