hunk.code_window: async function getSecretsForCluster(
     environmentId: EnvironmentId,
     namespaces: string[]
   ) {
     try {
       const secrets = await Promise.all(
         namespaces.map((namespace) => getSecrets(environmentId, namespace))
       );
       return secrets.flat();
     } catch (e) {
       throw new PortainerError('Unable to retrieve secrets for cluster', e);
     }
   }
   // get all secrets for a namespace
   async function getSecrets(environmentId: EnvironmentId, namespace: string) {
     try {
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
hunk.after_edit:   const secrets = await Promise.all(
       namespaces.map((namespace) => getSecrets(environmentId, namespace))
     );
     return secrets.flat();
  
hunk.file_path: app/react/kubernetes/configs/secret.service.ts
hunk.type: replace
file: <page-header title="'Stacks list'" breadcrumbs="['Stacks']" reload="true"> </page-header>
  
  <docker-stacks-datatable
    ng-if="stacks"
    dataset="stacks"
    is-image-notification-enabled="enableImageNotification"
    on-remove="(removeAction)"
    on-refresh="(getStacks)"
  ></docker-stacks-datatable>
  