Remove Kubernetes auto discovery

This commit is contained in:
TwinProduction
2021-09-02 23:19:49 -04:00
committed by Chris
parent 670e35949e
commit 556f559221
1253 changed files with 12 additions and 524898 deletions
README.md
config
controller
go.modgo.sum
k8s
k8stest
vendor
cloud.google.com
go
LICENSE
compute
metadata
github.com
davecgh
gogo
google
googleapis
imdario
json-iterator
modern-go
spf13
golang.org
x
crypto
ssh
terminal
net
oauth2
sys
term
text
time
google.golang.org
gopkg.in
k8s.io
api
LICENSE
admissionregistration
apps
auditregistration
authentication
authorization
autoscaling
batch
certificates
coordination
core
discovery
events
extensions
flowcontrol
networking
node
policy
rbac
scheduling
settings
storage
apimachinery
LICENSE
pkg
api
apis
conversion
fields
labels
runtime
selection
types
util
version
watch
third_party
forked
golang
client-go
LICENSE
discovery
kubernetes
clientset.godoc.goimport.go
scheme
typed
admissionregistration
apps
auditregistration
authentication
authorization
autoscaling
batch
certificates
coordination
core
discovery
events
extensions
flowcontrol
networking
node
policy
rbac
scheduling
settings
storage
pkg
plugin
pkg
rest
third_party
forked
golang
tools
transport
util
klog
utils
modules.txt
sigs.k8s.io

@ -1,28 +0,0 @@
// Copyright 2011 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package internal
import (
"strings"
)
func parseFullAppID(appid string) (partition, domain, displayID string) {
if i := strings.Index(appid, "~"); i != -1 {
partition, appid = appid[:i], appid[i+1:]
}
if i := strings.Index(appid, ":"); i != -1 {
domain, appid = appid[:i], appid[i+1:]
}
return partition, domain, appid
}
// appID returns "appid" or "domain.com:appid".
func appID(fullAppID string) string {
_, dom, dis := parseFullAppID(fullAppID)
if dom != "" {
return dom + ":" + dis
}
return dis
}