Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

logger = get_logger(__name__)

CURRENT_API_VERSION = "2024-03-01"
CURRENT_API_VERSION = "2025-01-01"
POLLING_TIMEOUT = 1200 # how many seconds before exiting
POLLING_SECONDS = 2 # how many seconds between requests
POLLING_TIMEOUT_FOR_MANAGED_CERTIFICATE = 1500 # how many seconds before exiting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def process_loaded_yaml(yaml_containerapp):
"outboundIPAddresses",
"workloadProfileName",
"latestReadyRevisionName",
"eventStreamEndpoint"]
"eventStreamEndpoint",
"runningStatus"]
for nested_property in nested_properties:
tmp = yaml_containerapp.get(nested_property)
if nested_property in yaml_containerapp:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,28 @@ class ContainerAppReplicaRunningState(str, Enum, metaclass=CaseInsensitiveEnumMe
UNKNOWN = "Unknown"


class ContainerAppRunningStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Running status of the Container App."""

PROGRESSING = "Progressing"
"""Container App is transitioning between Stopped and Running states."""
RUNNING = "Running"
"""Container App is in Running state."""
STOPPED = "Stopped"
"""Container App is in Stopped state."""
SUSPENDED = "Suspended"
"""Container App Job is in Suspended state."""
READY = "Ready"
"""Container App Job is in Ready state."""


class ContainerType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The container type of the sessions."""

CUSTOM_CONTAINER = "CustomContainer"
PYTHON_LTS = "PythonLTS"


class CookieExpirationConvention(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The convention used when determining the session cookie's expiration."""

Expand Down Expand Up @@ -180,6 +202,17 @@ class ForwardProxyConvention(str, Enum, metaclass=CaseInsensitiveEnumMeta):
CUSTOM = "Custom"


class IdentitySettingsLifeCycle(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Use to select the lifecycle stages of a Container App during which the Managed Identity should
be available.
"""

INIT = "Init"
MAIN = "Main"
NONE = "None"
ALL = "All"


class IngressClientCertificateMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Client certificate mode for mTLS authentication. Ignore indicates server drops client
certificate on forwarding. Accept indicates server forwards client certificate but does not
Expand All @@ -200,6 +233,24 @@ class IngressTransportMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta):
TCP = "tcp"


class JavaComponentProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Provisioning state of the Java Component."""

SUCCEEDED = "Succeeded"
FAILED = "Failed"
CANCELED = "Canceled"
DELETING = "Deleting"
IN_PROGRESS = "InProgress"


class JavaComponentType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Type of the Java Component."""

SPRING_BOOT_ADMIN = "SpringBootAdmin"
SPRING_CLOUD_EUREKA = "SpringCloudEureka"
SPRING_CLOUD_CONFIG = "SpringCloudConfig"


class JobExecutionRunningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Current running State of the job."""

Expand All @@ -222,6 +273,13 @@ class JobProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
DELETING = "Deleting"


class LifecycleType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The lifecycle type of the session pool."""

TIMED = "Timed"
ON_CONTAINER_EXIT = "OnContainerExit"


class LogLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default
is info.
Expand Down Expand Up @@ -252,6 +310,13 @@ class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"


class PoolManagementType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The pool management type of the session pool."""

MANUAL = "Manual"
DYNAMIC = "Dynamic"


class RevisionHealthState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Current health State of the revision."""

Expand Down Expand Up @@ -288,6 +353,23 @@ class Scheme(str, Enum, metaclass=CaseInsensitiveEnumMeta):
HTTPS = "HTTPS"


class SessionNetworkStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Network status for the sessions."""

EGRESS_ENABLED = "EgressEnabled"
EGRESS_DISABLED = "EgressDisabled"


class SessionPoolProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Provisioning state of the session pool."""

IN_PROGRESS = "InProgress"
SUCCEEDED = "Succeeded"
FAILED = "Failed"
CANCELED = "Canceled"
DELETING = "Deleting"


class SourceControlOperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Current provisioning State of the operation."""

Expand All @@ -303,6 +385,7 @@ class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
AZURE_FILE = "AzureFile"
EMPTY_DIR = "EmptyDir"
SECRET = "Secret"
NFS_AZURE_FILE = "NfsAzureFile"


class TriggerType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
Expand Down
Loading