@soft-stech/argo-rollouts
Version:
867 lines • 421 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Rollout = void 0;
const IoK8sApimachineryPkgApisMetaV1ObjectMeta_1 = require("@soft-stech/apimachinery/_schemas/IoK8sApimachineryPkgApisMetaV1ObjectMeta");
const base_1 = require("@soft-stech/base");
const validate_1 = require("@soft-stech/validate");
const schemaId = "argoproj.io.v1alpha1.Rollout";
const schema = {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"argoproj.io/v1alpha1"
]
},
"kind": {
"type": "string",
"enum": [
"Rollout"
]
},
"metadata": {
"oneOf": [
{
"$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#"
},
{
"type": "null"
}
]
},
"spec": {
"properties": {
"analysis": {
"properties": {
"successfulRunHistoryLimit": {
"format": "int32",
"type": "integer",
"nullable": true
},
"unsuccessfulRunHistoryLimit": {
"format": "int32",
"type": "integer",
"nullable": true
}
},
"type": "object",
"nullable": true
},
"minReadySeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"paused": {
"type": "boolean",
"nullable": true
},
"progressDeadlineAbort": {
"type": "boolean",
"nullable": true
},
"progressDeadlineSeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"replicas": {
"format": "int32",
"type": "integer",
"nullable": true
},
"restartAt": {
"format": "date-time",
"type": "string",
"nullable": true
},
"revisionHistoryLimit": {
"format": "int32",
"type": "integer",
"nullable": true
},
"rollbackWindow": {
"properties": {
"revisions": {
"format": "int32",
"type": "integer",
"nullable": true
}
},
"type": "object",
"nullable": true
},
"selector": {
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
}
},
"required": [
"key",
"operator"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
}
},
"type": "object",
"nullable": true
},
"strategy": {
"properties": {
"blueGreen": {
"properties": {
"abortScaleDownDelaySeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"activeMetadata": {
"properties": {
"annotations": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
},
"labels": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
}
},
"type": "object",
"nullable": true
},
"activeService": {
"type": "string"
},
"antiAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"properties": {
"weight": {
"format": "int32",
"type": "integer"
}
},
"required": [
"weight"
],
"type": "object",
"nullable": true
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"type": "object",
"properties": {},
"nullable": true
}
},
"type": "object",
"nullable": true
},
"autoPromotionEnabled": {
"type": "boolean",
"nullable": true
},
"autoPromotionSeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"maxUnavailable": {
"oneOf": [
{
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
{
"type": "null"
}
]
},
"postPromotionAnalysis": {
"properties": {
"args": {
"items": {
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string",
"nullable": true
},
"valueFrom": {
"properties": {
"fieldRef": {
"properties": {
"fieldPath": {
"type": "string"
}
},
"required": [
"fieldPath"
],
"type": "object",
"nullable": true
},
"podTemplateHashValue": {
"type": "string",
"nullable": true
}
},
"type": "object",
"nullable": true
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"dryRun": {
"items": {
"properties": {
"metricName": {
"type": "string"
}
},
"required": [
"metricName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"measurementRetention": {
"items": {
"properties": {
"limit": {
"format": "int32",
"type": "integer"
},
"metricName": {
"type": "string"
}
},
"required": [
"limit",
"metricName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"templates": {
"items": {
"properties": {
"clusterScope": {
"type": "boolean",
"nullable": true
},
"templateName": {
"type": "string",
"nullable": true
}
},
"type": "object"
},
"type": "array",
"nullable": true
}
},
"type": "object",
"nullable": true
},
"prePromotionAnalysis": {
"properties": {
"args": {
"items": {
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string",
"nullable": true
},
"valueFrom": {
"properties": {
"fieldRef": {
"properties": {
"fieldPath": {
"type": "string"
}
},
"required": [
"fieldPath"
],
"type": "object",
"nullable": true
},
"podTemplateHashValue": {
"type": "string",
"nullable": true
}
},
"type": "object",
"nullable": true
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"dryRun": {
"items": {
"properties": {
"metricName": {
"type": "string"
}
},
"required": [
"metricName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"measurementRetention": {
"items": {
"properties": {
"limit": {
"format": "int32",
"type": "integer"
},
"metricName": {
"type": "string"
}
},
"required": [
"limit",
"metricName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"templates": {
"items": {
"properties": {
"clusterScope": {
"type": "boolean",
"nullable": true
},
"templateName": {
"type": "string",
"nullable": true
}
},
"type": "object"
},
"type": "array",
"nullable": true
}
},
"type": "object",
"nullable": true
},
"previewMetadata": {
"properties": {
"annotations": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
},
"labels": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
}
},
"type": "object",
"nullable": true
},
"previewReplicaCount": {
"format": "int32",
"type": "integer",
"nullable": true
},
"previewService": {
"type": "string",
"nullable": true
},
"scaleDownDelayRevisionLimit": {
"format": "int32",
"type": "integer",
"nullable": true
},
"scaleDownDelaySeconds": {
"format": "int32",
"type": "integer",
"nullable": true
}
},
"required": [
"activeService"
],
"type": "object",
"nullable": true
},
"canary": {
"properties": {
"abortScaleDownDelaySeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"analysis": {
"properties": {
"args": {
"items": {
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string",
"nullable": true
},
"valueFrom": {
"properties": {
"fieldRef": {
"properties": {
"fieldPath": {
"type": "string"
}
},
"required": [
"fieldPath"
],
"type": "object",
"nullable": true
},
"podTemplateHashValue": {
"type": "string",
"nullable": true
}
},
"type": "object",
"nullable": true
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"dryRun": {
"items": {
"properties": {
"metricName": {
"type": "string"
}
},
"required": [
"metricName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"measurementRetention": {
"items": {
"properties": {
"limit": {
"format": "int32",
"type": "integer"
},
"metricName": {
"type": "string"
}
},
"required": [
"limit",
"metricName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"startingStep": {
"format": "int32",
"type": "integer",
"nullable": true
},
"templates": {
"items": {
"properties": {
"clusterScope": {
"type": "boolean",
"nullable": true
},
"templateName": {
"type": "string",
"nullable": true
}
},
"type": "object"
},
"type": "array",
"nullable": true
}
},
"type": "object",
"nullable": true
},
"antiAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"properties": {
"weight": {
"format": "int32",
"type": "integer"
}
},
"required": [
"weight"
],
"type": "object",
"nullable": true
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"type": "object",
"properties": {},
"nullable": true
}
},
"type": "object",
"nullable": true
},
"canaryMetadata": {
"properties": {
"annotations": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
},
"labels": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
}
},
"type": "object",
"nullable": true
},
"canaryService": {
"type": "string",
"nullable": true
},
"dynamicStableScale": {
"type": "boolean",
"nullable": true
},
"maxSurge": {
"oneOf": [
{
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
{
"type": "null"
}
]
},
"maxUnavailable": {
"oneOf": [
{
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
{
"type": "null"
}
]
},
"minPodsPerReplicaSet": {
"format": "int32",
"type": "integer",
"nullable": true
},
"pingPong": {
"properties": {
"pingService": {
"type": "string"
},
"pongService": {
"type": "string"
}
},
"required": [
"pingService",
"pongService"
],
"type": "object",
"nullable": true
},
"scaleDownDelayRevisionLimit": {
"format": "int32",
"type": "integer",
"nullable": true
},
"scaleDownDelaySeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"stableMetadata": {
"properties": {
"annotations": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
},
"labels": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
}
},
"type": "object",
"nullable": true
},
"stableService": {
"type": "string",
"nullable": true
},
"steps": {
"items": {
"properties": {
"analysis": {
"properties": {
"args": {
"items": {
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string",
"nullable": true
},
"valueFrom": {
"properties": {
"fieldRef": {
"properties": {
"fieldPath": {
"type": "string"
}
},
"required": [
"fieldPath"
],
"type": "object",
"nullable": true
},
"podTemplateHashValue": {
"type": "string",
"nullable": true
}
},
"type": "object",
"nullable": true
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"dryRun": {
"items": {
"properties": {
"metricName": {
"type": "string"
}
},
"required": [
"metricName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"measurementRetention": {
"items": {
"properties": {
"limit": {
"format": "int32",
"type": "integer"
},
"metricName": {
"type": "string"
}
},
"required": [
"limit",
"metricName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"templates": {
"items": {
"properties": {
"clusterScope": {
"type": "boolean",
"nullable": true
},
"templateName": {
"type": "string",
"nullable": true
}
},
"type": "object"
},
"type": "array",
"nullable": true
}
},
"type": "object",
"nullable": true
},
"experiment": {
"properties": {
"analyses": {
"items": {
"properties": {
"args": {
"items": {
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string",
"nullable": true
},
"valueFrom": {
"properties": {
"fieldRef": {
"properties": {
"fieldPath": {
"type": "string"
}
},
"required": [
"fieldPath"
],
"type": "object",
"nullable": true
},
"podTemplateHashValue": {
"type": "string",
"nullable": true
}
},
"type": "object",
"nullable": true
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array",
"nullable": true