kubernetes-models
Version:
24 lines (23 loc) • 976 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IoK8sApiCoreV1Service = exports.Service = void 0;
const base_1 = require("@kubernetes-models/base");
const IoK8sApiCoreV1Service_1 = require("../_schemas/IoK8sApiCoreV1Service.js");
/**
* Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.
*/
class Service extends base_1.Model {
constructor(data) {
super({
apiVersion: Service.apiVersion,
kind: Service.kind,
...data
});
}
}
exports.Service = Service;
exports.IoK8sApiCoreV1Service = Service;
Service.apiVersion = "v1";
Service.kind = "Service";
Service.is = (0, base_1.createTypeMetaGuard)(Service);
(0, base_1.setSchema)(Service, "io.k8s.api.core.v1.Service", IoK8sApiCoreV1Service_1.addSchema);