Skip to main content
Version: 2.13.0

Custom Resource Definition

This topic describes the application configuration CRDs and the event configuration CRDs used for event scaling.

Application Configuration CRDs

The following are the application configuration CRDs for event scaling:

ParameterParameter TypeDescriptionRequired
apiVersionstringAPIVersion defines the versioned schema of this representation of an object.No
kindstringKind is a string value representing the REST resource this object represents.No
metadataobjectMetadata for the resource.No
specobjectApplicationConfigSpec defines the desired state of ApplicationConfig.Yes
spec.applicationDetailsobjectContains details related to the application configuration.No
spec.applicationDetails.customServiceListRefobjectReference to the custom service list ConfigMap.No
spec.applicationDetails.customServiceListRef.namestringThe name of the ConfigMap resource being referred to.Yes
spec.applicationDetails.customServiceListRef.namespacestringNamespace of the ConfigMap resource being referred to.Yes
spec.applicationDetails.gitConfigurationobjectDefines global Git configuration settings.No
spec.applicationDetails.gitConfiguration.branchstringGit branch.No
spec.applicationDetails.gitConfiguration.destinationContextstringContext of the Git destination.No
spec.applicationDetails.gitConfiguration.gitProviderstringProvider of the Git repository (e.g., github, bitbucket).No
spec.applicationDetails.gitConfiguration.maxReplicasCustomKeystringCustom key for defining max replicas.No
spec.applicationDetails.gitConfiguration.minReplicasCustomKeystringCustom key for defining min replicas.No
spec.applicationDetails.gitConfiguration.pathstringPath to the Git repository.No
spec.applicationDetails.gitConfiguration.repositorystringGit repository URL.No
spec.applicationDetails.gitConfiguration.secretRefobjectReference to the Secret storing Git credentials.No
spec.applicationDetails.gitConfiguration.secretRef.namestringThe name of the Secret resource being referred to.No
spec.applicationDetails.gitConfiguration.secretRef.namespacestringNamespace of the Secret resource being referred to.No
spec.applicationDetails.scalingPolicystringDefines scaling policy (options: gitops, in-cluster).Yes
spec.applicationDetails.servicesarrayList of services to be scaled.Yes
spec.applicationDetails.services[].destinationContextstringContext for each service’s destination (default: in-cluster).No
spec.applicationDetails.services[].gitConfigurationobjectGit configuration settings for individual services.No
spec.applicationDetails.services[].gitConfiguration.branchstringGit branch for the individual service.No
spec.applicationDetails.services[].gitConfiguration.destinationContextstringContext of the Git destination for the service.No
spec.applicationDetails.services[].scaledObjectConfigobjectConfiguration for scaled objects, includes deployment references.No
spec.applicationDetails.services[].scaledObjectConfig.deploymentRefobjectReference to the deployment in the scaledObjectConfig.Yes
spec.applicationDetails.services[].scaledObjectConfig.deploymentRef.namestringName of the deployment in the scaled object config.Yes
spec.applicationDetails.services[].scaledObjectConfig.deploymentRef.namespacestringNamespace of the deployment in the scaled object config.Yes
spec.argocdApplicationRefobjectReference to the ArgoCD Application CR.Yes
spec.argocdApplicationRef.namestringName of the ArgoCD Application.Yes
spec.argocdApplicationRef.namespacestringNamespace of the ArgoCD Application.Yes
statusobjectStatus of the ApplicationConfig resource.No
status.applicationConfigIDstringUnique identifier for the application configuration.No
status.applicationDetailsobjectDetails about the application.No
status.applicationDetails.customServiceListRefobjectReference to the custom service list ConfigMap.No
status.applicationDetails.gitConfigurationobjectGit configuration for the application status.No
status.conditionsarrayList of conditions related to the application configuration.No
status.conditions[].lastTransitionTimedate-timeTimestamp of the last condition transition.Yes
status.conditions[].messagestringMessage describing the condition.Yes
status.conditions[].reasonstringReason for the condition's last transition.Yes
status.conditions[].statusstringStatus of the condition.Yes
status.conditions[].typestringType of condition.Yes
status.lastSyncTimedate-timeIndicates the last synchronization time for the application configuration.No

Event Configuration CRDs

The following are the event configuration CRDs for event scaling:

ParameterParameter TypeDescriptionRequired
apiVersionstringAPIVersion defines the versioned schema of this representation of an object.No
kindstringKind is a string value representing the REST resource this object represents.No
metadataobjectMetadata for the resource.No
specobjectEventConfigSpec defines the desired state of EventConfig.Yes
spec.applicationConfigNamestringApplicationConfigName is the name of ApplicationConfig.Yes
spec.cooldownDurationstringCooldown duration for the event.No
spec.destinationContextsarrayList of destination contexts for the event, defaults to in-cluster.No
spec.displayNamestringDisplay name of the event for git operations.Yes
spec.eventEndTimestampdate-timeEnd time of the event.Yes
spec.eventStartTimestampdate-timeStart time of the event.Yes
spec.scalingConfigurationobjectConfiguration defining scaling parameters for the event.No
spec.scalingConfiguration.maxScalingFactorstringHighest scaling factor for the event, supporting decimal values.No
spec.scalingConfiguration.minScalingFactorstringSmallest scaling factor for the event, supporting decimal values.No
spec.scalingRatioConfigNamestringName of the ScalingRatioConfig.No
statusobjectEventConfigStatus defines the observed state of EventConfig.No
status.conditionsarrayList of conditions related to the event configuration.No
status.conditions[].lastTransitionTimedate-timeTimestamp of the last condition transition.Yes
status.conditions[].messagestringMessage describing the condition.Yes
status.conditions[].reasonstringReason for the condition's last transition.Yes
status.conditions[].statusstringStatus of the condition.Yes
status.conditions[].typestringType of condition.Yes
status.eventIDstringUnique identifier for the event.No
status.eventProgressStatusobjectStatus details of the event's progress.No
status.eventProgressStatus.eventStatusstringCurrent status of the event.No
status.eventProgressStatus.inProgressbooleanWhether the event is currently in progress.No
status.eventProgressStatus.isEventRaisedbooleanIndicates if the event has been raised.No
status.eventProgressStatus.isPRmergedbooleanIndicates if the pull request for the event has been merged.No
status.eventProgressStatus.pullRequestURLstringURL of the pull request associated with the event.No
status.eventProgressStatus.retryCountintegerNumber of retries for the event.No
status.lastSyncTimedate-timeLast synchronization time for the event configuration.No
status.parentEventIDstringIdentifier of the parent event, if any.No
status.scalingPolicystringDefines scaling policy (options: gitops, in-cluster).No
status.serviceConfigsarrayList of configurations for services impacted by the event.No
status.serviceConfigs[].appliedScalingRatiostringScaling ratio applied to the service for this event.No
status.serviceConfigs[].destinationContextstringContext in which the service resides.No
status.serviceConfigs[].eventProgressStatusobjectProgress status details specific to the service configuration.No
status.serviceConfigs[].eventProgressStatus.eventStatusstringStatus of the service's event progress.No
status.serviceConfigs[].eventProgressStatus.inProgressbooleanWhether the service's event is in progress.No
status.serviceConfigs[].eventProgressStatus.isEventRaisedbooleanIndicates if the event has been raised for the service.No
status.serviceConfigs[].eventProgressStatus.isPRmergedbooleanIndicates if the pull request for the service's event has been merged.No
status.serviceConfigs[].eventProgressStatus.pullRequestURLstringURL of the pull request associated with the service's event.No
status.serviceConfigs[].eventProgressStatus.retryCountintegerNumber of retries for the service's event.No
status.serviceConfigs[].kindstringKind of the service impacted by the event.Yes
status.serviceConfigs[].namestringName of the service impacted by the event.Yes
status.serviceConfigs[].namespacestringNamespace of the service impacted by the event.No
status.serviceConfigs[].originalMaxinteger (int32)Original maximum replica count for the service before scaling.Yes
status.serviceConfigs[].originalMininteger (int32)Original minimum replica count for the service before scaling.Yes