go.mod: bump client-go and api machinerie
I had to run `make generate`. Some API functions got additional parameters `Options` and `Context`. I used empty options and `context.TODO()` for now. Signed-off-by: leonnicolas <leonloechner@gmx.de>
This commit is contained in:
		
							
								
								
									
										27
									
								
								vendor/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1/conversion.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								vendor/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1/conversion.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| /* | ||||
| Copyright 2020 The Kubernetes Authors. | ||||
|  | ||||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| you may not use this file except in compliance with the License. | ||||
| You may obtain a copy of the License at | ||||
|  | ||||
|     http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
| Unless required by applicable law or agreed to in writing, software | ||||
| distributed under the License is distributed on an "AS IS" BASIS, | ||||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| See the License for the specific language governing permissions and | ||||
| limitations under the License. | ||||
| */ | ||||
|  | ||||
| package v1alpha1 | ||||
|  | ||||
| import ( | ||||
| 	"k8s.io/apimachinery/pkg/conversion" | ||||
| 	"k8s.io/client-go/pkg/apis/clientauthentication" | ||||
| ) | ||||
|  | ||||
| func Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in *clientauthentication.ExecCredentialSpec, out *ExecCredentialSpec, s conversion.Scope) error { | ||||
| 	// This conversion intentionally omits the Cluster field which is only supported in newer versions. | ||||
| 	return autoConvert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in, out, s) | ||||
| } | ||||
							
								
								
									
										6
									
								
								vendor/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1/types.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1/types.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -37,7 +37,7 @@ type ExecCredential struct { | ||||
| 	Status *ExecCredentialStatus `json:"status,omitempty"` | ||||
| } | ||||
|  | ||||
| // ExecCredenitalSpec holds request and runtime specific information provided by | ||||
| // ExecCredentialSpec holds request and runtime specific information provided by | ||||
| // the transport. | ||||
| type ExecCredentialSpec struct { | ||||
| 	// Response is populated when the transport encounters HTTP status codes, such as 401, | ||||
| @@ -61,11 +61,11 @@ type ExecCredentialStatus struct { | ||||
| 	// +optional | ||||
| 	ExpirationTimestamp *metav1.Time `json:"expirationTimestamp,omitempty"` | ||||
| 	// Token is a bearer token used by the client for request authentication. | ||||
| 	Token string `json:"token,omitempty"` | ||||
| 	Token string `json:"token,omitempty" datapolicy:"token"` | ||||
| 	// PEM-encoded client TLS certificates (including intermediates, if any). | ||||
| 	ClientCertificateData string `json:"clientCertificateData,omitempty"` | ||||
| 	// PEM-encoded private key for the above certificate. | ||||
| 	ClientKeyData string `json:"clientKeyData,omitempty"` | ||||
| 	ClientKeyData string `json:"clientKeyData,omitempty" datapolicy:"security-key"` | ||||
| } | ||||
|  | ||||
| // Response defines metadata about a failed request, including HTTP status code and | ||||
|   | ||||
| @@ -51,11 +51,6 @@ func RegisterConversions(s *runtime.Scheme) error { | ||||
| 	}); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	if err := s.AddGeneratedConversionFunc((*clientauthentication.ExecCredentialSpec)(nil), (*ExecCredentialSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { | ||||
| 		return Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(a.(*clientauthentication.ExecCredentialSpec), b.(*ExecCredentialSpec), scope) | ||||
| 	}); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	if err := s.AddGeneratedConversionFunc((*ExecCredentialStatus)(nil), (*clientauthentication.ExecCredentialStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { | ||||
| 		return Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(a.(*ExecCredentialStatus), b.(*clientauthentication.ExecCredentialStatus), scope) | ||||
| 	}); err != nil { | ||||
| @@ -76,6 +71,11 @@ func RegisterConversions(s *runtime.Scheme) error { | ||||
| 	}); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	if err := s.AddConversionFunc((*clientauthentication.ExecCredentialSpec)(nil), (*ExecCredentialSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { | ||||
| 		return Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(a.(*clientauthentication.ExecCredentialSpec), b.(*ExecCredentialSpec), scope) | ||||
| 	}); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| @@ -119,14 +119,10 @@ func Convert_v1alpha1_ExecCredentialSpec_To_clientauthentication_ExecCredentialS | ||||
| func autoConvert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in *clientauthentication.ExecCredentialSpec, out *ExecCredentialSpec, s conversion.Scope) error { | ||||
| 	out.Response = (*Response)(unsafe.Pointer(in.Response)) | ||||
| 	out.Interactive = in.Interactive | ||||
| 	// WARNING: in.Cluster requires manual conversion: does not exist in peer-type | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| // Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec is an autogenerated conversion function. | ||||
| func Convert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in *clientauthentication.ExecCredentialSpec, out *ExecCredentialSpec, s conversion.Scope) error { | ||||
| 	return autoConvert_clientauthentication_ExecCredentialSpec_To_v1alpha1_ExecCredentialSpec(in, out, s) | ||||
| } | ||||
|  | ||||
| func autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error { | ||||
| 	out.ExpirationTimestamp = (*v1.Time)(unsafe.Pointer(in.ExpirationTimestamp)) | ||||
| 	out.Token = in.Token | ||||
|   | ||||
		Reference in New Issue
	
	Block a user