mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
client-go: update generated
This commit is contained in:
parent
c732bb8348
commit
1d5ad2264c
@ -61,6 +61,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -69,6 +69,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -413,6 +413,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -61,6 +61,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -61,6 +61,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -77,6 +77,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -77,6 +77,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -69,6 +69,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -69,6 +69,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -69,6 +69,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -69,6 +69,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -61,6 +61,10 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
|||||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||||
configShallowCopy := *c
|
configShallowCopy := *c
|
||||||
|
|
||||||
|
if configShallowCopy.UserAgent == "" {
|
||||||
|
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||||
|
}
|
||||||
|
|
||||||
// share the transport between all clients
|
// share the transport between all clients
|
||||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user