ApplicationInstance#
- pydantic model phalanx.models.applications.ApplicationInstance#
A Phalanx application as configured for a specific environment.
- Parameters:
data (
Any
) –
Show JSON schema
{ "title": "ApplicationInstance", "description": "A Phalanx application as configured for a specific environment.", "type": "object", "properties": { "name": { "title": "Name", "type": "string" }, "environment": { "title": "Environment", "type": "string" }, "chart": { "title": "Chart", "type": "object" }, "values": { "title": "Values", "type": "object" }, "secrets": { "additionalProperties": { "$ref": "#/$defs/Secret" }, "default": {}, "description": "Secrets required for this application in this environment.", "title": "Required secrets", "type": "object" } }, "$defs": { "Secret": { "additionalProperties": false, "description": "Specification for an application secret for a specific environment.\n\nThe same as `SecretConfig` except augmented with the secret application\nand key for internal convenience.", "properties": { "description": { "title": "Description", "type": "string" }, "copy": { "anyOf": [ { "$ref": "#/$defs/SecretCopyRules" }, { "type": "null" } ], "default": null, "description": "Rules for where the secret should be copied from" }, "generate": { "anyOf": [ { "$ref": "#/$defs/SimpleSecretGenerateRules" }, { "$ref": "#/$defs/SourceSecretGenerateRules" }, { "type": "null" } ], "default": null, "title": "Generate" }, "onepassword": { "allOf": [ { "$ref": "#/$defs/SecretOnepasswordConfig" } ], "default": { "encoded": false } }, "value": { "anyOf": [ { "format": "password", "type": "string", "writeOnly": true }, { "type": "null" } ], "default": null, "title": "Value" }, "key": { "title": "Key", "type": "string" }, "application": { "title": "Application", "type": "string" } }, "required": [ "description", "key", "application" ], "title": "Secret", "type": "object" }, "SecretCopyRules": { "additionalProperties": false, "description": "Rules for copying a secret value from another secret.", "properties": { "application": { "title": "Application", "type": "string" }, "key": { "title": "Key", "type": "string" } }, "required": [ "application", "key" ], "title": "SecretCopyRules", "type": "object" }, "SecretOnepasswordConfig": { "description": "Configuration for how a static secret is stored in 1Password.", "properties": { "encoded": { "default": false, "title": "Encoded", "type": "boolean" } }, "title": "SecretOnepasswordConfig", "type": "object" }, "SimpleSecretGenerateRules": { "additionalProperties": false, "description": "Rules for generating a secret value with no source information.", "properties": { "type": { "enum": [ "password", "gafaelfawr-token", "fernet-key", "rsa-private-key" ], "title": "Type", "type": "string" } }, "required": [ "type" ], "title": "SimpleSecretGenerateRules", "type": "object" }, "SourceSecretGenerateRules": { "description": "Rules for generating a secret from another secret.", "properties": { "type": { "enum": [ "bcrypt-password-hash", "mtime" ], "title": "Type", "type": "string" }, "source": { "title": "Source", "type": "string" } }, "required": [ "type", "source" ], "title": "SourceSecretGenerateRules", "type": "object" } }, "required": [ "name", "environment", "chart", "values" ] }
- Fields:
- field chart: dict[str, Any] [Required]#
Parsed Helm
Chart.yaml
file.
- field environment: str [Required]#
Name of the environment for which the application is configured.
- field name: str [Required]#
Name of the application.
- field secrets: dict[str, Secret] = {}#
Secrets required for this application in this environment.
- field values: dict[str, Any] [Required]#
Merged Helm values for the application in this environment.
- all_static_secrets()#
Return all static secrets for this instance of the application.
- is_values_setting_true(setting)#
Determine whether a given Helm values setting is true.
The values setting is considered true if the corresponding values parameter is present and set to a true value (a non-empty array or dictionary or a string, number, or boolean value that evaluates to true in Python).