INNER CODE UNIT · JavaScript

ClusterState

rohitg00/k8sgames · js/engine/ClusterState.js:27

export class ClusterState {
  constructor(eventBus) {
    this.eventBus = eventBus;
    this.resources = new Map();
    this.relationships = new Map();
    this.reverseRelationships = new Map();
    this.kindIndex = new Map();
    this.namespaceIndex = new Map();
    this.nameIndex = new Map();
    this.labelIndex = new Map();
    this.resourceQuotas = new Map();
    this.limitRanges = new Map();
    this._watchCallbacks = new Map();
    this._batchMode = false;
    this._batchedEvents = [];

    for (const kind of RESOURCE_KINDS) {
      this.kindIndex.set(kind, new Set());

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…