UNPKG

@topgroup/diginext

Version:

A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.

27 lines (26 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.containerRegistrySchema = void 0; const mongoose_1 = require("mongoose"); const SystemTypes_1 = require("../interfaces/SystemTypes"); const Base_1 = require("./Base"); exports.containerRegistrySchema = new mongoose_1.Schema({ ...Base_1.baseSchemaDefinitions, name: { type: String }, isVerified: { type: Boolean }, isDefault: { type: Boolean, default: false }, host: { type: String }, organization: { type: String }, imageBaseURL: { type: String }, provider: { type: String, enum: SystemTypes_1.registryProviderList }, serviceAccount: { type: String }, apiAccessToken: { type: String }, dockerServer: { type: String }, dockerEmail: { type: String }, dockerUsername: { type: String }, dockerPassword: { type: String }, imagePullSecret: { name: { type: String }, value: { type: String }, }, }, { collection: "container_registries", timestamps: true });