INNER CODE UNIT · JavaScript

isDaemonSet

rohitg00/k8sgames · js/engine/GameEngine.js:528

      const isDaemonSet = pod.metadata.ownerReferences.some((r) => r.kind === 'DaemonSet');
      if (isDaemonSet && !command.force) continue;
      pod.markForDeletion();
      evicted++;
    }

    this._addNotification('warning', `Draining node "${command.name}", evicting ${evicted} pods`);
    this._score += 5 * this._scoreMultiplier;
    return { success: true, evictedPods: evicted };
  }

  _handleRollout(command) {
    const { subcommand, kind, name, namespace } = command;
    const resource = this.cluster.getByName(kind || 'Deployment', name, namespace ?? 'default');
    if (!resource) return { success: false, message: `${kind || 'Deployment'} "${name}" not found` };

    switch (subcommand) {
      case 'restart': {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…