summary history files

frontend/src/types/custom.ts
export class CustomPod {
  name: string;
  image: string;
  namespace: string;

  constructor(name: string, image: string, namespace: string = 'default') {
    this.name = name;
    this.image = image;
    this.namespace = namespace;
  }

  // Convert to Kubernetes Pod definition
  toKubernetesPod(): any {
    return {
      apiVersion: 'v1',
      kind: 'Pod',
      metadata: {
        name: this.name,
        namespace: this.namespace
      },
      spec: {
        containers: [
          {
            name: 'container-1',
            image: this.image
          }
        ]
      }
    };
  }

  // Create from form data
  static fromForm(name: string, image: string, namespace: string = 'default'): CustomPod {
    return new CustomPod(name, image, namespace);
  }
}

export interface SecretUpdateOptions {
  context: string;
  opts: string;
  origNamespace: string;
  origName: string;
}

export interface SecretCreateOptions {
  context: string;
  opts: any;
}