Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 2c793cd

Browse files
committed
feat(plugins/plugin-kubectl): add an "internal" kube namespace from Rancher
1 parent 66c2962 commit 2c793cd

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

plugins/plugin-kubectl/heuristics/src/InternalNamespace/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ import kube from './kube'
2929
import istio from './istio'
3030
import calico from './calico'
3131
import knative from './knative'
32+
import rancher from './rancher'
3233
import openshift from './openshift'
3334
import operators from './operators'
3435

3536
/** Make sure to add any new files to this array */
36-
const isInternal: string[] = [...ibm, ...kube, ...istio, ...calico, ...knative, ...openshift, ...operators]
37+
const isInternal: string[] = [...ibm, ...kube, ...istio, ...calico, ...knative, ...rancher, ...openshift, ...operators]
3738

3839
/** Format a regex string from the internal namespaces list e.g. /(kube-node-lease|kube-public)/ */
3940

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright 2021 The Kubernetes Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
export default [
18+
'^local-path-storage$' // https://github.com/rancher/local-path-provisioner
19+
]

0 commit comments

Comments
 (0)