hunk.code_window: export function kubeEnvVarValidationSchema(): SchemaOf<EnvVar[]> {
     return array(
       object({
         name: string()
           .required('Name is required')
           .matches(
             /^[a-zA-Z][a-zA-Z0-9_.-]*$/,
  
hunk.labels: keep keep keep keep replace keep keep
hunk.after_edit:         .required('Environment variable name is required')
  
hunk.file_path: app/react/kubernetes/applications/ApplicationForm/kubeEnvVarValidationSchema.ts
hunk.type: replace
file: angular.module('portainer.kubernetes').factory('KubernetesPortainerNamespaces', KubernetesPortainerNamespacesFactory);
  
  function KubernetesPortainerNamespacesFactory($resource) {
    const url = '/api/kubernetes/:endpointId/namespaces/:namespaceName/:action';
    return $resource(
      url,
      {},
      {
        toggleSystem: { method: 'PUT', params: { action: 'system' } },
      }
    );
  }
  