Merge pull request #96004 from serathius/datapolicy-kubelet-pkg

Add datapolicy tags to  pkg/kubelet/
This commit is contained in:
Kubernetes Prow Robot 2022-03-04 15:34:51 -08:00 committed by GitHub
commit 5d6ef39406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,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
}