@soft-stech/argo-rollouts
Version:
655 lines (654 loc) • 373 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Experiment = 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.Experiment";
const schema = {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"argoproj.io/v1alpha1"
]
},
"kind": {
"type": "string",
"enum": [
"Experiment"
]
},
"metadata": {
"oneOf": [
{
"$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#"
},
{
"type": "null"
}
]
},
"spec": {
"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
},
"secretKeyRef": {
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"key",
"name"
],
"type": "object",
"nullable": true
}
},
"type": "object",
"nullable": true
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"clusterScope": {
"type": "boolean",
"nullable": true
},
"name": {
"type": "string"
},
"requiredForCompletion": {
"type": "boolean",
"nullable": true
},
"templateName": {
"type": "string"
}
},
"required": [
"name",
"templateName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"dryRun": {
"items": {
"properties": {
"metricName": {
"type": "string"
}
},
"required": [
"metricName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"duration": {
"type": "string",
"nullable": true
},
"measurementRetention": {
"items": {
"properties": {
"limit": {
"format": "int32",
"type": "integer"
},
"metricName": {
"type": "string"
}
},
"required": [
"limit",
"metricName"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"progressDeadlineSeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"scaleDownDelaySeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"templates": {
"items": {
"properties": {
"minReadySeconds": {
"format": "int32",
"type": "integer",
"nullable": true
},
"name": {
"type": "string"
},
"replicas": {
"format": "int32",
"type": "integer",
"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"
},
"service": {
"properties": {
"name": {
"type": "string",
"nullable": true
}
},
"type": "object",
"nullable": true
},
"template": {
"properties": {
"metadata": {
"properties": {
"annotations": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
},
"labels": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"properties": {},
"nullable": true
}
},
"type": "object",
"nullable": true
},
"spec": {
"properties": {
"activeDeadlineSeconds": {
"format": "int64",
"type": "integer",
"nullable": true
},
"affinity": {
"properties": {
"nodeAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"preference": {
"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
},
"matchFields": {
"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
}
},
"type": "object"
},
"weight": {
"format": "int32",
"type": "integer"
}
},
"required": [
"preference",
"weight"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"properties": {
"nodeSelectorTerms": {
"items": {
"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
},
"matchFields": {
"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
}
},
"type": "object"
},
"type": "array"
}
},
"required": [
"nodeSelectorTerms"
],
"type": "object",
"nullable": true
}
},
"type": "object",
"nullable": true
},
"podAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"podAffinityTerm": {
"properties": {
"labelSelector": {
"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
},
"namespaceSelector": {
"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
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"topologyKey": {
"type": "string"
}
},
"required": [
"topologyKey"
],
"type": "object"
},
"weight": {
"format": "int32",
"type": "integer"
}
},
"required": [
"podAffinityTerm",
"weight"
],
"type": "object"
},
"type": "array",
"nullable": true
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"labelSelector": {
"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
},
"namespaceSelector": {
"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
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"nullable": true
},
"topologyKey": {
"type": "string"
}
},
"required": [
"topologyKey"
],
"type": "object"
},
"type": "array",
"nullable": true
}
},
"type": "object",
"nullable": true
},
"podAntiAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"podAffinityTerm": {
"properties": {
"labelSelector": {
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"