mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 19:23:40 +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 is the URL for accessing static pods to run
|
||||||
StaticPodURL string
|
StaticPodURL string
|
||||||
// staticPodURLHeader is a map of slices with HTTP headers to use when accessing the podURL
|
// 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
|
// address is the IP address for the Kubelet to serve on (set to 0.0.0.0
|
||||||
// for all interfaces)
|
// for all interfaces)
|
||||||
Address string
|
Address string
|
||||||
|
@ -48,7 +48,7 @@ type KubeletClientConfig struct {
|
|||||||
restclient.TLSClientConfig
|
restclient.TLSClientConfig
|
||||||
|
|
||||||
// Server requires Bearer authentication
|
// Server requires Bearer authentication
|
||||||
BearerToken string
|
BearerToken string `datapolicy:"token"`
|
||||||
|
|
||||||
// HTTPTimeout is used by the client to timeout http requests to Kubelet.
|
// HTTPTimeout is used by the client to timeout http requests to Kubelet.
|
||||||
HTTPTimeout time.Duration
|
HTTPTimeout time.Duration
|
||||||
|
@ -56,7 +56,7 @@ type requestCache struct {
|
|||||||
type request interface{}
|
type request interface{}
|
||||||
|
|
||||||
type cacheEntry struct {
|
type cacheEntry struct {
|
||||||
token string
|
token string `datapolicy:"token"`
|
||||||
req request
|
req request
|
||||||
expireTime time.Time
|
expireTime time.Time
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user