private void delete(ApiClient apiClient, String name, String namespace) throws ApiException {
        AutoscalingV1Api autoscalingV1Api = new AutoscalingV1Api(apiClient);
        V1DeleteOptions deleteOptions = getDeleteOptions();
        deleteOptions.setApiVersion("autoscaling/v1");
        try {
            autoscalingV1Api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, DeployerConstants.TRUE, null,
                    null, null, null, deleteOptions);
        } catch (JsonSyntaxException e) {
            logger.debug("Ignoring delete HorizontalPodAutoScaler exception");
        }
    }
This class is responsible for the lifecycle operations of resource
HorizontalPodAutoScaler in kubernetes cluster. It creates resource of
apiVersion: autoscaling/v1
kind: HorizontalPodAutoScaler
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/handler/impl/V1HorizontalPodAutoScalerHandler.java