kubernetes-models
Version:
24 lines (23 loc) • 916 B
JavaScript
import { createTypeMetaGuard, Model, setSchema } from "@kubernetes-models/base";
import { addSchema } from "../../_schemas/IoK8sApiAppsV1StatefulSet.mjs";
/**
* 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.
*/
export class StatefulSet extends Model {
constructor(data) {
super({
apiVersion: StatefulSet.apiVersion,
kind: StatefulSet.kind,
...data
});
}
}
StatefulSet.apiVersion = "apps/v1";
StatefulSet.kind = "StatefulSet";
StatefulSet.is = createTypeMetaGuard(StatefulSet);
setSchema(StatefulSet, "io.k8s.api.apps.v1.StatefulSet", addSchema);
export { StatefulSet as IoK8sApiAppsV1StatefulSet };