@@ -969,7 +969,7 @@ func GetInClusterContext(oidcIssuerURL string,
969969
970970// Func type for context filter, if the func return true,
971971// the context will be skipped otherwise the context will be used.
972- type shouldBeSkippedFunc = func (kubeContext Context ) bool
972+ type ShouldBeSkippedFunc = func (kubeContext Context ) bool
973973
974974// AllowAllKubeContext will keep all contexts.
975975func AllowAllKubeContext (_ Context ) bool {
@@ -980,7 +980,7 @@ func AllowAllKubeContext(_ Context) bool {
980980// whose names are in the given comma-separated string.
981981// For example, if pass the "a,b" for blackKubeContextNameStr,
982982// the contexts named "a" and "b" will be skipped.
983- func SkipKubeContextInCommaSeparatedString (blackKubeContextNameStr string ) shouldBeSkippedFunc {
983+ func SkipKubeContextInCommaSeparatedString (blackKubeContextNameStr string ) ShouldBeSkippedFunc {
984984 blackKubeContextNameList := strings .Split (blackKubeContextNameStr , "," )
985985 blackKubeContextNameMap := map [string ]bool {}
986986
@@ -999,7 +999,7 @@ func SkipKubeContextInCommaSeparatedString(blackKubeContextNameStr string) shoul
999999// Note: No need to remove contexts from the store, since
10001000// adding a context with the same name will overwrite the old one.
10011001func LoadAndStoreKubeConfigs (kubeConfigStore ContextStore , kubeConfigs string , source int ,
1002- ignoreFunc shouldBeSkippedFunc ,
1002+ ignoreFunc ShouldBeSkippedFunc ,
10031003) error {
10041004 var errs []error //nolint:prealloc
10051005
0 commit comments