kubernetes-models
Version:
28 lines (27 loc) • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IoK8sApiAppsV1StatefulSet = exports.StatefulSet = void 0;
const base_1 = require("@kubernetes-models/base");
const IoK8sApiAppsV1StatefulSet_1 = require("../../_schemas/IoK8sApiAppsV1StatefulSet.js");
/**
* StatefulSet represents a set of pods with consistent identities. Identities are defined as:
* - Network: A single stable DNS and hostname.
* - Storage: As many VolumeClaims as requested.
*
* The StatefulSet guarantees that a given network identity will always map to the same storage identity.
*/
class StatefulSet extends base_1.Model {
constructor(data) {
super({
apiVersion: StatefulSet.apiVersion,
kind: StatefulSet.kind,
...data
});
}
}
exports.StatefulSet = StatefulSet;
exports.IoK8sApiAppsV1StatefulSet = StatefulSet;
StatefulSet.apiVersion = "apps/v1";
StatefulSet.kind = "StatefulSet";
StatefulSet.is = (0, base_1.createTypeMetaGuard)(StatefulSet);
(0, base_1.setSchema)(StatefulSet, "io.k8s.api.apps.v1.StatefulSet", IoK8sApiAppsV1StatefulSet_1.addSchema);