hunk.code_window:       apiService = this.KubernetesDeploymentService;
       } else if (app.ApplicationType === KubernetesApplicationTypes.DaemonSet) {
         apiService = this.KubernetesDaemonSetService;
       } else if (app.ApplicationType === KubernetesApplicationTypes.StatefulSet) {
         apiService = this.KubernetesStatefulSetService;
       } else if (app.ApplicationType === KubernetesApplicationTypes.Pod) {
         apiService = this.KubernetesPodService;
       } else {
         throw new PortainerError('Unable to determine which association to use to retrieve API Service');
       }
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:     } else if (app instanceof KubernetesPod || (app instanceof KubernetesApplication && app.ApplicationType === KubernetesApplicationTypes.Pod)) {
  
hunk.file_path: app/kubernetes/services/applicationService.js
hunk.type: replace
file: import { ReactNode } from 'react';
  
  export interface ServicePort {
    port: number;
    targetPort?: number;
    nodePort?: number;
    serviceName?: string;
    name?: string;
    protocol?: string;
    ingressPaths?: ServicePortIngressPath[];
  }
  
  export type ServicePortIngressPath = {
    IngressName?: string;
    Host?: string;
    Path?: string;
  };
  
  export type ServiceFormValues = {
    Headless: boolean;
    Ports: ServicePort[];
    Type: ServiceType;
    Ingress: boolean;
    ClusterIP?: string;
    ApplicationName?: string;
    ApplicationOwner?: string;
    Note?: string;
    Name?: string;
    StackName?: string;
    Selector?: Record<string, string>;
    Namespace?: string;
  };
  
  export type ServiceType = 'ClusterIP' | 'NodePort' | 'LoadBalancer';
  export type ServiceTypeOption = {
    value: ServiceType;
    label: ReactNode;
  };
  
  export type IngressOption = {
    label: string;
    value: string;
    ingressName: string;
  };
  