UNPKG

@soft-stech/flux-cd

Version:
276 lines (275 loc) 9.68 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HelmRepository = 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 = "source.toolkit.fluxcd.io.v1beta2.HelmRepository"; const schema = { "type": "object", "properties": { "apiVersion": { "type": "string", "enum": [ "source.toolkit.fluxcd.io/v1beta2" ] }, "kind": { "type": "string", "enum": [ "HelmRepository" ] }, "metadata": { "oneOf": [ { "$ref": "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta#" }, { "type": "null" } ] }, "spec": { "properties": { "accessFrom": { "properties": { "namespaceSelectors": { "items": { "properties": { "matchLabels": { "additionalProperties": { "type": "string" }, "type": "object", "properties": {}, "nullable": true } }, "type": "object" }, "type": "array" } }, "required": [ "namespaceSelectors" ], "type": "object", "nullable": true }, "certSecretRef": { "properties": { "name": { "type": "string" } }, "required": [ "name" ], "type": "object", "nullable": true }, "insecure": { "type": "boolean", "nullable": true }, "interval": { "type": "string", "pattern": "^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$", "nullable": true }, "passCredentials": { "type": "boolean", "nullable": true }, "provider": { "default": "generic", "enum": [ "generic", "aws", "azure", "gcp" ], "type": "string", "nullable": true }, "secretRef": { "properties": { "name": { "type": "string" } }, "required": [ "name" ], "type": "object", "nullable": true }, "suspend": { "type": "boolean", "nullable": true }, "timeout": { "type": "string", "pattern": "^([0-9]+(\\.[0-9]+)?(ms|s|m))+$", "nullable": true }, "type": { "enum": [ "default", "oci" ], "type": "string", "nullable": true }, "url": { "type": "string", "pattern": "^(http|https|oci):\\/\\/.*$" } }, "required": [ "url" ], "type": "object", "nullable": true }, "status": { "default": { "observedGeneration": -1 }, "properties": { "artifact": { "properties": { "digest": { "type": "string", "pattern": "^[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+$", "nullable": true }, "lastUpdateTime": { "format": "date-time", "type": "string" }, "metadata": { "additionalProperties": { "type": "string" }, "type": "object", "properties": {}, "nullable": true }, "path": { "type": "string" }, "revision": { "type": "string" }, "size": { "format": "int64", "type": "integer", "nullable": true }, "url": { "type": "string" } }, "required": [ "lastUpdateTime", "path", "revision", "url" ], "type": "object", "nullable": true }, "conditions": { "items": { "properties": { "lastTransitionTime": { "format": "date-time", "type": "string" }, "message": { "maxLength": 32768, "type": "string" }, "observedGeneration": { "format": "int64", "type": "integer", "minimum": 0, "nullable": true }, "reason": { "maxLength": 1024, "minLength": 1, "type": "string", "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$" }, "status": { "enum": [ "True", "False", "Unknown" ], "type": "string" }, "type": { "maxLength": 316, "type": "string", "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\\/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$" } }, "required": [ "lastTransitionTime", "message", "reason", "status", "type" ], "type": "object" }, "type": "array", "nullable": true }, "lastHandledReconcileAt": { "type": "string", "nullable": true }, "observedGeneration": { "format": "int64", "type": "integer", "nullable": true }, "url": { "type": "string", "nullable": true } }, "type": "object", "nullable": true } }, "required": [ "apiVersion", "kind" ] }; /** * HelmRepository is the Schema for the helmrepositories API. */ class HelmRepository extends base_1.Model { constructor(data) { super({ apiVersion: HelmRepository.apiVersion, kind: HelmRepository.kind, ...data }); } } exports.HelmRepository = HelmRepository; HelmRepository.apiVersion = "source.toolkit.fluxcd.io/v1beta2"; HelmRepository.kind = "HelmRepository"; HelmRepository.is = (0, base_1.createTypeMetaGuard)(HelmRepository); (0, base_1.setSchema)(HelmRepository, schemaId, () => { (0, IoK8sApimachineryPkgApisMetaV1ObjectMeta_1.addSchema)(); (0, validate_1.register)(schemaId, schema); });