hunk.code_window:       }
       };
       this.startRepeater = function () {
         this.repeater = $interval(() => {
           this.refreshCallback();
         }, this.settings.repeater.refreshRate * 1000);
       };
  
hunk.labels: keep keep keep keep replace replace keep keep keep
hunk.after_edit:       this.repeater = $interval(async () => {
           await this.refreshCallback();
           this.onDataRefresh();
  
hunk.file_path: app/portainer/components/datatables/genericDatatableController.js
hunk.type: replace
file: import { KubernetesCommonMetadataPayload } from 'Kubernetes/models/common/payloads';
  
  /**
   * KubernetesStatefulSetCreatePayload Model
   */
  const _KubernetesStatefulSetCreatePayload = Object.freeze({
    metadata: new KubernetesCommonMetadataPayload(),
    spec: {
      replicas: 0,
      serviceName: '',
      selector: {
        matchLabels: {
          app: '',
        },
      },
      volumeClaimTemplates: [],
      updateStrategy: {
        type: 'RollingUpdate',
        rollingUpdate: {
          partition: 0,
        },
      },
      template: {
        metadata: {
          labels: {
            app: '',
          },
        },
        spec: {
          containers: [
            {
              name: '',
              image: '',
              env: [],
              resources: {
                limits: {},
                requests: {},
              },
              volumeMounts: [],
            },
          ],
          volumes: [],
        },
      },
    },
  });
  
  export class KubernetesStatefulSetCreatePayload {
    constructor() {
      Object.assign(this, JSON.parse(JSON.stringify(_KubernetesStatefulSetCreatePayload)));
    }
  }
  