Add datapolicy tags to pkg/kubelet/

This commit is contained in:
Marek Siarkowicz 2020-10-29 18:19:33 +01:00
parent 17312ea4a9
commit 035469bd0c
3 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ type KubeletConfiguration struct {
// staticPodURL is the URL for accessing static pods to run
StaticPodURL string
// staticPodURLHeader is a map of slices with HTTP headers to use when accessing the podURL
StaticPodURLHeader map[string][]string
StaticPodURLHeader map[string][]string `datapolicy:"token"`
// address is the IP address for the Kubelet to serve on (set to 0.0.0.0
// for all interfaces)
Address string

View File

@ -48,7 +48,7 @@ type KubeletClientConfig struct {
restclient.TLSClientConfig
// Server requires Bearer authentication
BearerToken string
BearerToken string `datapolicy:"token"`
// HTTPTimeout is used by the client to timeout http requests to Kubelet.
HTTPTimeout time.Duration

View File

@ -56,7 +56,7 @@ type requestCache struct {
type request interface{}
type cacheEntry struct {
token string
token string `datapolicy:"token"`
req request
expireTime time.Time
}