mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #96004 from serathius/datapolicy-kubelet-pkg
Add datapolicy tags to pkg/kubelet/
This commit is contained in:
commit
5d6ef39406
@ -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
|
||||
|
@ -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
|
||||
|
@ -56,7 +56,7 @@ type requestCache struct {
|
||||
type request interface{}
|
||||
|
||||
type cacheEntry struct {
|
||||
token string
|
||||
token string `datapolicy:"token"`
|
||||
req request
|
||||
expireTime time.Time
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user