mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Add datapolicy tags to pkg/kubelet/
This commit is contained in:
parent
17312ea4a9
commit
035469bd0c
@ -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
|
||||
|
@ -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