Remove deprecated "pinniped.dev" API group.
This has been replaced by the "login.pinniped.dev" group with a slightly different API. Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
parent
f86a5244a6
commit
78ac27c262
@ -1,8 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// +k8s:deepcopy-gen=package
|
|
||||||
// +groupName=pinniped.dev
|
|
||||||
|
|
||||||
// Package pinniped is the internal version of the Pinniped aggregated API.
|
|
||||||
package pinniped
|
|
@ -1,38 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import (
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
)
|
|
||||||
|
|
||||||
const GroupName = "pinniped.dev"
|
|
||||||
|
|
||||||
// SchemeGroupVersion is group version used to register these objects.
|
|
||||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
|
|
||||||
|
|
||||||
// Kind takes an unqualified kind and returns back a Group qualified GroupKind.
|
|
||||||
func Kind(kind string) schema.GroupKind {
|
|
||||||
return SchemeGroupVersion.WithKind(kind).GroupKind()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Resource takes an unqualified resource and returns back a Group qualified GroupResource.
|
|
||||||
func Resource(resource string) schema.GroupResource {
|
|
||||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
|
||||||
AddToScheme = SchemeBuilder.AddToScheme
|
|
||||||
)
|
|
||||||
|
|
||||||
// Adds the list of known types to the given scheme.
|
|
||||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
|
||||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
|
||||||
&CredentialRequest{},
|
|
||||||
&CredentialRequestList{},
|
|
||||||
)
|
|
||||||
return nil
|
|
||||||
}
|
|
@ -1,73 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
|
|
||||||
type CredentialType string
|
|
||||||
|
|
||||||
const (
|
|
||||||
TokenCredentialType = CredentialType("token")
|
|
||||||
)
|
|
||||||
|
|
||||||
type CredentialRequestTokenCredential struct {
|
|
||||||
// Value of the bearer token supplied with the credential request.
|
|
||||||
Value string
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestSpec struct {
|
|
||||||
// Type of credential.
|
|
||||||
Type CredentialType
|
|
||||||
|
|
||||||
// Token credential (when Type == TokenCredentialType).
|
|
||||||
Token *CredentialRequestTokenCredential
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestCredential struct {
|
|
||||||
// ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
ExpirationTimestamp metav1.Time
|
|
||||||
|
|
||||||
// Token is a bearer token used by the client for request authentication.
|
|
||||||
Token string
|
|
||||||
|
|
||||||
// PEM-encoded client TLS certificates (including intermediates, if any).
|
|
||||||
ClientCertificateData string
|
|
||||||
|
|
||||||
// PEM-encoded private key for the above certificate.
|
|
||||||
ClientKeyData string
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestStatus struct {
|
|
||||||
// A Credential will be returned for a successful credential request.
|
|
||||||
// +optional
|
|
||||||
Credential *CredentialRequestCredential
|
|
||||||
|
|
||||||
// An error message will be returned for an unsuccessful credential request.
|
|
||||||
// +optional
|
|
||||||
Message *string
|
|
||||||
}
|
|
||||||
|
|
||||||
// +genclient
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
|
|
||||||
type CredentialRequest struct {
|
|
||||||
metav1.TypeMeta
|
|
||||||
metav1.ObjectMeta
|
|
||||||
|
|
||||||
Spec CredentialRequestSpec
|
|
||||||
Status CredentialRequestStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
|
|
||||||
// CredentialRequestList is a list of CredentialRequest objects.
|
|
||||||
type CredentialRequestList struct {
|
|
||||||
metav1.TypeMeta
|
|
||||||
metav1.ListMeta
|
|
||||||
|
|
||||||
// Items is a list of CredentialRequests
|
|
||||||
Items []CredentialRequest
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
@ -1,12 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
func addDefaultingFuncs(scheme *runtime.Scheme) error {
|
|
||||||
return RegisterDefaults(scheme)
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// +k8s:openapi-gen=true
|
|
||||||
// +k8s:deepcopy-gen=package
|
|
||||||
// +k8s:conversion-gen=go.pinniped.dev/GENERATED_PKG/apis/pinniped
|
|
||||||
// +k8s:defaulter-gen=TypeMeta
|
|
||||||
// +groupName=pinniped.dev
|
|
||||||
|
|
||||||
// Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API.
|
|
||||||
package v1alpha1
|
|
@ -1,43 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
)
|
|
||||||
|
|
||||||
const GroupName = "pinniped.dev"
|
|
||||||
|
|
||||||
// SchemeGroupVersion is group version used to register these objects.
|
|
||||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
|
|
||||||
|
|
||||||
var (
|
|
||||||
SchemeBuilder runtime.SchemeBuilder
|
|
||||||
localSchemeBuilder = &SchemeBuilder
|
|
||||||
AddToScheme = localSchemeBuilder.AddToScheme
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
// We only register manually written functions here. The registration of the
|
|
||||||
// generated functions takes place in the generated files. The separation
|
|
||||||
// makes the code compile even when the generated files are missing.
|
|
||||||
localSchemeBuilder.Register(addKnownTypes, addDefaultingFuncs)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Adds the list of known types to the given scheme.
|
|
||||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
|
||||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
|
||||||
&CredentialRequest{},
|
|
||||||
&CredentialRequestList{},
|
|
||||||
)
|
|
||||||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Resource takes an unqualified resource and returns a Group qualified GroupResource.
|
|
||||||
func Resource(resource string) schema.GroupResource {
|
|
||||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
|
||||||
}
|
|
@ -1,77 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
|
|
||||||
type CredentialType string
|
|
||||||
|
|
||||||
const (
|
|
||||||
TokenCredentialType = CredentialType("token")
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider.
|
|
||||||
type CredentialRequestTokenCredential struct {
|
|
||||||
// Value of the bearer token supplied with the credential request.
|
|
||||||
Value string `json:"value,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestSpec is the specification of a CredentialRequest, expected on requests to the Pinniped API
|
|
||||||
type CredentialRequestSpec struct {
|
|
||||||
// Type of credential.
|
|
||||||
Type CredentialType `json:"type,omitempty"`
|
|
||||||
|
|
||||||
// Token credential (when Type == TokenCredentialType).
|
|
||||||
Token *CredentialRequestTokenCredential `json:"token,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestCredential is the cluster-specific credential returned on a successful CredentialRequest. It
|
|
||||||
// contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster.
|
|
||||||
type CredentialRequestCredential struct {
|
|
||||||
// ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
ExpirationTimestamp metav1.Time `json:"expirationTimestamp,omitempty"`
|
|
||||||
|
|
||||||
// Token is a bearer token used by the client for request authentication.
|
|
||||||
Token string `json:"token,omitempty"`
|
|
||||||
|
|
||||||
// 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"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestStatus is the status of a CredentialRequest, returned on responses to the Pinniped API.
|
|
||||||
type CredentialRequestStatus struct {
|
|
||||||
// A Credential will be returned for a successful credential request.
|
|
||||||
// +optional
|
|
||||||
Credential *CredentialRequestCredential `json:"credential,omitempty"`
|
|
||||||
|
|
||||||
// An error message will be returned for an unsuccessful credential request.
|
|
||||||
// +optional
|
|
||||||
Message *string `json:"message,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential.
|
|
||||||
// +genclient
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
type CredentialRequest struct {
|
|
||||||
metav1.TypeMeta `json:",inline"`
|
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
|
||||||
|
|
||||||
Spec CredentialRequestSpec `json:"spec,omitempty"`
|
|
||||||
Status CredentialRequestStatus `json:"status,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// CredentialRequestList is a list of CredentialRequest objects.
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
type CredentialRequestList struct {
|
|
||||||
metav1.TypeMeta `json:",inline"`
|
|
||||||
metav1.ListMeta `json:"metadata,omitempty"`
|
|
||||||
|
|
||||||
Items []CredentialRequest `json:"items"`
|
|
||||||
}
|
|
@ -159,23 +159,6 @@ spec:
|
|||||||
---
|
---
|
||||||
apiVersion: apiregistration.k8s.io/v1
|
apiVersion: apiregistration.k8s.io/v1
|
||||||
kind: APIService
|
kind: APIService
|
||||||
metadata:
|
|
||||||
name: v1alpha1.pinniped.dev
|
|
||||||
labels:
|
|
||||||
app: #@ data.values.app_name
|
|
||||||
spec:
|
|
||||||
version: v1alpha1
|
|
||||||
group: pinniped.dev
|
|
||||||
groupPriorityMinimum: 2500 #! TODO what is the right value? https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#apiservicespec-v1beta1-apiregistration-k8s-io
|
|
||||||
versionPriority: 10 #! TODO what is the right value? https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#apiservicespec-v1beta1-apiregistration-k8s-io
|
|
||||||
#! caBundle: Do not include this key here. Starts out null, will be updated/owned by the golang code.
|
|
||||||
service:
|
|
||||||
name: pinniped-api
|
|
||||||
namespace: #@ data.values.namespace
|
|
||||||
port: 443
|
|
||||||
---
|
|
||||||
apiVersion: apiregistration.k8s.io/v1
|
|
||||||
kind: APIService
|
|
||||||
metadata:
|
metadata:
|
||||||
name: v1alpha1.login.pinniped.dev
|
name: v1alpha1.login.pinniped.dev
|
||||||
labels:
|
labels:
|
||||||
|
@ -101,9 +101,6 @@ kind: ClusterRole
|
|||||||
metadata:
|
metadata:
|
||||||
name: #@ data.values.app_name + "-credentialrequests-cluster-role"
|
name: #@ data.values.app_name + "-credentialrequests-cluster-role"
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [pinniped.dev]
|
|
||||||
resources: [credentialrequests]
|
|
||||||
verbs: [create]
|
|
||||||
- apiGroups: [login.pinniped.dev]
|
- apiGroups: [login.pinniped.dev]
|
||||||
resources: [tokencredentialrequests]
|
resources: [tokencredentialrequests]
|
||||||
verbs: [create]
|
verbs: [create]
|
||||||
|
104
generated/1.17/README.adoc
generated
104
generated/1.17/README.adoc
generated
@ -8,7 +8,6 @@
|
|||||||
- xref:{anchor_prefix}-config-pinniped-dev-v1alpha1[$$config.pinniped.dev/v1alpha1$$]
|
- xref:{anchor_prefix}-config-pinniped-dev-v1alpha1[$$config.pinniped.dev/v1alpha1$$]
|
||||||
- xref:{anchor_prefix}-idp-pinniped-dev-v1alpha1[$$idp.pinniped.dev/v1alpha1$$]
|
- xref:{anchor_prefix}-idp-pinniped-dev-v1alpha1[$$idp.pinniped.dev/v1alpha1$$]
|
||||||
- xref:{anchor_prefix}-login-pinniped-dev-v1alpha1[$$login.pinniped.dev/v1alpha1$$]
|
- xref:{anchor_prefix}-login-pinniped-dev-v1alpha1[$$login.pinniped.dev/v1alpha1$$]
|
||||||
- xref:{anchor_prefix}-pinniped-dev-v1alpha1[$$pinniped.dev/v1alpha1$$]
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-config-pinniped-dev-v1alpha1"]
|
[id="{anchor_prefix}-config-pinniped-dev-v1alpha1"]
|
||||||
@ -285,106 +284,3 @@ TokenCredentialRequestStatus is the status of a TokenCredentialRequest, returned
|
|||||||
|===
|
|===
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-pinniped-dev-v1alpha1"]
|
|
||||||
=== pinniped.dev/v1alpha1
|
|
||||||
|
|
||||||
Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequest"]
|
|
||||||
==== CredentialRequest
|
|
||||||
|
|
||||||
CredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequestlist[$$CredentialRequestList$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`.
|
|
||||||
|
|
||||||
| *`spec`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequestspec[$$CredentialRequestSpec$$]__ |
|
|
||||||
| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequeststatus[$$CredentialRequestStatus$$]__ |
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequestcredential"]
|
|
||||||
==== CredentialRequestCredential
|
|
||||||
|
|
||||||
CredentialRequestCredential is the cluster-specific credential returned on a successful CredentialRequest. It contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequeststatus[$$CredentialRequestStatus$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`expirationTimestamp`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#time-v1-meta[$$Time$$]__ | ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
| *`token`* __string__ | Token is a bearer token used by the client for request authentication.
|
|
||||||
| *`clientCertificateData`* __string__ | PEM-encoded client TLS certificates (including intermediates, if any).
|
|
||||||
| *`clientKeyData`* __string__ | PEM-encoded private key for the above certificate.
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequestspec"]
|
|
||||||
==== CredentialRequestSpec
|
|
||||||
|
|
||||||
CredentialRequestSpec is the specification of a CredentialRequest, expected on requests to the Pinniped API
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`type`* __CredentialType__ | Type of credential.
|
|
||||||
| *`token`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequesttokencredential[$$CredentialRequestTokenCredential$$]__ | Token credential (when Type == TokenCredentialType).
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequeststatus"]
|
|
||||||
==== CredentialRequestStatus
|
|
||||||
|
|
||||||
CredentialRequestStatus is the status of a CredentialRequest, returned on responses to the Pinniped API.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`credential`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequestcredential[$$CredentialRequestCredential$$]__ | A Credential will be returned for a successful credential request.
|
|
||||||
| *`message`* __string__ | An error message will be returned for an unsuccessful credential request.
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequesttokencredential"]
|
|
||||||
==== CredentialRequestTokenCredential
|
|
||||||
|
|
||||||
CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-pinniped-v1alpha1-credentialrequestspec[$$CredentialRequestSpec$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`value`* __string__ | Value of the bearer token supplied with the credential request.
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
|
8
generated/1.17/apis/pinniped/doc.go
generated
8
generated/1.17/apis/pinniped/doc.go
generated
@ -1,8 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// +k8s:deepcopy-gen=package
|
|
||||||
// +groupName=pinniped.dev
|
|
||||||
|
|
||||||
// Package pinniped is the internal version of the Pinniped aggregated API.
|
|
||||||
package pinniped
|
|
38
generated/1.17/apis/pinniped/register.go
generated
38
generated/1.17/apis/pinniped/register.go
generated
@ -1,38 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import (
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
)
|
|
||||||
|
|
||||||
const GroupName = "pinniped.dev"
|
|
||||||
|
|
||||||
// SchemeGroupVersion is group version used to register these objects.
|
|
||||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
|
|
||||||
|
|
||||||
// Kind takes an unqualified kind and returns back a Group qualified GroupKind.
|
|
||||||
func Kind(kind string) schema.GroupKind {
|
|
||||||
return SchemeGroupVersion.WithKind(kind).GroupKind()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Resource takes an unqualified resource and returns back a Group qualified GroupResource.
|
|
||||||
func Resource(resource string) schema.GroupResource {
|
|
||||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
|
||||||
AddToScheme = SchemeBuilder.AddToScheme
|
|
||||||
)
|
|
||||||
|
|
||||||
// Adds the list of known types to the given scheme.
|
|
||||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
|
||||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
|
||||||
&CredentialRequest{},
|
|
||||||
&CredentialRequestList{},
|
|
||||||
)
|
|
||||||
return nil
|
|
||||||
}
|
|
73
generated/1.17/apis/pinniped/types.go
generated
73
generated/1.17/apis/pinniped/types.go
generated
@ -1,73 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
|
|
||||||
type CredentialType string
|
|
||||||
|
|
||||||
const (
|
|
||||||
TokenCredentialType = CredentialType("token")
|
|
||||||
)
|
|
||||||
|
|
||||||
type CredentialRequestTokenCredential struct {
|
|
||||||
// Value of the bearer token supplied with the credential request.
|
|
||||||
Value string
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestSpec struct {
|
|
||||||
// Type of credential.
|
|
||||||
Type CredentialType
|
|
||||||
|
|
||||||
// Token credential (when Type == TokenCredentialType).
|
|
||||||
Token *CredentialRequestTokenCredential
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestCredential struct {
|
|
||||||
// ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
ExpirationTimestamp metav1.Time
|
|
||||||
|
|
||||||
// Token is a bearer token used by the client for request authentication.
|
|
||||||
Token string
|
|
||||||
|
|
||||||
// PEM-encoded client TLS certificates (including intermediates, if any).
|
|
||||||
ClientCertificateData string
|
|
||||||
|
|
||||||
// PEM-encoded private key for the above certificate.
|
|
||||||
ClientKeyData string
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestStatus struct {
|
|
||||||
// A Credential will be returned for a successful credential request.
|
|
||||||
// +optional
|
|
||||||
Credential *CredentialRequestCredential
|
|
||||||
|
|
||||||
// An error message will be returned for an unsuccessful credential request.
|
|
||||||
// +optional
|
|
||||||
Message *string
|
|
||||||
}
|
|
||||||
|
|
||||||
// +genclient
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
|
|
||||||
type CredentialRequest struct {
|
|
||||||
metav1.TypeMeta
|
|
||||||
metav1.ObjectMeta
|
|
||||||
|
|
||||||
Spec CredentialRequestSpec
|
|
||||||
Status CredentialRequestStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
|
|
||||||
// CredentialRequestList is a list of CredentialRequest objects.
|
|
||||||
type CredentialRequestList struct {
|
|
||||||
metav1.TypeMeta
|
|
||||||
metav1.ListMeta
|
|
||||||
|
|
||||||
// Items is a list of CredentialRequests
|
|
||||||
Items []CredentialRequest
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
12
generated/1.17/apis/pinniped/v1alpha1/defaults.go
generated
12
generated/1.17/apis/pinniped/v1alpha1/defaults.go
generated
@ -1,12 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
func addDefaultingFuncs(scheme *runtime.Scheme) error {
|
|
||||||
return RegisterDefaults(scheme)
|
|
||||||
}
|
|
11
generated/1.17/apis/pinniped/v1alpha1/doc.go
generated
11
generated/1.17/apis/pinniped/v1alpha1/doc.go
generated
@ -1,11 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// +k8s:openapi-gen=true
|
|
||||||
// +k8s:deepcopy-gen=package
|
|
||||||
// +k8s:conversion-gen=go.pinniped.dev/generated/1.17/apis/pinniped
|
|
||||||
// +k8s:defaulter-gen=TypeMeta
|
|
||||||
// +groupName=pinniped.dev
|
|
||||||
|
|
||||||
// Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API.
|
|
||||||
package v1alpha1
|
|
43
generated/1.17/apis/pinniped/v1alpha1/register.go
generated
43
generated/1.17/apis/pinniped/v1alpha1/register.go
generated
@ -1,43 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
)
|
|
||||||
|
|
||||||
const GroupName = "pinniped.dev"
|
|
||||||
|
|
||||||
// SchemeGroupVersion is group version used to register these objects.
|
|
||||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
|
|
||||||
|
|
||||||
var (
|
|
||||||
SchemeBuilder runtime.SchemeBuilder
|
|
||||||
localSchemeBuilder = &SchemeBuilder
|
|
||||||
AddToScheme = localSchemeBuilder.AddToScheme
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
// We only register manually written functions here. The registration of the
|
|
||||||
// generated functions takes place in the generated files. The separation
|
|
||||||
// makes the code compile even when the generated files are missing.
|
|
||||||
localSchemeBuilder.Register(addKnownTypes, addDefaultingFuncs)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Adds the list of known types to the given scheme.
|
|
||||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
|
||||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
|
||||||
&CredentialRequest{},
|
|
||||||
&CredentialRequestList{},
|
|
||||||
)
|
|
||||||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Resource takes an unqualified resource and returns a Group qualified GroupResource.
|
|
||||||
func Resource(resource string) schema.GroupResource {
|
|
||||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
|
||||||
}
|
|
77
generated/1.17/apis/pinniped/v1alpha1/types.go
generated
77
generated/1.17/apis/pinniped/v1alpha1/types.go
generated
@ -1,77 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
|
|
||||||
type CredentialType string
|
|
||||||
|
|
||||||
const (
|
|
||||||
TokenCredentialType = CredentialType("token")
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider.
|
|
||||||
type CredentialRequestTokenCredential struct {
|
|
||||||
// Value of the bearer token supplied with the credential request.
|
|
||||||
Value string `json:"value,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestSpec is the specification of a CredentialRequest, expected on requests to the Pinniped API
|
|
||||||
type CredentialRequestSpec struct {
|
|
||||||
// Type of credential.
|
|
||||||
Type CredentialType `json:"type,omitempty"`
|
|
||||||
|
|
||||||
// Token credential (when Type == TokenCredentialType).
|
|
||||||
Token *CredentialRequestTokenCredential `json:"token,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestCredential is the cluster-specific credential returned on a successful CredentialRequest. It
|
|
||||||
// contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster.
|
|
||||||
type CredentialRequestCredential struct {
|
|
||||||
// ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
ExpirationTimestamp metav1.Time `json:"expirationTimestamp,omitempty"`
|
|
||||||
|
|
||||||
// Token is a bearer token used by the client for request authentication.
|
|
||||||
Token string `json:"token,omitempty"`
|
|
||||||
|
|
||||||
// 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"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestStatus is the status of a CredentialRequest, returned on responses to the Pinniped API.
|
|
||||||
type CredentialRequestStatus struct {
|
|
||||||
// A Credential will be returned for a successful credential request.
|
|
||||||
// +optional
|
|
||||||
Credential *CredentialRequestCredential `json:"credential,omitempty"`
|
|
||||||
|
|
||||||
// An error message will be returned for an unsuccessful credential request.
|
|
||||||
// +optional
|
|
||||||
Message *string `json:"message,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential.
|
|
||||||
// +genclient
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
type CredentialRequest struct {
|
|
||||||
metav1.TypeMeta `json:",inline"`
|
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
|
||||||
|
|
||||||
Spec CredentialRequestSpec `json:"spec,omitempty"`
|
|
||||||
Status CredentialRequestStatus `json:"status,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// CredentialRequestList is a list of CredentialRequest objects.
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
type CredentialRequestList struct {
|
|
||||||
metav1.TypeMeta `json:",inline"`
|
|
||||||
metav1.ListMeta `json:"metadata,omitempty"`
|
|
||||||
|
|
||||||
Items []CredentialRequest `json:"items"`
|
|
||||||
}
|
|
@ -1,230 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by conversion-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
unsafe "unsafe"
|
|
||||||
|
|
||||||
pinniped "go.pinniped.dev/generated/1.17/apis/pinniped"
|
|
||||||
conversion "k8s.io/apimachinery/pkg/conversion"
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
localSchemeBuilder.Register(RegisterConversions)
|
|
||||||
}
|
|
||||||
|
|
||||||
// RegisterConversions adds conversion functions to the given scheme.
|
|
||||||
// Public to allow building arbitrary schemes.
|
|
||||||
func RegisterConversions(s *runtime.Scheme) error {
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequest)(nil), (*pinniped.CredentialRequest)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(a.(*CredentialRequest), b.(*pinniped.CredentialRequest), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequest)(nil), (*CredentialRequest)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(a.(*pinniped.CredentialRequest), b.(*CredentialRequest), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestCredential)(nil), (*pinniped.CredentialRequestCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(a.(*CredentialRequestCredential), b.(*pinniped.CredentialRequestCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestCredential)(nil), (*CredentialRequestCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(a.(*pinniped.CredentialRequestCredential), b.(*CredentialRequestCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestList)(nil), (*pinniped.CredentialRequestList)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(a.(*CredentialRequestList), b.(*pinniped.CredentialRequestList), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestList)(nil), (*CredentialRequestList)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(a.(*pinniped.CredentialRequestList), b.(*CredentialRequestList), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestSpec)(nil), (*pinniped.CredentialRequestSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(a.(*CredentialRequestSpec), b.(*pinniped.CredentialRequestSpec), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestSpec)(nil), (*CredentialRequestSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(a.(*pinniped.CredentialRequestSpec), b.(*CredentialRequestSpec), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestStatus)(nil), (*pinniped.CredentialRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(a.(*CredentialRequestStatus), b.(*pinniped.CredentialRequestStatus), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestStatus)(nil), (*CredentialRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(a.(*pinniped.CredentialRequestStatus), b.(*CredentialRequestStatus), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestTokenCredential)(nil), (*pinniped.CredentialRequestTokenCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(a.(*CredentialRequestTokenCredential), b.(*pinniped.CredentialRequestTokenCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestTokenCredential)(nil), (*CredentialRequestTokenCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(a.(*pinniped.CredentialRequestTokenCredential), b.(*CredentialRequestTokenCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(in *CredentialRequest, out *pinniped.CredentialRequest, s conversion.Scope) error {
|
|
||||||
out.ObjectMeta = in.ObjectMeta
|
|
||||||
if err := Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(&in.Spec, &out.Spec, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(&in.Status, &out.Status, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(in *CredentialRequest, out *pinniped.CredentialRequest, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(in *pinniped.CredentialRequest, out *CredentialRequest, s conversion.Scope) error {
|
|
||||||
out.ObjectMeta = in.ObjectMeta
|
|
||||||
if err := Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(&in.Spec, &out.Spec, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(&in.Status, &out.Status, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(in *pinniped.CredentialRequest, out *CredentialRequest, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(in *CredentialRequestCredential, out *pinniped.CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
out.ExpirationTimestamp = in.ExpirationTimestamp
|
|
||||||
out.Token = in.Token
|
|
||||||
out.ClientCertificateData = in.ClientCertificateData
|
|
||||||
out.ClientKeyData = in.ClientKeyData
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(in *CredentialRequestCredential, out *pinniped.CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(in *pinniped.CredentialRequestCredential, out *CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
out.ExpirationTimestamp = in.ExpirationTimestamp
|
|
||||||
out.Token = in.Token
|
|
||||||
out.ClientCertificateData = in.ClientCertificateData
|
|
||||||
out.ClientKeyData = in.ClientKeyData
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(in *pinniped.CredentialRequestCredential, out *CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(in *CredentialRequestList, out *pinniped.CredentialRequestList, s conversion.Scope) error {
|
|
||||||
out.ListMeta = in.ListMeta
|
|
||||||
out.Items = *(*[]pinniped.CredentialRequest)(unsafe.Pointer(&in.Items))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(in *CredentialRequestList, out *pinniped.CredentialRequestList, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(in *pinniped.CredentialRequestList, out *CredentialRequestList, s conversion.Scope) error {
|
|
||||||
out.ListMeta = in.ListMeta
|
|
||||||
out.Items = *(*[]CredentialRequest)(unsafe.Pointer(&in.Items))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(in *pinniped.CredentialRequestList, out *CredentialRequestList, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(in *CredentialRequestSpec, out *pinniped.CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
out.Type = pinniped.CredentialType(in.Type)
|
|
||||||
out.Token = (*pinniped.CredentialRequestTokenCredential)(unsafe.Pointer(in.Token))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(in *CredentialRequestSpec, out *pinniped.CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(in *pinniped.CredentialRequestSpec, out *CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
out.Type = CredentialType(in.Type)
|
|
||||||
out.Token = (*CredentialRequestTokenCredential)(unsafe.Pointer(in.Token))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(in *pinniped.CredentialRequestSpec, out *CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(in *CredentialRequestStatus, out *pinniped.CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
out.Credential = (*pinniped.CredentialRequestCredential)(unsafe.Pointer(in.Credential))
|
|
||||||
out.Message = (*string)(unsafe.Pointer(in.Message))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(in *CredentialRequestStatus, out *pinniped.CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(in *pinniped.CredentialRequestStatus, out *CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
out.Credential = (*CredentialRequestCredential)(unsafe.Pointer(in.Credential))
|
|
||||||
out.Message = (*string)(unsafe.Pointer(in.Message))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(in *pinniped.CredentialRequestStatus, out *CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(in *CredentialRequestTokenCredential, out *pinniped.CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
out.Value = in.Value
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(in *CredentialRequestTokenCredential, out *pinniped.CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(in *pinniped.CredentialRequestTokenCredential, out *CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
out.Value = in.Value
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(in *pinniped.CredentialRequestTokenCredential, out *CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(in, out, s)
|
|
||||||
}
|
|
@ -1,153 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by deepcopy-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequest) DeepCopyInto(out *CredentialRequest) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
||||||
in.Spec.DeepCopyInto(&out.Spec)
|
|
||||||
in.Status.DeepCopyInto(&out.Status)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequest.
|
|
||||||
func (in *CredentialRequest) DeepCopy() *CredentialRequest {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequest)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequest) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopyInto(out *CredentialRequestCredential) {
|
|
||||||
*out = *in
|
|
||||||
in.ExpirationTimestamp.DeepCopyInto(&out.ExpirationTimestamp)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestCredential.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopy() *CredentialRequestCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestList) DeepCopyInto(out *CredentialRequestList) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
||||||
if in.Items != nil {
|
|
||||||
in, out := &in.Items, &out.Items
|
|
||||||
*out = make([]CredentialRequest, len(*in))
|
|
||||||
for i := range *in {
|
|
||||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestList.
|
|
||||||
func (in *CredentialRequestList) DeepCopy() *CredentialRequestList {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestList)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequestList) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopyInto(out *CredentialRequestSpec) {
|
|
||||||
*out = *in
|
|
||||||
if in.Token != nil {
|
|
||||||
in, out := &in.Token, &out.Token
|
|
||||||
*out = new(CredentialRequestTokenCredential)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestSpec.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopy() *CredentialRequestSpec {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestSpec)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopyInto(out *CredentialRequestStatus) {
|
|
||||||
*out = *in
|
|
||||||
if in.Credential != nil {
|
|
||||||
in, out := &in.Credential, &out.Credential
|
|
||||||
*out = new(CredentialRequestCredential)
|
|
||||||
(*in).DeepCopyInto(*out)
|
|
||||||
}
|
|
||||||
if in.Message != nil {
|
|
||||||
in, out := &in.Message, &out.Message
|
|
||||||
*out = new(string)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestStatus.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopy() *CredentialRequestStatus {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestStatus)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopyInto(out *CredentialRequestTokenCredential) {
|
|
||||||
*out = *in
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestTokenCredential.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopy() *CredentialRequestTokenCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestTokenCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by defaulter-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
// RegisterDefaults adds defaulters functions to the given scheme.
|
|
||||||
// Public to allow building arbitrary schemes.
|
|
||||||
// All generated defaulters are covering - they call all nested defaulters.
|
|
||||||
func RegisterDefaults(scheme *runtime.Scheme) error {
|
|
||||||
return nil
|
|
||||||
}
|
|
153
generated/1.17/apis/pinniped/zz_generated.deepcopy.go
generated
153
generated/1.17/apis/pinniped/zz_generated.deepcopy.go
generated
@ -1,153 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by deepcopy-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import (
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequest) DeepCopyInto(out *CredentialRequest) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
||||||
in.Spec.DeepCopyInto(&out.Spec)
|
|
||||||
in.Status.DeepCopyInto(&out.Status)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequest.
|
|
||||||
func (in *CredentialRequest) DeepCopy() *CredentialRequest {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequest)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequest) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopyInto(out *CredentialRequestCredential) {
|
|
||||||
*out = *in
|
|
||||||
in.ExpirationTimestamp.DeepCopyInto(&out.ExpirationTimestamp)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestCredential.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopy() *CredentialRequestCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestList) DeepCopyInto(out *CredentialRequestList) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
||||||
if in.Items != nil {
|
|
||||||
in, out := &in.Items, &out.Items
|
|
||||||
*out = make([]CredentialRequest, len(*in))
|
|
||||||
for i := range *in {
|
|
||||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestList.
|
|
||||||
func (in *CredentialRequestList) DeepCopy() *CredentialRequestList {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestList)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequestList) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopyInto(out *CredentialRequestSpec) {
|
|
||||||
*out = *in
|
|
||||||
if in.Token != nil {
|
|
||||||
in, out := &in.Token, &out.Token
|
|
||||||
*out = new(CredentialRequestTokenCredential)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestSpec.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopy() *CredentialRequestSpec {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestSpec)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopyInto(out *CredentialRequestStatus) {
|
|
||||||
*out = *in
|
|
||||||
if in.Credential != nil {
|
|
||||||
in, out := &in.Credential, &out.Credential
|
|
||||||
*out = new(CredentialRequestCredential)
|
|
||||||
(*in).DeepCopyInto(*out)
|
|
||||||
}
|
|
||||||
if in.Message != nil {
|
|
||||||
in, out := &in.Message, &out.Message
|
|
||||||
*out = new(string)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestStatus.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopy() *CredentialRequestStatus {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestStatus)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopyInto(out *CredentialRequestTokenCredential) {
|
|
||||||
*out = *in
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestTokenCredential.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopy() *CredentialRequestTokenCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestTokenCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
@ -11,7 +11,6 @@ import (
|
|||||||
configv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/config/v1alpha1"
|
configv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1"
|
|
||||||
discovery "k8s.io/client-go/discovery"
|
discovery "k8s.io/client-go/discovery"
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
||||||
@ -22,17 +21,15 @@ type Interface interface {
|
|||||||
ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface
|
ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface
|
||||||
IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface
|
IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface
|
||||||
LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface
|
LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface
|
||||||
PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clientset contains the clients for groups. Each group has exactly one
|
// Clientset contains the clients for groups. Each group has exactly one
|
||||||
// version included in a Clientset.
|
// version included in a Clientset.
|
||||||
type Clientset struct {
|
type Clientset struct {
|
||||||
*discovery.DiscoveryClient
|
*discovery.DiscoveryClient
|
||||||
configV1alpha1 *configv1alpha1.ConfigV1alpha1Client
|
configV1alpha1 *configv1alpha1.ConfigV1alpha1Client
|
||||||
iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client
|
iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client
|
||||||
loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client
|
loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client
|
||||||
pinnipedV1alpha1 *pinnipedv1alpha1.PinnipedV1alpha1Client
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConfigV1alpha1 retrieves the ConfigV1alpha1Client
|
// ConfigV1alpha1 retrieves the ConfigV1alpha1Client
|
||||||
@ -50,11 +47,6 @@ func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface {
|
|||||||
return c.loginV1alpha1
|
return c.loginV1alpha1
|
||||||
}
|
}
|
||||||
|
|
||||||
// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client
|
|
||||||
func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface {
|
|
||||||
return c.pinnipedV1alpha1
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discovery retrieves the DiscoveryClient
|
// Discovery retrieves the DiscoveryClient
|
||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||||
if c == nil {
|
if c == nil {
|
||||||
@ -88,10 +80,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
cs.pinnipedV1alpha1, err = pinnipedv1alpha1.NewForConfig(&configShallowCopy)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -107,7 +95,6 @@ func NewForConfigOrDie(c *rest.Config) *Clientset {
|
|||||||
cs.configV1alpha1 = configv1alpha1.NewForConfigOrDie(c)
|
cs.configV1alpha1 = configv1alpha1.NewForConfigOrDie(c)
|
||||||
cs.iDPV1alpha1 = idpv1alpha1.NewForConfigOrDie(c)
|
cs.iDPV1alpha1 = idpv1alpha1.NewForConfigOrDie(c)
|
||||||
cs.loginV1alpha1 = loginv1alpha1.NewForConfigOrDie(c)
|
cs.loginV1alpha1 = loginv1alpha1.NewForConfigOrDie(c)
|
||||||
cs.pinnipedV1alpha1 = pinnipedv1alpha1.NewForConfigOrDie(c)
|
|
||||||
|
|
||||||
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
||||||
return &cs
|
return &cs
|
||||||
@ -119,7 +106,6 @@ func New(c rest.Interface) *Clientset {
|
|||||||
cs.configV1alpha1 = configv1alpha1.New(c)
|
cs.configV1alpha1 = configv1alpha1.New(c)
|
||||||
cs.iDPV1alpha1 = idpv1alpha1.New(c)
|
cs.iDPV1alpha1 = idpv1alpha1.New(c)
|
||||||
cs.loginV1alpha1 = loginv1alpha1.New(c)
|
cs.loginV1alpha1 = loginv1alpha1.New(c)
|
||||||
cs.pinnipedV1alpha1 = pinnipedv1alpha1.New(c)
|
|
||||||
|
|
||||||
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||||
return &cs
|
return &cs
|
||||||
|
@ -13,8 +13,6 @@ import (
|
|||||||
fakeidpv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake"
|
fakeidpv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/login/v1alpha1"
|
||||||
fakeloginv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake"
|
fakeloginv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1"
|
|
||||||
fakepinnipedv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/fake"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
"k8s.io/apimachinery/pkg/watch"
|
"k8s.io/apimachinery/pkg/watch"
|
||||||
"k8s.io/client-go/discovery"
|
"k8s.io/client-go/discovery"
|
||||||
@ -83,8 +81,3 @@ func (c *Clientset) IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface {
|
|||||||
func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface {
|
func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface {
|
||||||
return &fakeloginv1alpha1.FakeLoginV1alpha1{Fake: &c.Fake}
|
return &fakeloginv1alpha1.FakeLoginV1alpha1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client
|
|
||||||
func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface {
|
|
||||||
return &fakepinnipedv1alpha1.FakePinnipedV1alpha1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
@ -9,7 +9,6 @@ import (
|
|||||||
configv1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1"
|
configv1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
@ -24,7 +23,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{
|
|||||||
configv1alpha1.AddToScheme,
|
configv1alpha1.AddToScheme,
|
||||||
idpv1alpha1.AddToScheme,
|
idpv1alpha1.AddToScheme,
|
||||||
loginv1alpha1.AddToScheme,
|
loginv1alpha1.AddToScheme,
|
||||||
pinnipedv1alpha1.AddToScheme,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||||
|
@ -9,7 +9,6 @@ import (
|
|||||||
configv1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1"
|
configv1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
@ -24,7 +23,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{
|
|||||||
configv1alpha1.AddToScheme,
|
configv1alpha1.AddToScheme,
|
||||||
idpv1alpha1.AddToScheme,
|
idpv1alpha1.AddToScheme,
|
||||||
loginv1alpha1.AddToScheme,
|
loginv1alpha1.AddToScheme,
|
||||||
pinnipedv1alpha1.AddToScheme,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||||
|
@ -1,167 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
"time"
|
|
||||||
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1"
|
|
||||||
scheme "go.pinniped.dev/generated/1.17/client/clientset/versioned/scheme"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
|
||||||
rest "k8s.io/client-go/rest"
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestsGetter has a method to return a CredentialRequestInterface.
|
|
||||||
// A group's client should implement this interface.
|
|
||||||
type CredentialRequestsGetter interface {
|
|
||||||
CredentialRequests() CredentialRequestInterface
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestInterface has methods to work with CredentialRequest resources.
|
|
||||||
type CredentialRequestInterface interface {
|
|
||||||
Create(*v1alpha1.CredentialRequest) (*v1alpha1.CredentialRequest, error)
|
|
||||||
Update(*v1alpha1.CredentialRequest) (*v1alpha1.CredentialRequest, error)
|
|
||||||
UpdateStatus(*v1alpha1.CredentialRequest) (*v1alpha1.CredentialRequest, error)
|
|
||||||
Delete(name string, options *v1.DeleteOptions) error
|
|
||||||
DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
|
|
||||||
Get(name string, options v1.GetOptions) (*v1alpha1.CredentialRequest, error)
|
|
||||||
List(opts v1.ListOptions) (*v1alpha1.CredentialRequestList, error)
|
|
||||||
Watch(opts v1.ListOptions) (watch.Interface, error)
|
|
||||||
Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CredentialRequest, err error)
|
|
||||||
CredentialRequestExpansion
|
|
||||||
}
|
|
||||||
|
|
||||||
// credentialRequests implements CredentialRequestInterface
|
|
||||||
type credentialRequests struct {
|
|
||||||
client rest.Interface
|
|
||||||
}
|
|
||||||
|
|
||||||
// newCredentialRequests returns a CredentialRequests
|
|
||||||
func newCredentialRequests(c *PinnipedV1alpha1Client) *credentialRequests {
|
|
||||||
return &credentialRequests{
|
|
||||||
client: c.RESTClient(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get takes name of the credentialRequest, and returns the corresponding credentialRequest object, and an error if there is any.
|
|
||||||
func (c *credentialRequests) Get(name string, options v1.GetOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(name).
|
|
||||||
VersionedParams(&options, scheme.ParameterCodec).
|
|
||||||
Do().
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// List takes label and field selectors, and returns the list of CredentialRequests that match those selectors.
|
|
||||||
func (c *credentialRequests) List(opts v1.ListOptions) (result *v1alpha1.CredentialRequestList, err error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
result = &v1alpha1.CredentialRequestList{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Do().
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Watch returns a watch.Interface that watches the requested credentialRequests.
|
|
||||||
func (c *credentialRequests) Watch(opts v1.ListOptions) (watch.Interface, error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
opts.Watch = true
|
|
||||||
return c.client.Get().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Watch()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create takes the representation of a credentialRequest and creates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *credentialRequests) Create(credentialRequest *v1alpha1.CredentialRequest) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Post().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Body(credentialRequest).
|
|
||||||
Do().
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update takes the representation of a credentialRequest and updates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *credentialRequests) Update(credentialRequest *v1alpha1.CredentialRequest) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(credentialRequest.Name).
|
|
||||||
Body(credentialRequest).
|
|
||||||
Do().
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateStatus was generated because the type contains a Status member.
|
|
||||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
|
||||||
|
|
||||||
func (c *credentialRequests) UpdateStatus(credentialRequest *v1alpha1.CredentialRequest) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(credentialRequest.Name).
|
|
||||||
SubResource("status").
|
|
||||||
Body(credentialRequest).
|
|
||||||
Do().
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete takes name of the credentialRequest and deletes it. Returns an error if one occurs.
|
|
||||||
func (c *credentialRequests) Delete(name string, options *v1.DeleteOptions) error {
|
|
||||||
return c.client.Delete().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(name).
|
|
||||||
Body(options).
|
|
||||||
Do().
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteCollection deletes a collection of objects.
|
|
||||||
func (c *credentialRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
|
|
||||||
var timeout time.Duration
|
|
||||||
if listOptions.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
return c.client.Delete().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&listOptions, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Body(options).
|
|
||||||
Do().
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Patch applies the patch and returns the patched credentialRequest.
|
|
||||||
func (c *credentialRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Patch(pt).
|
|
||||||
Resource("credentialrequests").
|
|
||||||
SubResource(subresources...).
|
|
||||||
Name(name).
|
|
||||||
Body(data).
|
|
||||||
Do().
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
// This package has the automatically generated typed clients.
|
|
||||||
package v1alpha1
|
|
@ -1,7 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
// Package fake has the automatically generated clients.
|
|
||||||
package fake
|
|
@ -1,118 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package fake
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
labels "k8s.io/apimachinery/pkg/labels"
|
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
|
||||||
testing "k8s.io/client-go/testing"
|
|
||||||
)
|
|
||||||
|
|
||||||
// FakeCredentialRequests implements CredentialRequestInterface
|
|
||||||
type FakeCredentialRequests struct {
|
|
||||||
Fake *FakePinnipedV1alpha1
|
|
||||||
}
|
|
||||||
|
|
||||||
var credentialrequestsResource = schema.GroupVersionResource{Group: "pinniped.dev", Version: "v1alpha1", Resource: "credentialrequests"}
|
|
||||||
|
|
||||||
var credentialrequestsKind = schema.GroupVersionKind{Group: "pinniped.dev", Version: "v1alpha1", Kind: "CredentialRequest"}
|
|
||||||
|
|
||||||
// Get takes name of the credentialRequest, and returns the corresponding credentialRequest object, and an error if there is any.
|
|
||||||
func (c *FakeCredentialRequests) Get(name string, options v1.GetOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootGetAction(credentialrequestsResource, name), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// List takes label and field selectors, and returns the list of CredentialRequests that match those selectors.
|
|
||||||
func (c *FakeCredentialRequests) List(opts v1.ListOptions) (result *v1alpha1.CredentialRequestList, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootListAction(credentialrequestsResource, credentialrequestsKind, opts), &v1alpha1.CredentialRequestList{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
|
||||||
if label == nil {
|
|
||||||
label = labels.Everything()
|
|
||||||
}
|
|
||||||
list := &v1alpha1.CredentialRequestList{ListMeta: obj.(*v1alpha1.CredentialRequestList).ListMeta}
|
|
||||||
for _, item := range obj.(*v1alpha1.CredentialRequestList).Items {
|
|
||||||
if label.Matches(labels.Set(item.Labels)) {
|
|
||||||
list.Items = append(list.Items, item)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return list, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Watch returns a watch.Interface that watches the requested credentialRequests.
|
|
||||||
func (c *FakeCredentialRequests) Watch(opts v1.ListOptions) (watch.Interface, error) {
|
|
||||||
return c.Fake.
|
|
||||||
InvokesWatch(testing.NewRootWatchAction(credentialrequestsResource, opts))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create takes the representation of a credentialRequest and creates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *FakeCredentialRequests) Create(credentialRequest *v1alpha1.CredentialRequest) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootCreateAction(credentialrequestsResource, credentialRequest), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update takes the representation of a credentialRequest and updates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *FakeCredentialRequests) Update(credentialRequest *v1alpha1.CredentialRequest) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootUpdateAction(credentialrequestsResource, credentialRequest), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateStatus was generated because the type contains a Status member.
|
|
||||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
|
||||||
func (c *FakeCredentialRequests) UpdateStatus(credentialRequest *v1alpha1.CredentialRequest) (*v1alpha1.CredentialRequest, error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootUpdateSubresourceAction(credentialrequestsResource, "status", credentialRequest), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete takes name of the credentialRequest and deletes it. Returns an error if one occurs.
|
|
||||||
func (c *FakeCredentialRequests) Delete(name string, options *v1.DeleteOptions) error {
|
|
||||||
_, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootDeleteAction(credentialrequestsResource, name), &v1alpha1.CredentialRequest{})
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteCollection deletes a collection of objects.
|
|
||||||
func (c *FakeCredentialRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
|
|
||||||
action := testing.NewRootDeleteCollectionAction(credentialrequestsResource, listOptions)
|
|
||||||
|
|
||||||
_, err := c.Fake.Invokes(action, &v1alpha1.CredentialRequestList{})
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Patch applies the patch and returns the patched credentialRequest.
|
|
||||||
func (c *FakeCredentialRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootPatchSubresourceAction(credentialrequestsResource, name, pt, data, subresources...), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package fake
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1"
|
|
||||||
rest "k8s.io/client-go/rest"
|
|
||||||
testing "k8s.io/client-go/testing"
|
|
||||||
)
|
|
||||||
|
|
||||||
type FakePinnipedV1alpha1 struct {
|
|
||||||
*testing.Fake
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *FakePinnipedV1alpha1) CredentialRequests() v1alpha1.CredentialRequestInterface {
|
|
||||||
return &FakeCredentialRequests{c}
|
|
||||||
}
|
|
||||||
|
|
||||||
// RESTClient returns a RESTClient that is used to communicate
|
|
||||||
// with API server by this client implementation.
|
|
||||||
func (c *FakePinnipedV1alpha1) RESTClient() rest.Interface {
|
|
||||||
var ret *rest.RESTClient
|
|
||||||
return ret
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
type CredentialRequestExpansion interface{}
|
|
@ -1,76 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1"
|
|
||||||
"go.pinniped.dev/generated/1.17/client/clientset/versioned/scheme"
|
|
||||||
rest "k8s.io/client-go/rest"
|
|
||||||
)
|
|
||||||
|
|
||||||
type PinnipedV1alpha1Interface interface {
|
|
||||||
RESTClient() rest.Interface
|
|
||||||
CredentialRequestsGetter
|
|
||||||
}
|
|
||||||
|
|
||||||
// PinnipedV1alpha1Client is used to interact with features provided by the pinniped.dev group.
|
|
||||||
type PinnipedV1alpha1Client struct {
|
|
||||||
restClient rest.Interface
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *PinnipedV1alpha1Client) CredentialRequests() CredentialRequestInterface {
|
|
||||||
return newCredentialRequests(c)
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewForConfig creates a new PinnipedV1alpha1Client for the given config.
|
|
||||||
func NewForConfig(c *rest.Config) (*PinnipedV1alpha1Client, error) {
|
|
||||||
config := *c
|
|
||||||
if err := setConfigDefaults(&config); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
client, err := rest.RESTClientFor(&config)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return &PinnipedV1alpha1Client{client}, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewForConfigOrDie creates a new PinnipedV1alpha1Client for the given config and
|
|
||||||
// panics if there is an error in the config.
|
|
||||||
func NewForConfigOrDie(c *rest.Config) *PinnipedV1alpha1Client {
|
|
||||||
client, err := NewForConfig(c)
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
return client
|
|
||||||
}
|
|
||||||
|
|
||||||
// New creates a new PinnipedV1alpha1Client for the given RESTClient.
|
|
||||||
func New(c rest.Interface) *PinnipedV1alpha1Client {
|
|
||||||
return &PinnipedV1alpha1Client{c}
|
|
||||||
}
|
|
||||||
|
|
||||||
func setConfigDefaults(config *rest.Config) error {
|
|
||||||
gv := v1alpha1.SchemeGroupVersion
|
|
||||||
config.GroupVersion = &gv
|
|
||||||
config.APIPath = "/apis"
|
|
||||||
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
|
|
||||||
|
|
||||||
if config.UserAgent == "" {
|
|
||||||
config.UserAgent = rest.DefaultKubernetesUserAgent()
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// RESTClient returns a RESTClient that is used to communicate
|
|
||||||
// with API server by this client implementation.
|
|
||||||
func (c *PinnipedV1alpha1Client) RESTClient() rest.Interface {
|
|
||||||
if c == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return c.restClient
|
|
||||||
}
|
|
@ -15,7 +15,6 @@ import (
|
|||||||
idp "go.pinniped.dev/generated/1.17/client/informers/externalversions/idp"
|
idp "go.pinniped.dev/generated/1.17/client/informers/externalversions/idp"
|
||||||
internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces"
|
internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces"
|
||||||
login "go.pinniped.dev/generated/1.17/client/informers/externalversions/login"
|
login "go.pinniped.dev/generated/1.17/client/informers/externalversions/login"
|
||||||
pinniped "go.pinniped.dev/generated/1.17/client/informers/externalversions/pinniped"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
@ -165,7 +164,6 @@ type SharedInformerFactory interface {
|
|||||||
Config() config.Interface
|
Config() config.Interface
|
||||||
IDP() idp.Interface
|
IDP() idp.Interface
|
||||||
Login() login.Interface
|
Login() login.Interface
|
||||||
Pinniped() pinniped.Interface
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *sharedInformerFactory) Config() config.Interface {
|
func (f *sharedInformerFactory) Config() config.Interface {
|
||||||
@ -179,7 +177,3 @@ func (f *sharedInformerFactory) IDP() idp.Interface {
|
|||||||
func (f *sharedInformerFactory) Login() login.Interface {
|
func (f *sharedInformerFactory) Login() login.Interface {
|
||||||
return login.New(f, f.namespace, f.tweakListOptions)
|
return login.New(f, f.namespace, f.tweakListOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *sharedInformerFactory) Pinniped() pinniped.Interface {
|
|
||||||
return pinniped.New(f, f.namespace, f.tweakListOptions)
|
|
||||||
}
|
|
||||||
|
@ -11,7 +11,6 @@ import (
|
|||||||
v1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1"
|
v1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1"
|
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
cache "k8s.io/client-go/tools/cache"
|
cache "k8s.io/client-go/tools/cache"
|
||||||
)
|
)
|
||||||
@ -54,10 +53,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
|
|||||||
case loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests"):
|
case loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests"):
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Login().V1alpha1().TokenCredentialRequests().Informer()}, nil
|
return &genericInformer{resource: resource.GroupResource(), informer: f.Login().V1alpha1().TokenCredentialRequests().Informer()}, nil
|
||||||
|
|
||||||
// Group=pinniped.dev, Version=v1alpha1
|
|
||||||
case pinnipedv1alpha1.SchemeGroupVersion.WithResource("credentialrequests"):
|
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Pinniped().V1alpha1().CredentialRequests().Informer()}, nil
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, fmt.Errorf("no informer found for %v", resource)
|
return nil, fmt.Errorf("no informer found for %v", resource)
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by informer-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import (
|
|
||||||
internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces"
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.17/client/informers/externalversions/pinniped/v1alpha1"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Interface provides access to each of this group's versions.
|
|
||||||
type Interface interface {
|
|
||||||
// V1alpha1 provides access to shared informers for resources in V1alpha1.
|
|
||||||
V1alpha1() v1alpha1.Interface
|
|
||||||
}
|
|
||||||
|
|
||||||
type group struct {
|
|
||||||
factory internalinterfaces.SharedInformerFactory
|
|
||||||
namespace string
|
|
||||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
|
||||||
}
|
|
||||||
|
|
||||||
// New returns a new Interface.
|
|
||||||
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
|
|
||||||
return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
|
|
||||||
}
|
|
||||||
|
|
||||||
// V1alpha1 returns a new v1alpha1.Interface.
|
|
||||||
func (g *group) V1alpha1() v1alpha1.Interface {
|
|
||||||
return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions)
|
|
||||||
}
|
|
@ -1,75 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by informer-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
time "time"
|
|
||||||
|
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1"
|
|
||||||
versioned "go.pinniped.dev/generated/1.17/client/clientset/versioned"
|
|
||||||
internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces"
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.17/client/listers/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
|
||||||
cache "k8s.io/client-go/tools/cache"
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestInformer provides access to a shared informer and lister for
|
|
||||||
// CredentialRequests.
|
|
||||||
type CredentialRequestInformer interface {
|
|
||||||
Informer() cache.SharedIndexInformer
|
|
||||||
Lister() v1alpha1.CredentialRequestLister
|
|
||||||
}
|
|
||||||
|
|
||||||
type credentialRequestInformer struct {
|
|
||||||
factory internalinterfaces.SharedInformerFactory
|
|
||||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewCredentialRequestInformer constructs a new informer for CredentialRequest type.
|
|
||||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
|
||||||
// one. This reduces memory footprint and number of connections to the server.
|
|
||||||
func NewCredentialRequestInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
|
|
||||||
return NewFilteredCredentialRequestInformer(client, resyncPeriod, indexers, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewFilteredCredentialRequestInformer constructs a new informer for CredentialRequest type.
|
|
||||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
|
||||||
// one. This reduces memory footprint and number of connections to the server.
|
|
||||||
func NewFilteredCredentialRequestInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
|
|
||||||
return cache.NewSharedIndexInformer(
|
|
||||||
&cache.ListWatch{
|
|
||||||
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
|
|
||||||
if tweakListOptions != nil {
|
|
||||||
tweakListOptions(&options)
|
|
||||||
}
|
|
||||||
return client.PinnipedV1alpha1().CredentialRequests().List(options)
|
|
||||||
},
|
|
||||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
|
||||||
if tweakListOptions != nil {
|
|
||||||
tweakListOptions(&options)
|
|
||||||
}
|
|
||||||
return client.PinnipedV1alpha1().CredentialRequests().Watch(options)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
&pinnipedv1alpha1.CredentialRequest{},
|
|
||||||
resyncPeriod,
|
|
||||||
indexers,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (f *credentialRequestInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
|
|
||||||
return NewFilteredCredentialRequestInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (f *credentialRequestInformer) Informer() cache.SharedIndexInformer {
|
|
||||||
return f.factory.InformerFor(&pinnipedv1alpha1.CredentialRequest{}, f.defaultInformer)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (f *credentialRequestInformer) Lister() v1alpha1.CredentialRequestLister {
|
|
||||||
return v1alpha1.NewCredentialRequestLister(f.Informer().GetIndexer())
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by informer-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Interface provides access to all the informers in this group version.
|
|
||||||
type Interface interface {
|
|
||||||
// CredentialRequests returns a CredentialRequestInformer.
|
|
||||||
CredentialRequests() CredentialRequestInformer
|
|
||||||
}
|
|
||||||
|
|
||||||
type version struct {
|
|
||||||
factory internalinterfaces.SharedInformerFactory
|
|
||||||
namespace string
|
|
||||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
|
||||||
}
|
|
||||||
|
|
||||||
// New returns a new Interface.
|
|
||||||
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
|
|
||||||
return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequests returns a CredentialRequestInformer.
|
|
||||||
func (v *version) CredentialRequests() CredentialRequestInformer {
|
|
||||||
return &credentialRequestInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
|
|
||||||
}
|
|
@ -1,52 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by lister-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1"
|
|
||||||
"k8s.io/apimachinery/pkg/api/errors"
|
|
||||||
"k8s.io/apimachinery/pkg/labels"
|
|
||||||
"k8s.io/client-go/tools/cache"
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestLister helps list CredentialRequests.
|
|
||||||
type CredentialRequestLister interface {
|
|
||||||
// List lists all CredentialRequests in the indexer.
|
|
||||||
List(selector labels.Selector) (ret []*v1alpha1.CredentialRequest, err error)
|
|
||||||
// Get retrieves the CredentialRequest from the index for a given name.
|
|
||||||
Get(name string) (*v1alpha1.CredentialRequest, error)
|
|
||||||
CredentialRequestListerExpansion
|
|
||||||
}
|
|
||||||
|
|
||||||
// credentialRequestLister implements the CredentialRequestLister interface.
|
|
||||||
type credentialRequestLister struct {
|
|
||||||
indexer cache.Indexer
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewCredentialRequestLister returns a new CredentialRequestLister.
|
|
||||||
func NewCredentialRequestLister(indexer cache.Indexer) CredentialRequestLister {
|
|
||||||
return &credentialRequestLister{indexer: indexer}
|
|
||||||
}
|
|
||||||
|
|
||||||
// List lists all CredentialRequests in the indexer.
|
|
||||||
func (s *credentialRequestLister) List(selector labels.Selector) (ret []*v1alpha1.CredentialRequest, err error) {
|
|
||||||
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
|
|
||||||
ret = append(ret, m.(*v1alpha1.CredentialRequest))
|
|
||||||
})
|
|
||||||
return ret, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get retrieves the CredentialRequest from the index for a given name.
|
|
||||||
func (s *credentialRequestLister) Get(name string) (*v1alpha1.CredentialRequest, error) {
|
|
||||||
obj, exists, err := s.indexer.GetByKey(name)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if !exists {
|
|
||||||
return nil, errors.NewNotFound(v1alpha1.Resource("credentialrequest"), name)
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), nil
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by lister-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
// CredentialRequestListerExpansion allows custom methods to be added to
|
|
||||||
// CredentialRequestLister.
|
|
||||||
type CredentialRequestListerExpansion interface{}
|
|
215
generated/1.17/client/openapi/zz_generated.openapi.go
generated
215
generated/1.17/client/openapi/zz_generated.openapi.go
generated
@ -33,12 +33,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
|
|||||||
"go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestList": schema_117_apis_login_v1alpha1_TokenCredentialRequestList(ref),
|
"go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestList": schema_117_apis_login_v1alpha1_TokenCredentialRequestList(ref),
|
||||||
"go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestSpec": schema_117_apis_login_v1alpha1_TokenCredentialRequestSpec(ref),
|
"go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestSpec": schema_117_apis_login_v1alpha1_TokenCredentialRequestSpec(ref),
|
||||||
"go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestStatus": schema_117_apis_login_v1alpha1_TokenCredentialRequestStatus(ref),
|
"go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestStatus": schema_117_apis_login_v1alpha1_TokenCredentialRequestStatus(ref),
|
||||||
"go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequest": schema_117_apis_pinniped_v1alpha1_CredentialRequest(ref),
|
|
||||||
"go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestCredential": schema_117_apis_pinniped_v1alpha1_CredentialRequestCredential(ref),
|
|
||||||
"go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestList": schema_117_apis_pinniped_v1alpha1_CredentialRequestList(ref),
|
|
||||||
"go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestSpec": schema_117_apis_pinniped_v1alpha1_CredentialRequestSpec(ref),
|
|
||||||
"go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestStatus": schema_117_apis_pinniped_v1alpha1_CredentialRequestStatus(ref),
|
|
||||||
"go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestTokenCredential": schema_117_apis_pinniped_v1alpha1_CredentialRequestTokenCredential(ref),
|
|
||||||
"k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref),
|
"k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref),
|
||||||
"k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref),
|
"k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref),
|
||||||
"k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref),
|
"k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref),
|
||||||
@ -711,215 +705,6 @@ func schema_117_apis_login_v1alpha1_TokenCredentialRequestStatus(ref common.Refe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func schema_117_apis_pinniped_v1alpha1_CredentialRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential.",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"kind": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"apiVersion": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"metadata": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: ref("go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestSpec"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: ref("go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestStatus"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestSpec", "go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_117_apis_pinniped_v1alpha1_CredentialRequestCredential(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequestCredential is the cluster-specific credential returned on a successful CredentialRequest. It contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster.",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"expirationTimestamp": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "ExpirationTimestamp indicates a time when the provided credentials expire.",
|
|
||||||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"token": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Token is a bearer token used by the client for request authentication.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"clientCertificateData": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "PEM-encoded client TLS certificates (including intermediates, if any).",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"clientKeyData": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "PEM-encoded private key for the above certificate.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_117_apis_pinniped_v1alpha1_CredentialRequestList(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequestList is a list of CredentialRequest objects.",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"kind": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"apiVersion": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"metadata": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"items": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Type: []string{"array"},
|
|
||||||
Items: &spec.SchemaOrArray{
|
|
||||||
Schema: &spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: ref("go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequest"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Required: []string{"items"},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_117_apis_pinniped_v1alpha1_CredentialRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequestSpec is the specification of a CredentialRequest, expected on requests to the Pinniped API",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"type": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Type of credential.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"token": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Token credential (when Type == TokenCredentialType).",
|
|
||||||
Ref: ref("go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestTokenCredential"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestTokenCredential"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_117_apis_pinniped_v1alpha1_CredentialRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequestStatus is the status of a CredentialRequest, returned on responses to the Pinniped API.",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"credential": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "A Credential will be returned for a successful credential request.",
|
|
||||||
Ref: ref("go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestCredential"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "An error message will be returned for an unsuccessful credential request.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"go.pinniped.dev/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestCredential"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_117_apis_pinniped_v1alpha1_CredentialRequestTokenCredential(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider.",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"value": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Value of the bearer token supplied with the credential request.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||||
return common.OpenAPIDefinition{
|
return common.OpenAPIDefinition{
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
|
104
generated/1.18/README.adoc
generated
104
generated/1.18/README.adoc
generated
@ -8,7 +8,6 @@
|
|||||||
- xref:{anchor_prefix}-config-pinniped-dev-v1alpha1[$$config.pinniped.dev/v1alpha1$$]
|
- xref:{anchor_prefix}-config-pinniped-dev-v1alpha1[$$config.pinniped.dev/v1alpha1$$]
|
||||||
- xref:{anchor_prefix}-idp-pinniped-dev-v1alpha1[$$idp.pinniped.dev/v1alpha1$$]
|
- xref:{anchor_prefix}-idp-pinniped-dev-v1alpha1[$$idp.pinniped.dev/v1alpha1$$]
|
||||||
- xref:{anchor_prefix}-login-pinniped-dev-v1alpha1[$$login.pinniped.dev/v1alpha1$$]
|
- xref:{anchor_prefix}-login-pinniped-dev-v1alpha1[$$login.pinniped.dev/v1alpha1$$]
|
||||||
- xref:{anchor_prefix}-pinniped-dev-v1alpha1[$$pinniped.dev/v1alpha1$$]
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-config-pinniped-dev-v1alpha1"]
|
[id="{anchor_prefix}-config-pinniped-dev-v1alpha1"]
|
||||||
@ -285,106 +284,3 @@ TokenCredentialRequestStatus is the status of a TokenCredentialRequest, returned
|
|||||||
|===
|
|===
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-pinniped-dev-v1alpha1"]
|
|
||||||
=== pinniped.dev/v1alpha1
|
|
||||||
|
|
||||||
Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequest"]
|
|
||||||
==== CredentialRequest
|
|
||||||
|
|
||||||
CredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequestlist[$$CredentialRequestList$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`.
|
|
||||||
|
|
||||||
| *`spec`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequestspec[$$CredentialRequestSpec$$]__ |
|
|
||||||
| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequeststatus[$$CredentialRequestStatus$$]__ |
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequestcredential"]
|
|
||||||
==== CredentialRequestCredential
|
|
||||||
|
|
||||||
CredentialRequestCredential is the cluster-specific credential returned on a successful CredentialRequest. It contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequeststatus[$$CredentialRequestStatus$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`expirationTimestamp`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#time-v1-meta[$$Time$$]__ | ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
| *`token`* __string__ | Token is a bearer token used by the client for request authentication.
|
|
||||||
| *`clientCertificateData`* __string__ | PEM-encoded client TLS certificates (including intermediates, if any).
|
|
||||||
| *`clientKeyData`* __string__ | PEM-encoded private key for the above certificate.
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequestspec"]
|
|
||||||
==== CredentialRequestSpec
|
|
||||||
|
|
||||||
CredentialRequestSpec is the specification of a CredentialRequest, expected on requests to the Pinniped API
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`type`* __CredentialType__ | Type of credential.
|
|
||||||
| *`token`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequesttokencredential[$$CredentialRequestTokenCredential$$]__ | Token credential (when Type == TokenCredentialType).
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequeststatus"]
|
|
||||||
==== CredentialRequestStatus
|
|
||||||
|
|
||||||
CredentialRequestStatus is the status of a CredentialRequest, returned on responses to the Pinniped API.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`credential`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequestcredential[$$CredentialRequestCredential$$]__ | A Credential will be returned for a successful credential request.
|
|
||||||
| *`message`* __string__ | An error message will be returned for an unsuccessful credential request.
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequesttokencredential"]
|
|
||||||
==== CredentialRequestTokenCredential
|
|
||||||
|
|
||||||
CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-pinniped-v1alpha1-credentialrequestspec[$$CredentialRequestSpec$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`value`* __string__ | Value of the bearer token supplied with the credential request.
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
|
8
generated/1.18/apis/pinniped/doc.go
generated
8
generated/1.18/apis/pinniped/doc.go
generated
@ -1,8 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// +k8s:deepcopy-gen=package
|
|
||||||
// +groupName=pinniped.dev
|
|
||||||
|
|
||||||
// Package pinniped is the internal version of the Pinniped aggregated API.
|
|
||||||
package pinniped
|
|
38
generated/1.18/apis/pinniped/register.go
generated
38
generated/1.18/apis/pinniped/register.go
generated
@ -1,38 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import (
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
)
|
|
||||||
|
|
||||||
const GroupName = "pinniped.dev"
|
|
||||||
|
|
||||||
// SchemeGroupVersion is group version used to register these objects.
|
|
||||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
|
|
||||||
|
|
||||||
// Kind takes an unqualified kind and returns back a Group qualified GroupKind.
|
|
||||||
func Kind(kind string) schema.GroupKind {
|
|
||||||
return SchemeGroupVersion.WithKind(kind).GroupKind()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Resource takes an unqualified resource and returns back a Group qualified GroupResource.
|
|
||||||
func Resource(resource string) schema.GroupResource {
|
|
||||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
|
||||||
AddToScheme = SchemeBuilder.AddToScheme
|
|
||||||
)
|
|
||||||
|
|
||||||
// Adds the list of known types to the given scheme.
|
|
||||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
|
||||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
|
||||||
&CredentialRequest{},
|
|
||||||
&CredentialRequestList{},
|
|
||||||
)
|
|
||||||
return nil
|
|
||||||
}
|
|
73
generated/1.18/apis/pinniped/types.go
generated
73
generated/1.18/apis/pinniped/types.go
generated
@ -1,73 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
|
|
||||||
type CredentialType string
|
|
||||||
|
|
||||||
const (
|
|
||||||
TokenCredentialType = CredentialType("token")
|
|
||||||
)
|
|
||||||
|
|
||||||
type CredentialRequestTokenCredential struct {
|
|
||||||
// Value of the bearer token supplied with the credential request.
|
|
||||||
Value string
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestSpec struct {
|
|
||||||
// Type of credential.
|
|
||||||
Type CredentialType
|
|
||||||
|
|
||||||
// Token credential (when Type == TokenCredentialType).
|
|
||||||
Token *CredentialRequestTokenCredential
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestCredential struct {
|
|
||||||
// ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
ExpirationTimestamp metav1.Time
|
|
||||||
|
|
||||||
// Token is a bearer token used by the client for request authentication.
|
|
||||||
Token string
|
|
||||||
|
|
||||||
// PEM-encoded client TLS certificates (including intermediates, if any).
|
|
||||||
ClientCertificateData string
|
|
||||||
|
|
||||||
// PEM-encoded private key for the above certificate.
|
|
||||||
ClientKeyData string
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestStatus struct {
|
|
||||||
// A Credential will be returned for a successful credential request.
|
|
||||||
// +optional
|
|
||||||
Credential *CredentialRequestCredential
|
|
||||||
|
|
||||||
// An error message will be returned for an unsuccessful credential request.
|
|
||||||
// +optional
|
|
||||||
Message *string
|
|
||||||
}
|
|
||||||
|
|
||||||
// +genclient
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
|
|
||||||
type CredentialRequest struct {
|
|
||||||
metav1.TypeMeta
|
|
||||||
metav1.ObjectMeta
|
|
||||||
|
|
||||||
Spec CredentialRequestSpec
|
|
||||||
Status CredentialRequestStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
|
|
||||||
// CredentialRequestList is a list of CredentialRequest objects.
|
|
||||||
type CredentialRequestList struct {
|
|
||||||
metav1.TypeMeta
|
|
||||||
metav1.ListMeta
|
|
||||||
|
|
||||||
// Items is a list of CredentialRequests
|
|
||||||
Items []CredentialRequest
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
12
generated/1.18/apis/pinniped/v1alpha1/defaults.go
generated
12
generated/1.18/apis/pinniped/v1alpha1/defaults.go
generated
@ -1,12 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
func addDefaultingFuncs(scheme *runtime.Scheme) error {
|
|
||||||
return RegisterDefaults(scheme)
|
|
||||||
}
|
|
11
generated/1.18/apis/pinniped/v1alpha1/doc.go
generated
11
generated/1.18/apis/pinniped/v1alpha1/doc.go
generated
@ -1,11 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// +k8s:openapi-gen=true
|
|
||||||
// +k8s:deepcopy-gen=package
|
|
||||||
// +k8s:conversion-gen=go.pinniped.dev/generated/1.18/apis/pinniped
|
|
||||||
// +k8s:defaulter-gen=TypeMeta
|
|
||||||
// +groupName=pinniped.dev
|
|
||||||
|
|
||||||
// Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API.
|
|
||||||
package v1alpha1
|
|
43
generated/1.18/apis/pinniped/v1alpha1/register.go
generated
43
generated/1.18/apis/pinniped/v1alpha1/register.go
generated
@ -1,43 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
)
|
|
||||||
|
|
||||||
const GroupName = "pinniped.dev"
|
|
||||||
|
|
||||||
// SchemeGroupVersion is group version used to register these objects.
|
|
||||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
|
|
||||||
|
|
||||||
var (
|
|
||||||
SchemeBuilder runtime.SchemeBuilder
|
|
||||||
localSchemeBuilder = &SchemeBuilder
|
|
||||||
AddToScheme = localSchemeBuilder.AddToScheme
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
// We only register manually written functions here. The registration of the
|
|
||||||
// generated functions takes place in the generated files. The separation
|
|
||||||
// makes the code compile even when the generated files are missing.
|
|
||||||
localSchemeBuilder.Register(addKnownTypes, addDefaultingFuncs)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Adds the list of known types to the given scheme.
|
|
||||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
|
||||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
|
||||||
&CredentialRequest{},
|
|
||||||
&CredentialRequestList{},
|
|
||||||
)
|
|
||||||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Resource takes an unqualified resource and returns a Group qualified GroupResource.
|
|
||||||
func Resource(resource string) schema.GroupResource {
|
|
||||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
|
||||||
}
|
|
77
generated/1.18/apis/pinniped/v1alpha1/types.go
generated
77
generated/1.18/apis/pinniped/v1alpha1/types.go
generated
@ -1,77 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
|
|
||||||
type CredentialType string
|
|
||||||
|
|
||||||
const (
|
|
||||||
TokenCredentialType = CredentialType("token")
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider.
|
|
||||||
type CredentialRequestTokenCredential struct {
|
|
||||||
// Value of the bearer token supplied with the credential request.
|
|
||||||
Value string `json:"value,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestSpec is the specification of a CredentialRequest, expected on requests to the Pinniped API
|
|
||||||
type CredentialRequestSpec struct {
|
|
||||||
// Type of credential.
|
|
||||||
Type CredentialType `json:"type,omitempty"`
|
|
||||||
|
|
||||||
// Token credential (when Type == TokenCredentialType).
|
|
||||||
Token *CredentialRequestTokenCredential `json:"token,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestCredential is the cluster-specific credential returned on a successful CredentialRequest. It
|
|
||||||
// contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster.
|
|
||||||
type CredentialRequestCredential struct {
|
|
||||||
// ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
ExpirationTimestamp metav1.Time `json:"expirationTimestamp,omitempty"`
|
|
||||||
|
|
||||||
// Token is a bearer token used by the client for request authentication.
|
|
||||||
Token string `json:"token,omitempty"`
|
|
||||||
|
|
||||||
// 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"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestStatus is the status of a CredentialRequest, returned on responses to the Pinniped API.
|
|
||||||
type CredentialRequestStatus struct {
|
|
||||||
// A Credential will be returned for a successful credential request.
|
|
||||||
// +optional
|
|
||||||
Credential *CredentialRequestCredential `json:"credential,omitempty"`
|
|
||||||
|
|
||||||
// An error message will be returned for an unsuccessful credential request.
|
|
||||||
// +optional
|
|
||||||
Message *string `json:"message,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential.
|
|
||||||
// +genclient
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
type CredentialRequest struct {
|
|
||||||
metav1.TypeMeta `json:",inline"`
|
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
|
||||||
|
|
||||||
Spec CredentialRequestSpec `json:"spec,omitempty"`
|
|
||||||
Status CredentialRequestStatus `json:"status,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// CredentialRequestList is a list of CredentialRequest objects.
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
type CredentialRequestList struct {
|
|
||||||
metav1.TypeMeta `json:",inline"`
|
|
||||||
metav1.ListMeta `json:"metadata,omitempty"`
|
|
||||||
|
|
||||||
Items []CredentialRequest `json:"items"`
|
|
||||||
}
|
|
@ -1,230 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by conversion-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
unsafe "unsafe"
|
|
||||||
|
|
||||||
pinniped "go.pinniped.dev/generated/1.18/apis/pinniped"
|
|
||||||
conversion "k8s.io/apimachinery/pkg/conversion"
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
localSchemeBuilder.Register(RegisterConversions)
|
|
||||||
}
|
|
||||||
|
|
||||||
// RegisterConversions adds conversion functions to the given scheme.
|
|
||||||
// Public to allow building arbitrary schemes.
|
|
||||||
func RegisterConversions(s *runtime.Scheme) error {
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequest)(nil), (*pinniped.CredentialRequest)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(a.(*CredentialRequest), b.(*pinniped.CredentialRequest), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequest)(nil), (*CredentialRequest)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(a.(*pinniped.CredentialRequest), b.(*CredentialRequest), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestCredential)(nil), (*pinniped.CredentialRequestCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(a.(*CredentialRequestCredential), b.(*pinniped.CredentialRequestCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestCredential)(nil), (*CredentialRequestCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(a.(*pinniped.CredentialRequestCredential), b.(*CredentialRequestCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestList)(nil), (*pinniped.CredentialRequestList)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(a.(*CredentialRequestList), b.(*pinniped.CredentialRequestList), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestList)(nil), (*CredentialRequestList)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(a.(*pinniped.CredentialRequestList), b.(*CredentialRequestList), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestSpec)(nil), (*pinniped.CredentialRequestSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(a.(*CredentialRequestSpec), b.(*pinniped.CredentialRequestSpec), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestSpec)(nil), (*CredentialRequestSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(a.(*pinniped.CredentialRequestSpec), b.(*CredentialRequestSpec), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestStatus)(nil), (*pinniped.CredentialRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(a.(*CredentialRequestStatus), b.(*pinniped.CredentialRequestStatus), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestStatus)(nil), (*CredentialRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(a.(*pinniped.CredentialRequestStatus), b.(*CredentialRequestStatus), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestTokenCredential)(nil), (*pinniped.CredentialRequestTokenCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(a.(*CredentialRequestTokenCredential), b.(*pinniped.CredentialRequestTokenCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestTokenCredential)(nil), (*CredentialRequestTokenCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(a.(*pinniped.CredentialRequestTokenCredential), b.(*CredentialRequestTokenCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(in *CredentialRequest, out *pinniped.CredentialRequest, s conversion.Scope) error {
|
|
||||||
out.ObjectMeta = in.ObjectMeta
|
|
||||||
if err := Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(&in.Spec, &out.Spec, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(&in.Status, &out.Status, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(in *CredentialRequest, out *pinniped.CredentialRequest, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(in *pinniped.CredentialRequest, out *CredentialRequest, s conversion.Scope) error {
|
|
||||||
out.ObjectMeta = in.ObjectMeta
|
|
||||||
if err := Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(&in.Spec, &out.Spec, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(&in.Status, &out.Status, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(in *pinniped.CredentialRequest, out *CredentialRequest, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(in *CredentialRequestCredential, out *pinniped.CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
out.ExpirationTimestamp = in.ExpirationTimestamp
|
|
||||||
out.Token = in.Token
|
|
||||||
out.ClientCertificateData = in.ClientCertificateData
|
|
||||||
out.ClientKeyData = in.ClientKeyData
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(in *CredentialRequestCredential, out *pinniped.CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(in *pinniped.CredentialRequestCredential, out *CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
out.ExpirationTimestamp = in.ExpirationTimestamp
|
|
||||||
out.Token = in.Token
|
|
||||||
out.ClientCertificateData = in.ClientCertificateData
|
|
||||||
out.ClientKeyData = in.ClientKeyData
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(in *pinniped.CredentialRequestCredential, out *CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(in *CredentialRequestList, out *pinniped.CredentialRequestList, s conversion.Scope) error {
|
|
||||||
out.ListMeta = in.ListMeta
|
|
||||||
out.Items = *(*[]pinniped.CredentialRequest)(unsafe.Pointer(&in.Items))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(in *CredentialRequestList, out *pinniped.CredentialRequestList, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(in *pinniped.CredentialRequestList, out *CredentialRequestList, s conversion.Scope) error {
|
|
||||||
out.ListMeta = in.ListMeta
|
|
||||||
out.Items = *(*[]CredentialRequest)(unsafe.Pointer(&in.Items))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(in *pinniped.CredentialRequestList, out *CredentialRequestList, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(in *CredentialRequestSpec, out *pinniped.CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
out.Type = pinniped.CredentialType(in.Type)
|
|
||||||
out.Token = (*pinniped.CredentialRequestTokenCredential)(unsafe.Pointer(in.Token))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(in *CredentialRequestSpec, out *pinniped.CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(in *pinniped.CredentialRequestSpec, out *CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
out.Type = CredentialType(in.Type)
|
|
||||||
out.Token = (*CredentialRequestTokenCredential)(unsafe.Pointer(in.Token))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(in *pinniped.CredentialRequestSpec, out *CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(in *CredentialRequestStatus, out *pinniped.CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
out.Credential = (*pinniped.CredentialRequestCredential)(unsafe.Pointer(in.Credential))
|
|
||||||
out.Message = (*string)(unsafe.Pointer(in.Message))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(in *CredentialRequestStatus, out *pinniped.CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(in *pinniped.CredentialRequestStatus, out *CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
out.Credential = (*CredentialRequestCredential)(unsafe.Pointer(in.Credential))
|
|
||||||
out.Message = (*string)(unsafe.Pointer(in.Message))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(in *pinniped.CredentialRequestStatus, out *CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(in *CredentialRequestTokenCredential, out *pinniped.CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
out.Value = in.Value
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(in *CredentialRequestTokenCredential, out *pinniped.CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(in *pinniped.CredentialRequestTokenCredential, out *CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
out.Value = in.Value
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(in *pinniped.CredentialRequestTokenCredential, out *CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(in, out, s)
|
|
||||||
}
|
|
@ -1,153 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by deepcopy-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequest) DeepCopyInto(out *CredentialRequest) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
||||||
in.Spec.DeepCopyInto(&out.Spec)
|
|
||||||
in.Status.DeepCopyInto(&out.Status)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequest.
|
|
||||||
func (in *CredentialRequest) DeepCopy() *CredentialRequest {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequest)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequest) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopyInto(out *CredentialRequestCredential) {
|
|
||||||
*out = *in
|
|
||||||
in.ExpirationTimestamp.DeepCopyInto(&out.ExpirationTimestamp)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestCredential.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopy() *CredentialRequestCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestList) DeepCopyInto(out *CredentialRequestList) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
||||||
if in.Items != nil {
|
|
||||||
in, out := &in.Items, &out.Items
|
|
||||||
*out = make([]CredentialRequest, len(*in))
|
|
||||||
for i := range *in {
|
|
||||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestList.
|
|
||||||
func (in *CredentialRequestList) DeepCopy() *CredentialRequestList {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestList)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequestList) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopyInto(out *CredentialRequestSpec) {
|
|
||||||
*out = *in
|
|
||||||
if in.Token != nil {
|
|
||||||
in, out := &in.Token, &out.Token
|
|
||||||
*out = new(CredentialRequestTokenCredential)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestSpec.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopy() *CredentialRequestSpec {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestSpec)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopyInto(out *CredentialRequestStatus) {
|
|
||||||
*out = *in
|
|
||||||
if in.Credential != nil {
|
|
||||||
in, out := &in.Credential, &out.Credential
|
|
||||||
*out = new(CredentialRequestCredential)
|
|
||||||
(*in).DeepCopyInto(*out)
|
|
||||||
}
|
|
||||||
if in.Message != nil {
|
|
||||||
in, out := &in.Message, &out.Message
|
|
||||||
*out = new(string)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestStatus.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopy() *CredentialRequestStatus {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestStatus)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopyInto(out *CredentialRequestTokenCredential) {
|
|
||||||
*out = *in
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestTokenCredential.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopy() *CredentialRequestTokenCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestTokenCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by defaulter-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
// RegisterDefaults adds defaulters functions to the given scheme.
|
|
||||||
// Public to allow building arbitrary schemes.
|
|
||||||
// All generated defaulters are covering - they call all nested defaulters.
|
|
||||||
func RegisterDefaults(scheme *runtime.Scheme) error {
|
|
||||||
return nil
|
|
||||||
}
|
|
153
generated/1.18/apis/pinniped/zz_generated.deepcopy.go
generated
153
generated/1.18/apis/pinniped/zz_generated.deepcopy.go
generated
@ -1,153 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by deepcopy-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import (
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequest) DeepCopyInto(out *CredentialRequest) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
||||||
in.Spec.DeepCopyInto(&out.Spec)
|
|
||||||
in.Status.DeepCopyInto(&out.Status)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequest.
|
|
||||||
func (in *CredentialRequest) DeepCopy() *CredentialRequest {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequest)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequest) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopyInto(out *CredentialRequestCredential) {
|
|
||||||
*out = *in
|
|
||||||
in.ExpirationTimestamp.DeepCopyInto(&out.ExpirationTimestamp)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestCredential.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopy() *CredentialRequestCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestList) DeepCopyInto(out *CredentialRequestList) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
||||||
if in.Items != nil {
|
|
||||||
in, out := &in.Items, &out.Items
|
|
||||||
*out = make([]CredentialRequest, len(*in))
|
|
||||||
for i := range *in {
|
|
||||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestList.
|
|
||||||
func (in *CredentialRequestList) DeepCopy() *CredentialRequestList {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestList)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequestList) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopyInto(out *CredentialRequestSpec) {
|
|
||||||
*out = *in
|
|
||||||
if in.Token != nil {
|
|
||||||
in, out := &in.Token, &out.Token
|
|
||||||
*out = new(CredentialRequestTokenCredential)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestSpec.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopy() *CredentialRequestSpec {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestSpec)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopyInto(out *CredentialRequestStatus) {
|
|
||||||
*out = *in
|
|
||||||
if in.Credential != nil {
|
|
||||||
in, out := &in.Credential, &out.Credential
|
|
||||||
*out = new(CredentialRequestCredential)
|
|
||||||
(*in).DeepCopyInto(*out)
|
|
||||||
}
|
|
||||||
if in.Message != nil {
|
|
||||||
in, out := &in.Message, &out.Message
|
|
||||||
*out = new(string)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestStatus.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopy() *CredentialRequestStatus {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestStatus)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopyInto(out *CredentialRequestTokenCredential) {
|
|
||||||
*out = *in
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestTokenCredential.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopy() *CredentialRequestTokenCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestTokenCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
@ -11,7 +11,6 @@ import (
|
|||||||
configv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/config/v1alpha1"
|
configv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1"
|
|
||||||
discovery "k8s.io/client-go/discovery"
|
discovery "k8s.io/client-go/discovery"
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
||||||
@ -22,17 +21,15 @@ type Interface interface {
|
|||||||
ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface
|
ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface
|
||||||
IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface
|
IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface
|
||||||
LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface
|
LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface
|
||||||
PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clientset contains the clients for groups. Each group has exactly one
|
// Clientset contains the clients for groups. Each group has exactly one
|
||||||
// version included in a Clientset.
|
// version included in a Clientset.
|
||||||
type Clientset struct {
|
type Clientset struct {
|
||||||
*discovery.DiscoveryClient
|
*discovery.DiscoveryClient
|
||||||
configV1alpha1 *configv1alpha1.ConfigV1alpha1Client
|
configV1alpha1 *configv1alpha1.ConfigV1alpha1Client
|
||||||
iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client
|
iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client
|
||||||
loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client
|
loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client
|
||||||
pinnipedV1alpha1 *pinnipedv1alpha1.PinnipedV1alpha1Client
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConfigV1alpha1 retrieves the ConfigV1alpha1Client
|
// ConfigV1alpha1 retrieves the ConfigV1alpha1Client
|
||||||
@ -50,11 +47,6 @@ func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface {
|
|||||||
return c.loginV1alpha1
|
return c.loginV1alpha1
|
||||||
}
|
}
|
||||||
|
|
||||||
// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client
|
|
||||||
func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface {
|
|
||||||
return c.pinnipedV1alpha1
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discovery retrieves the DiscoveryClient
|
// Discovery retrieves the DiscoveryClient
|
||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||||
if c == nil {
|
if c == nil {
|
||||||
@ -88,10 +80,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
cs.pinnipedV1alpha1, err = pinnipedv1alpha1.NewForConfig(&configShallowCopy)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -107,7 +95,6 @@ func NewForConfigOrDie(c *rest.Config) *Clientset {
|
|||||||
cs.configV1alpha1 = configv1alpha1.NewForConfigOrDie(c)
|
cs.configV1alpha1 = configv1alpha1.NewForConfigOrDie(c)
|
||||||
cs.iDPV1alpha1 = idpv1alpha1.NewForConfigOrDie(c)
|
cs.iDPV1alpha1 = idpv1alpha1.NewForConfigOrDie(c)
|
||||||
cs.loginV1alpha1 = loginv1alpha1.NewForConfigOrDie(c)
|
cs.loginV1alpha1 = loginv1alpha1.NewForConfigOrDie(c)
|
||||||
cs.pinnipedV1alpha1 = pinnipedv1alpha1.NewForConfigOrDie(c)
|
|
||||||
|
|
||||||
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
||||||
return &cs
|
return &cs
|
||||||
@ -119,7 +106,6 @@ func New(c rest.Interface) *Clientset {
|
|||||||
cs.configV1alpha1 = configv1alpha1.New(c)
|
cs.configV1alpha1 = configv1alpha1.New(c)
|
||||||
cs.iDPV1alpha1 = idpv1alpha1.New(c)
|
cs.iDPV1alpha1 = idpv1alpha1.New(c)
|
||||||
cs.loginV1alpha1 = loginv1alpha1.New(c)
|
cs.loginV1alpha1 = loginv1alpha1.New(c)
|
||||||
cs.pinnipedV1alpha1 = pinnipedv1alpha1.New(c)
|
|
||||||
|
|
||||||
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||||
return &cs
|
return &cs
|
||||||
|
@ -13,8 +13,6 @@ import (
|
|||||||
fakeidpv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake"
|
fakeidpv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/login/v1alpha1"
|
||||||
fakeloginv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake"
|
fakeloginv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1"
|
|
||||||
fakepinnipedv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
"k8s.io/apimachinery/pkg/watch"
|
"k8s.io/apimachinery/pkg/watch"
|
||||||
"k8s.io/client-go/discovery"
|
"k8s.io/client-go/discovery"
|
||||||
@ -83,8 +81,3 @@ func (c *Clientset) IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface {
|
|||||||
func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface {
|
func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface {
|
||||||
return &fakeloginv1alpha1.FakeLoginV1alpha1{Fake: &c.Fake}
|
return &fakeloginv1alpha1.FakeLoginV1alpha1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client
|
|
||||||
func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface {
|
|
||||||
return &fakepinnipedv1alpha1.FakePinnipedV1alpha1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
@ -9,7 +9,6 @@ import (
|
|||||||
configv1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1"
|
configv1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
@ -24,7 +23,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{
|
|||||||
configv1alpha1.AddToScheme,
|
configv1alpha1.AddToScheme,
|
||||||
idpv1alpha1.AddToScheme,
|
idpv1alpha1.AddToScheme,
|
||||||
loginv1alpha1.AddToScheme,
|
loginv1alpha1.AddToScheme,
|
||||||
pinnipedv1alpha1.AddToScheme,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||||
|
@ -9,7 +9,6 @@ import (
|
|||||||
configv1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1"
|
configv1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
@ -24,7 +23,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{
|
|||||||
configv1alpha1.AddToScheme,
|
configv1alpha1.AddToScheme,
|
||||||
idpv1alpha1.AddToScheme,
|
idpv1alpha1.AddToScheme,
|
||||||
loginv1alpha1.AddToScheme,
|
loginv1alpha1.AddToScheme,
|
||||||
pinnipedv1alpha1.AddToScheme,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||||
|
@ -1,171 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"time"
|
|
||||||
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1"
|
|
||||||
scheme "go.pinniped.dev/generated/1.18/client/clientset/versioned/scheme"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
|
||||||
rest "k8s.io/client-go/rest"
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestsGetter has a method to return a CredentialRequestInterface.
|
|
||||||
// A group's client should implement this interface.
|
|
||||||
type CredentialRequestsGetter interface {
|
|
||||||
CredentialRequests() CredentialRequestInterface
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestInterface has methods to work with CredentialRequest resources.
|
|
||||||
type CredentialRequestInterface interface {
|
|
||||||
Create(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.CreateOptions) (*v1alpha1.CredentialRequest, error)
|
|
||||||
Update(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (*v1alpha1.CredentialRequest, error)
|
|
||||||
UpdateStatus(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (*v1alpha1.CredentialRequest, error)
|
|
||||||
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
|
|
||||||
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
|
|
||||||
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.CredentialRequest, error)
|
|
||||||
List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.CredentialRequestList, error)
|
|
||||||
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
|
|
||||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.CredentialRequest, err error)
|
|
||||||
CredentialRequestExpansion
|
|
||||||
}
|
|
||||||
|
|
||||||
// credentialRequests implements CredentialRequestInterface
|
|
||||||
type credentialRequests struct {
|
|
||||||
client rest.Interface
|
|
||||||
}
|
|
||||||
|
|
||||||
// newCredentialRequests returns a CredentialRequests
|
|
||||||
func newCredentialRequests(c *PinnipedV1alpha1Client) *credentialRequests {
|
|
||||||
return &credentialRequests{
|
|
||||||
client: c.RESTClient(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get takes name of the credentialRequest, and returns the corresponding credentialRequest object, and an error if there is any.
|
|
||||||
func (c *credentialRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(name).
|
|
||||||
VersionedParams(&options, scheme.ParameterCodec).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// List takes label and field selectors, and returns the list of CredentialRequests that match those selectors.
|
|
||||||
func (c *credentialRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.CredentialRequestList, err error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
result = &v1alpha1.CredentialRequestList{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Watch returns a watch.Interface that watches the requested credentialRequests.
|
|
||||||
func (c *credentialRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
opts.Watch = true
|
|
||||||
return c.client.Get().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Watch(ctx)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create takes the representation of a credentialRequest and creates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *credentialRequests) Create(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.CreateOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Post().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(credentialRequest).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update takes the representation of a credentialRequest and updates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *credentialRequests) Update(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(credentialRequest.Name).
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(credentialRequest).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateStatus was generated because the type contains a Status member.
|
|
||||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
|
||||||
func (c *credentialRequests) UpdateStatus(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(credentialRequest.Name).
|
|
||||||
SubResource("status").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(credentialRequest).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete takes name of the credentialRequest and deletes it. Returns an error if one occurs.
|
|
||||||
func (c *credentialRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
|
||||||
return c.client.Delete().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(name).
|
|
||||||
Body(&opts).
|
|
||||||
Do(ctx).
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteCollection deletes a collection of objects.
|
|
||||||
func (c *credentialRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
|
||||||
var timeout time.Duration
|
|
||||||
if listOpts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
return c.client.Delete().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Body(&opts).
|
|
||||||
Do(ctx).
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Patch applies the patch and returns the patched credentialRequest.
|
|
||||||
func (c *credentialRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Patch(pt).
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(name).
|
|
||||||
SubResource(subresources...).
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(data).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
// This package has the automatically generated typed clients.
|
|
||||||
package v1alpha1
|
|
@ -1,7 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
// Package fake has the automatically generated clients.
|
|
||||||
package fake
|
|
@ -1,120 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package fake
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
labels "k8s.io/apimachinery/pkg/labels"
|
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
|
||||||
testing "k8s.io/client-go/testing"
|
|
||||||
)
|
|
||||||
|
|
||||||
// FakeCredentialRequests implements CredentialRequestInterface
|
|
||||||
type FakeCredentialRequests struct {
|
|
||||||
Fake *FakePinnipedV1alpha1
|
|
||||||
}
|
|
||||||
|
|
||||||
var credentialrequestsResource = schema.GroupVersionResource{Group: "pinniped.dev", Version: "v1alpha1", Resource: "credentialrequests"}
|
|
||||||
|
|
||||||
var credentialrequestsKind = schema.GroupVersionKind{Group: "pinniped.dev", Version: "v1alpha1", Kind: "CredentialRequest"}
|
|
||||||
|
|
||||||
// Get takes name of the credentialRequest, and returns the corresponding credentialRequest object, and an error if there is any.
|
|
||||||
func (c *FakeCredentialRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootGetAction(credentialrequestsResource, name), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// List takes label and field selectors, and returns the list of CredentialRequests that match those selectors.
|
|
||||||
func (c *FakeCredentialRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.CredentialRequestList, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootListAction(credentialrequestsResource, credentialrequestsKind, opts), &v1alpha1.CredentialRequestList{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
|
||||||
if label == nil {
|
|
||||||
label = labels.Everything()
|
|
||||||
}
|
|
||||||
list := &v1alpha1.CredentialRequestList{ListMeta: obj.(*v1alpha1.CredentialRequestList).ListMeta}
|
|
||||||
for _, item := range obj.(*v1alpha1.CredentialRequestList).Items {
|
|
||||||
if label.Matches(labels.Set(item.Labels)) {
|
|
||||||
list.Items = append(list.Items, item)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return list, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Watch returns a watch.Interface that watches the requested credentialRequests.
|
|
||||||
func (c *FakeCredentialRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
|
||||||
return c.Fake.
|
|
||||||
InvokesWatch(testing.NewRootWatchAction(credentialrequestsResource, opts))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create takes the representation of a credentialRequest and creates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *FakeCredentialRequests) Create(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.CreateOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootCreateAction(credentialrequestsResource, credentialRequest), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update takes the representation of a credentialRequest and updates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *FakeCredentialRequests) Update(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootUpdateAction(credentialrequestsResource, credentialRequest), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateStatus was generated because the type contains a Status member.
|
|
||||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
|
||||||
func (c *FakeCredentialRequests) UpdateStatus(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (*v1alpha1.CredentialRequest, error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootUpdateSubresourceAction(credentialrequestsResource, "status", credentialRequest), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete takes name of the credentialRequest and deletes it. Returns an error if one occurs.
|
|
||||||
func (c *FakeCredentialRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
|
||||||
_, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootDeleteAction(credentialrequestsResource, name), &v1alpha1.CredentialRequest{})
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteCollection deletes a collection of objects.
|
|
||||||
func (c *FakeCredentialRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
|
||||||
action := testing.NewRootDeleteCollectionAction(credentialrequestsResource, listOpts)
|
|
||||||
|
|
||||||
_, err := c.Fake.Invokes(action, &v1alpha1.CredentialRequestList{})
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Patch applies the patch and returns the patched credentialRequest.
|
|
||||||
func (c *FakeCredentialRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootPatchSubresourceAction(credentialrequestsResource, name, pt, data, subresources...), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package fake
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1"
|
|
||||||
rest "k8s.io/client-go/rest"
|
|
||||||
testing "k8s.io/client-go/testing"
|
|
||||||
)
|
|
||||||
|
|
||||||
type FakePinnipedV1alpha1 struct {
|
|
||||||
*testing.Fake
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *FakePinnipedV1alpha1) CredentialRequests() v1alpha1.CredentialRequestInterface {
|
|
||||||
return &FakeCredentialRequests{c}
|
|
||||||
}
|
|
||||||
|
|
||||||
// RESTClient returns a RESTClient that is used to communicate
|
|
||||||
// with API server by this client implementation.
|
|
||||||
func (c *FakePinnipedV1alpha1) RESTClient() rest.Interface {
|
|
||||||
var ret *rest.RESTClient
|
|
||||||
return ret
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
type CredentialRequestExpansion interface{}
|
|
@ -1,76 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1"
|
|
||||||
"go.pinniped.dev/generated/1.18/client/clientset/versioned/scheme"
|
|
||||||
rest "k8s.io/client-go/rest"
|
|
||||||
)
|
|
||||||
|
|
||||||
type PinnipedV1alpha1Interface interface {
|
|
||||||
RESTClient() rest.Interface
|
|
||||||
CredentialRequestsGetter
|
|
||||||
}
|
|
||||||
|
|
||||||
// PinnipedV1alpha1Client is used to interact with features provided by the pinniped.dev group.
|
|
||||||
type PinnipedV1alpha1Client struct {
|
|
||||||
restClient rest.Interface
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *PinnipedV1alpha1Client) CredentialRequests() CredentialRequestInterface {
|
|
||||||
return newCredentialRequests(c)
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewForConfig creates a new PinnipedV1alpha1Client for the given config.
|
|
||||||
func NewForConfig(c *rest.Config) (*PinnipedV1alpha1Client, error) {
|
|
||||||
config := *c
|
|
||||||
if err := setConfigDefaults(&config); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
client, err := rest.RESTClientFor(&config)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return &PinnipedV1alpha1Client{client}, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewForConfigOrDie creates a new PinnipedV1alpha1Client for the given config and
|
|
||||||
// panics if there is an error in the config.
|
|
||||||
func NewForConfigOrDie(c *rest.Config) *PinnipedV1alpha1Client {
|
|
||||||
client, err := NewForConfig(c)
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
return client
|
|
||||||
}
|
|
||||||
|
|
||||||
// New creates a new PinnipedV1alpha1Client for the given RESTClient.
|
|
||||||
func New(c rest.Interface) *PinnipedV1alpha1Client {
|
|
||||||
return &PinnipedV1alpha1Client{c}
|
|
||||||
}
|
|
||||||
|
|
||||||
func setConfigDefaults(config *rest.Config) error {
|
|
||||||
gv := v1alpha1.SchemeGroupVersion
|
|
||||||
config.GroupVersion = &gv
|
|
||||||
config.APIPath = "/apis"
|
|
||||||
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
|
|
||||||
|
|
||||||
if config.UserAgent == "" {
|
|
||||||
config.UserAgent = rest.DefaultKubernetesUserAgent()
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// RESTClient returns a RESTClient that is used to communicate
|
|
||||||
// with API server by this client implementation.
|
|
||||||
func (c *PinnipedV1alpha1Client) RESTClient() rest.Interface {
|
|
||||||
if c == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return c.restClient
|
|
||||||
}
|
|
@ -15,7 +15,6 @@ import (
|
|||||||
idp "go.pinniped.dev/generated/1.18/client/informers/externalversions/idp"
|
idp "go.pinniped.dev/generated/1.18/client/informers/externalversions/idp"
|
||||||
internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces"
|
internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces"
|
||||||
login "go.pinniped.dev/generated/1.18/client/informers/externalversions/login"
|
login "go.pinniped.dev/generated/1.18/client/informers/externalversions/login"
|
||||||
pinniped "go.pinniped.dev/generated/1.18/client/informers/externalversions/pinniped"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
@ -165,7 +164,6 @@ type SharedInformerFactory interface {
|
|||||||
Config() config.Interface
|
Config() config.Interface
|
||||||
IDP() idp.Interface
|
IDP() idp.Interface
|
||||||
Login() login.Interface
|
Login() login.Interface
|
||||||
Pinniped() pinniped.Interface
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *sharedInformerFactory) Config() config.Interface {
|
func (f *sharedInformerFactory) Config() config.Interface {
|
||||||
@ -179,7 +177,3 @@ func (f *sharedInformerFactory) IDP() idp.Interface {
|
|||||||
func (f *sharedInformerFactory) Login() login.Interface {
|
func (f *sharedInformerFactory) Login() login.Interface {
|
||||||
return login.New(f, f.namespace, f.tweakListOptions)
|
return login.New(f, f.namespace, f.tweakListOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *sharedInformerFactory) Pinniped() pinniped.Interface {
|
|
||||||
return pinniped.New(f, f.namespace, f.tweakListOptions)
|
|
||||||
}
|
|
||||||
|
@ -11,7 +11,6 @@ import (
|
|||||||
v1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1"
|
v1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1"
|
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
cache "k8s.io/client-go/tools/cache"
|
cache "k8s.io/client-go/tools/cache"
|
||||||
)
|
)
|
||||||
@ -54,10 +53,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
|
|||||||
case loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests"):
|
case loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests"):
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Login().V1alpha1().TokenCredentialRequests().Informer()}, nil
|
return &genericInformer{resource: resource.GroupResource(), informer: f.Login().V1alpha1().TokenCredentialRequests().Informer()}, nil
|
||||||
|
|
||||||
// Group=pinniped.dev, Version=v1alpha1
|
|
||||||
case pinnipedv1alpha1.SchemeGroupVersion.WithResource("credentialrequests"):
|
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Pinniped().V1alpha1().CredentialRequests().Informer()}, nil
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, fmt.Errorf("no informer found for %v", resource)
|
return nil, fmt.Errorf("no informer found for %v", resource)
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by informer-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import (
|
|
||||||
internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces"
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.18/client/informers/externalversions/pinniped/v1alpha1"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Interface provides access to each of this group's versions.
|
|
||||||
type Interface interface {
|
|
||||||
// V1alpha1 provides access to shared informers for resources in V1alpha1.
|
|
||||||
V1alpha1() v1alpha1.Interface
|
|
||||||
}
|
|
||||||
|
|
||||||
type group struct {
|
|
||||||
factory internalinterfaces.SharedInformerFactory
|
|
||||||
namespace string
|
|
||||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
|
||||||
}
|
|
||||||
|
|
||||||
// New returns a new Interface.
|
|
||||||
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
|
|
||||||
return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
|
|
||||||
}
|
|
||||||
|
|
||||||
// V1alpha1 returns a new v1alpha1.Interface.
|
|
||||||
func (g *group) V1alpha1() v1alpha1.Interface {
|
|
||||||
return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions)
|
|
||||||
}
|
|
@ -1,76 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by informer-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
time "time"
|
|
||||||
|
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1"
|
|
||||||
versioned "go.pinniped.dev/generated/1.18/client/clientset/versioned"
|
|
||||||
internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces"
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.18/client/listers/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
|
||||||
cache "k8s.io/client-go/tools/cache"
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestInformer provides access to a shared informer and lister for
|
|
||||||
// CredentialRequests.
|
|
||||||
type CredentialRequestInformer interface {
|
|
||||||
Informer() cache.SharedIndexInformer
|
|
||||||
Lister() v1alpha1.CredentialRequestLister
|
|
||||||
}
|
|
||||||
|
|
||||||
type credentialRequestInformer struct {
|
|
||||||
factory internalinterfaces.SharedInformerFactory
|
|
||||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewCredentialRequestInformer constructs a new informer for CredentialRequest type.
|
|
||||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
|
||||||
// one. This reduces memory footprint and number of connections to the server.
|
|
||||||
func NewCredentialRequestInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer {
|
|
||||||
return NewFilteredCredentialRequestInformer(client, resyncPeriod, indexers, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewFilteredCredentialRequestInformer constructs a new informer for CredentialRequest type.
|
|
||||||
// Always prefer using an informer factory to get a shared informer instead of getting an independent
|
|
||||||
// one. This reduces memory footprint and number of connections to the server.
|
|
||||||
func NewFilteredCredentialRequestInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer {
|
|
||||||
return cache.NewSharedIndexInformer(
|
|
||||||
&cache.ListWatch{
|
|
||||||
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
|
|
||||||
if tweakListOptions != nil {
|
|
||||||
tweakListOptions(&options)
|
|
||||||
}
|
|
||||||
return client.PinnipedV1alpha1().CredentialRequests().List(context.TODO(), options)
|
|
||||||
},
|
|
||||||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
|
||||||
if tweakListOptions != nil {
|
|
||||||
tweakListOptions(&options)
|
|
||||||
}
|
|
||||||
return client.PinnipedV1alpha1().CredentialRequests().Watch(context.TODO(), options)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
&pinnipedv1alpha1.CredentialRequest{},
|
|
||||||
resyncPeriod,
|
|
||||||
indexers,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (f *credentialRequestInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
|
|
||||||
return NewFilteredCredentialRequestInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (f *credentialRequestInformer) Informer() cache.SharedIndexInformer {
|
|
||||||
return f.factory.InformerFor(&pinnipedv1alpha1.CredentialRequest{}, f.defaultInformer)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (f *credentialRequestInformer) Lister() v1alpha1.CredentialRequestLister {
|
|
||||||
return v1alpha1.NewCredentialRequestLister(f.Informer().GetIndexer())
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by informer-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Interface provides access to all the informers in this group version.
|
|
||||||
type Interface interface {
|
|
||||||
// CredentialRequests returns a CredentialRequestInformer.
|
|
||||||
CredentialRequests() CredentialRequestInformer
|
|
||||||
}
|
|
||||||
|
|
||||||
type version struct {
|
|
||||||
factory internalinterfaces.SharedInformerFactory
|
|
||||||
namespace string
|
|
||||||
tweakListOptions internalinterfaces.TweakListOptionsFunc
|
|
||||||
}
|
|
||||||
|
|
||||||
// New returns a new Interface.
|
|
||||||
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
|
|
||||||
return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequests returns a CredentialRequestInformer.
|
|
||||||
func (v *version) CredentialRequests() CredentialRequestInformer {
|
|
||||||
return &credentialRequestInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
|
|
||||||
}
|
|
@ -1,52 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by lister-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1"
|
|
||||||
"k8s.io/apimachinery/pkg/api/errors"
|
|
||||||
"k8s.io/apimachinery/pkg/labels"
|
|
||||||
"k8s.io/client-go/tools/cache"
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestLister helps list CredentialRequests.
|
|
||||||
type CredentialRequestLister interface {
|
|
||||||
// List lists all CredentialRequests in the indexer.
|
|
||||||
List(selector labels.Selector) (ret []*v1alpha1.CredentialRequest, err error)
|
|
||||||
// Get retrieves the CredentialRequest from the index for a given name.
|
|
||||||
Get(name string) (*v1alpha1.CredentialRequest, error)
|
|
||||||
CredentialRequestListerExpansion
|
|
||||||
}
|
|
||||||
|
|
||||||
// credentialRequestLister implements the CredentialRequestLister interface.
|
|
||||||
type credentialRequestLister struct {
|
|
||||||
indexer cache.Indexer
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewCredentialRequestLister returns a new CredentialRequestLister.
|
|
||||||
func NewCredentialRequestLister(indexer cache.Indexer) CredentialRequestLister {
|
|
||||||
return &credentialRequestLister{indexer: indexer}
|
|
||||||
}
|
|
||||||
|
|
||||||
// List lists all CredentialRequests in the indexer.
|
|
||||||
func (s *credentialRequestLister) List(selector labels.Selector) (ret []*v1alpha1.CredentialRequest, err error) {
|
|
||||||
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
|
|
||||||
ret = append(ret, m.(*v1alpha1.CredentialRequest))
|
|
||||||
})
|
|
||||||
return ret, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get retrieves the CredentialRequest from the index for a given name.
|
|
||||||
func (s *credentialRequestLister) Get(name string) (*v1alpha1.CredentialRequest, error) {
|
|
||||||
obj, exists, err := s.indexer.GetByKey(name)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if !exists {
|
|
||||||
return nil, errors.NewNotFound(v1alpha1.Resource("credentialrequest"), name)
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), nil
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by lister-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
// CredentialRequestListerExpansion allows custom methods to be added to
|
|
||||||
// CredentialRequestLister.
|
|
||||||
type CredentialRequestListerExpansion interface{}
|
|
215
generated/1.18/client/openapi/zz_generated.openapi.go
generated
215
generated/1.18/client/openapi/zz_generated.openapi.go
generated
@ -33,12 +33,6 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
|
|||||||
"go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestList": schema_118_apis_login_v1alpha1_TokenCredentialRequestList(ref),
|
"go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestList": schema_118_apis_login_v1alpha1_TokenCredentialRequestList(ref),
|
||||||
"go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestSpec": schema_118_apis_login_v1alpha1_TokenCredentialRequestSpec(ref),
|
"go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestSpec": schema_118_apis_login_v1alpha1_TokenCredentialRequestSpec(ref),
|
||||||
"go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestStatus": schema_118_apis_login_v1alpha1_TokenCredentialRequestStatus(ref),
|
"go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestStatus": schema_118_apis_login_v1alpha1_TokenCredentialRequestStatus(ref),
|
||||||
"go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequest": schema_118_apis_pinniped_v1alpha1_CredentialRequest(ref),
|
|
||||||
"go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestCredential": schema_118_apis_pinniped_v1alpha1_CredentialRequestCredential(ref),
|
|
||||||
"go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestList": schema_118_apis_pinniped_v1alpha1_CredentialRequestList(ref),
|
|
||||||
"go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestSpec": schema_118_apis_pinniped_v1alpha1_CredentialRequestSpec(ref),
|
|
||||||
"go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestStatus": schema_118_apis_pinniped_v1alpha1_CredentialRequestStatus(ref),
|
|
||||||
"go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestTokenCredential": schema_118_apis_pinniped_v1alpha1_CredentialRequestTokenCredential(ref),
|
|
||||||
"k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref),
|
"k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref),
|
||||||
"k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref),
|
"k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref),
|
||||||
"k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref),
|
"k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref),
|
||||||
@ -711,215 +705,6 @@ func schema_118_apis_login_v1alpha1_TokenCredentialRequestStatus(ref common.Refe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func schema_118_apis_pinniped_v1alpha1_CredentialRequest(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential.",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"kind": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"apiVersion": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"metadata": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: ref("go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestSpec"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: ref("go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestStatus"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestSpec", "go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_118_apis_pinniped_v1alpha1_CredentialRequestCredential(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequestCredential is the cluster-specific credential returned on a successful CredentialRequest. It contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster.",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"expirationTimestamp": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "ExpirationTimestamp indicates a time when the provided credentials expire.",
|
|
||||||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"token": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Token is a bearer token used by the client for request authentication.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"clientCertificateData": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "PEM-encoded client TLS certificates (including intermediates, if any).",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"clientKeyData": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "PEM-encoded private key for the above certificate.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"k8s.io/apimachinery/pkg/apis/meta/v1.Time"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_118_apis_pinniped_v1alpha1_CredentialRequestList(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequestList is a list of CredentialRequest objects.",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"kind": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"apiVersion": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"metadata": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"items": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Type: []string{"array"},
|
|
||||||
Items: &spec.SchemaOrArray{
|
|
||||||
Schema: &spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Ref: ref("go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequest"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Required: []string{"items"},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_118_apis_pinniped_v1alpha1_CredentialRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequestSpec is the specification of a CredentialRequest, expected on requests to the Pinniped API",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"type": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Type of credential.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"token": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Token credential (when Type == TokenCredentialType).",
|
|
||||||
Ref: ref("go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestTokenCredential"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestTokenCredential"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_118_apis_pinniped_v1alpha1_CredentialRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequestStatus is the status of a CredentialRequest, returned on responses to the Pinniped API.",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"credential": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "A Credential will be returned for a successful credential request.",
|
|
||||||
Ref: ref("go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestCredential"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "An error message will be returned for an unsuccessful credential request.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dependencies: []string{
|
|
||||||
"go.pinniped.dev/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestCredential"},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_118_apis_pinniped_v1alpha1_CredentialRequestTokenCredential(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
|
||||||
return common.OpenAPIDefinition{
|
|
||||||
Schema: spec.Schema{
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider.",
|
|
||||||
Type: []string{"object"},
|
|
||||||
Properties: map[string]spec.Schema{
|
|
||||||
"value": {
|
|
||||||
SchemaProps: spec.SchemaProps{
|
|
||||||
Description: "Value of the bearer token supplied with the credential request.",
|
|
||||||
Type: []string{"string"},
|
|
||||||
Format: "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||||
return common.OpenAPIDefinition{
|
return common.OpenAPIDefinition{
|
||||||
Schema: spec.Schema{
|
Schema: spec.Schema{
|
||||||
|
104
generated/1.19/README.adoc
generated
104
generated/1.19/README.adoc
generated
@ -8,7 +8,6 @@
|
|||||||
- xref:{anchor_prefix}-config-pinniped-dev-v1alpha1[$$config.pinniped.dev/v1alpha1$$]
|
- xref:{anchor_prefix}-config-pinniped-dev-v1alpha1[$$config.pinniped.dev/v1alpha1$$]
|
||||||
- xref:{anchor_prefix}-idp-pinniped-dev-v1alpha1[$$idp.pinniped.dev/v1alpha1$$]
|
- xref:{anchor_prefix}-idp-pinniped-dev-v1alpha1[$$idp.pinniped.dev/v1alpha1$$]
|
||||||
- xref:{anchor_prefix}-login-pinniped-dev-v1alpha1[$$login.pinniped.dev/v1alpha1$$]
|
- xref:{anchor_prefix}-login-pinniped-dev-v1alpha1[$$login.pinniped.dev/v1alpha1$$]
|
||||||
- xref:{anchor_prefix}-pinniped-dev-v1alpha1[$$pinniped.dev/v1alpha1$$]
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-config-pinniped-dev-v1alpha1"]
|
[id="{anchor_prefix}-config-pinniped-dev-v1alpha1"]
|
||||||
@ -285,106 +284,3 @@ TokenCredentialRequestStatus is the status of a TokenCredentialRequest, returned
|
|||||||
|===
|
|===
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-pinniped-dev-v1alpha1"]
|
|
||||||
=== pinniped.dev/v1alpha1
|
|
||||||
|
|
||||||
Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequest"]
|
|
||||||
==== CredentialRequest
|
|
||||||
|
|
||||||
CredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequestlist[$$CredentialRequestList$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`.
|
|
||||||
|
|
||||||
| *`spec`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequestspec[$$CredentialRequestSpec$$]__ |
|
|
||||||
| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequeststatus[$$CredentialRequestStatus$$]__ |
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequestcredential"]
|
|
||||||
==== CredentialRequestCredential
|
|
||||||
|
|
||||||
CredentialRequestCredential is the cluster-specific credential returned on a successful CredentialRequest. It contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequeststatus[$$CredentialRequestStatus$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`expirationTimestamp`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#time-v1-meta[$$Time$$]__ | ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
| *`token`* __string__ | Token is a bearer token used by the client for request authentication.
|
|
||||||
| *`clientCertificateData`* __string__ | PEM-encoded client TLS certificates (including intermediates, if any).
|
|
||||||
| *`clientKeyData`* __string__ | PEM-encoded private key for the above certificate.
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequestspec"]
|
|
||||||
==== CredentialRequestSpec
|
|
||||||
|
|
||||||
CredentialRequestSpec is the specification of a CredentialRequest, expected on requests to the Pinniped API
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`type`* __CredentialType__ | Type of credential.
|
|
||||||
| *`token`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequesttokencredential[$$CredentialRequestTokenCredential$$]__ | Token credential (when Type == TokenCredentialType).
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequeststatus"]
|
|
||||||
==== CredentialRequestStatus
|
|
||||||
|
|
||||||
CredentialRequestStatus is the status of a CredentialRequest, returned on responses to the Pinniped API.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`credential`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequestcredential[$$CredentialRequestCredential$$]__ | A Credential will be returned for a successful credential request.
|
|
||||||
| *`message`* __string__ | An error message will be returned for an unsuccessful credential request.
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequesttokencredential"]
|
|
||||||
==== CredentialRequestTokenCredential
|
|
||||||
|
|
||||||
CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider.
|
|
||||||
|
|
||||||
.Appears In:
|
|
||||||
****
|
|
||||||
- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-pinniped-v1alpha1-credentialrequestspec[$$CredentialRequestSpec$$]
|
|
||||||
****
|
|
||||||
|
|
||||||
[cols="25a,75a", options="header"]
|
|
||||||
|===
|
|
||||||
| Field | Description
|
|
||||||
| *`value`* __string__ | Value of the bearer token supplied with the credential request.
|
|
||||||
|===
|
|
||||||
|
|
||||||
|
|
||||||
|
8
generated/1.19/apis/pinniped/doc.go
generated
8
generated/1.19/apis/pinniped/doc.go
generated
@ -1,8 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// +k8s:deepcopy-gen=package
|
|
||||||
// +groupName=pinniped.dev
|
|
||||||
|
|
||||||
// Package pinniped is the internal version of the Pinniped aggregated API.
|
|
||||||
package pinniped
|
|
38
generated/1.19/apis/pinniped/register.go
generated
38
generated/1.19/apis/pinniped/register.go
generated
@ -1,38 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import (
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
)
|
|
||||||
|
|
||||||
const GroupName = "pinniped.dev"
|
|
||||||
|
|
||||||
// SchemeGroupVersion is group version used to register these objects.
|
|
||||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
|
|
||||||
|
|
||||||
// Kind takes an unqualified kind and returns back a Group qualified GroupKind.
|
|
||||||
func Kind(kind string) schema.GroupKind {
|
|
||||||
return SchemeGroupVersion.WithKind(kind).GroupKind()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Resource takes an unqualified resource and returns back a Group qualified GroupResource.
|
|
||||||
func Resource(resource string) schema.GroupResource {
|
|
||||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
|
||||||
AddToScheme = SchemeBuilder.AddToScheme
|
|
||||||
)
|
|
||||||
|
|
||||||
// Adds the list of known types to the given scheme.
|
|
||||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
|
||||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
|
||||||
&CredentialRequest{},
|
|
||||||
&CredentialRequestList{},
|
|
||||||
)
|
|
||||||
return nil
|
|
||||||
}
|
|
73
generated/1.19/apis/pinniped/types.go
generated
73
generated/1.19/apis/pinniped/types.go
generated
@ -1,73 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
|
|
||||||
type CredentialType string
|
|
||||||
|
|
||||||
const (
|
|
||||||
TokenCredentialType = CredentialType("token")
|
|
||||||
)
|
|
||||||
|
|
||||||
type CredentialRequestTokenCredential struct {
|
|
||||||
// Value of the bearer token supplied with the credential request.
|
|
||||||
Value string
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestSpec struct {
|
|
||||||
// Type of credential.
|
|
||||||
Type CredentialType
|
|
||||||
|
|
||||||
// Token credential (when Type == TokenCredentialType).
|
|
||||||
Token *CredentialRequestTokenCredential
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestCredential struct {
|
|
||||||
// ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
ExpirationTimestamp metav1.Time
|
|
||||||
|
|
||||||
// Token is a bearer token used by the client for request authentication.
|
|
||||||
Token string
|
|
||||||
|
|
||||||
// PEM-encoded client TLS certificates (including intermediates, if any).
|
|
||||||
ClientCertificateData string
|
|
||||||
|
|
||||||
// PEM-encoded private key for the above certificate.
|
|
||||||
ClientKeyData string
|
|
||||||
}
|
|
||||||
|
|
||||||
type CredentialRequestStatus struct {
|
|
||||||
// A Credential will be returned for a successful credential request.
|
|
||||||
// +optional
|
|
||||||
Credential *CredentialRequestCredential
|
|
||||||
|
|
||||||
// An error message will be returned for an unsuccessful credential request.
|
|
||||||
// +optional
|
|
||||||
Message *string
|
|
||||||
}
|
|
||||||
|
|
||||||
// +genclient
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
|
|
||||||
type CredentialRequest struct {
|
|
||||||
metav1.TypeMeta
|
|
||||||
metav1.ObjectMeta
|
|
||||||
|
|
||||||
Spec CredentialRequestSpec
|
|
||||||
Status CredentialRequestStatus
|
|
||||||
}
|
|
||||||
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
|
|
||||||
// CredentialRequestList is a list of CredentialRequest objects.
|
|
||||||
type CredentialRequestList struct {
|
|
||||||
metav1.TypeMeta
|
|
||||||
metav1.ListMeta
|
|
||||||
|
|
||||||
// Items is a list of CredentialRequests
|
|
||||||
Items []CredentialRequest
|
|
||||||
}
|
|
@ -1,4 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
12
generated/1.19/apis/pinniped/v1alpha1/defaults.go
generated
12
generated/1.19/apis/pinniped/v1alpha1/defaults.go
generated
@ -1,12 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
func addDefaultingFuncs(scheme *runtime.Scheme) error {
|
|
||||||
return RegisterDefaults(scheme)
|
|
||||||
}
|
|
11
generated/1.19/apis/pinniped/v1alpha1/doc.go
generated
11
generated/1.19/apis/pinniped/v1alpha1/doc.go
generated
@ -1,11 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// +k8s:openapi-gen=true
|
|
||||||
// +k8s:deepcopy-gen=package
|
|
||||||
// +k8s:conversion-gen=go.pinniped.dev/generated/1.19/apis/pinniped
|
|
||||||
// +k8s:defaulter-gen=TypeMeta
|
|
||||||
// +groupName=pinniped.dev
|
|
||||||
|
|
||||||
// Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API.
|
|
||||||
package v1alpha1
|
|
43
generated/1.19/apis/pinniped/v1alpha1/register.go
generated
43
generated/1.19/apis/pinniped/v1alpha1/register.go
generated
@ -1,43 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
)
|
|
||||||
|
|
||||||
const GroupName = "pinniped.dev"
|
|
||||||
|
|
||||||
// SchemeGroupVersion is group version used to register these objects.
|
|
||||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
|
|
||||||
|
|
||||||
var (
|
|
||||||
SchemeBuilder runtime.SchemeBuilder
|
|
||||||
localSchemeBuilder = &SchemeBuilder
|
|
||||||
AddToScheme = localSchemeBuilder.AddToScheme
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
// We only register manually written functions here. The registration of the
|
|
||||||
// generated functions takes place in the generated files. The separation
|
|
||||||
// makes the code compile even when the generated files are missing.
|
|
||||||
localSchemeBuilder.Register(addKnownTypes, addDefaultingFuncs)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Adds the list of known types to the given scheme.
|
|
||||||
func addKnownTypes(scheme *runtime.Scheme) error {
|
|
||||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
|
||||||
&CredentialRequest{},
|
|
||||||
&CredentialRequestList{},
|
|
||||||
)
|
|
||||||
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Resource takes an unqualified resource and returns a Group qualified GroupResource.
|
|
||||||
func Resource(resource string) schema.GroupResource {
|
|
||||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
|
||||||
}
|
|
77
generated/1.19/apis/pinniped/v1alpha1/types.go
generated
77
generated/1.19/apis/pinniped/v1alpha1/types.go
generated
@ -1,77 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
|
|
||||||
type CredentialType string
|
|
||||||
|
|
||||||
const (
|
|
||||||
TokenCredentialType = CredentialType("token")
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider.
|
|
||||||
type CredentialRequestTokenCredential struct {
|
|
||||||
// Value of the bearer token supplied with the credential request.
|
|
||||||
Value string `json:"value,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestSpec is the specification of a CredentialRequest, expected on requests to the Pinniped API
|
|
||||||
type CredentialRequestSpec struct {
|
|
||||||
// Type of credential.
|
|
||||||
Type CredentialType `json:"type,omitempty"`
|
|
||||||
|
|
||||||
// Token credential (when Type == TokenCredentialType).
|
|
||||||
Token *CredentialRequestTokenCredential `json:"token,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestCredential is the cluster-specific credential returned on a successful CredentialRequest. It
|
|
||||||
// contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster.
|
|
||||||
type CredentialRequestCredential struct {
|
|
||||||
// ExpirationTimestamp indicates a time when the provided credentials expire.
|
|
||||||
ExpirationTimestamp metav1.Time `json:"expirationTimestamp,omitempty"`
|
|
||||||
|
|
||||||
// Token is a bearer token used by the client for request authentication.
|
|
||||||
Token string `json:"token,omitempty"`
|
|
||||||
|
|
||||||
// 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"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestStatus is the status of a CredentialRequest, returned on responses to the Pinniped API.
|
|
||||||
type CredentialRequestStatus struct {
|
|
||||||
// A Credential will be returned for a successful credential request.
|
|
||||||
// +optional
|
|
||||||
Credential *CredentialRequestCredential `json:"credential,omitempty"`
|
|
||||||
|
|
||||||
// An error message will be returned for an unsuccessful credential request.
|
|
||||||
// +optional
|
|
||||||
Message *string `json:"message,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential.
|
|
||||||
// +genclient
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
type CredentialRequest struct {
|
|
||||||
metav1.TypeMeta `json:",inline"`
|
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
|
||||||
|
|
||||||
Spec CredentialRequestSpec `json:"spec,omitempty"`
|
|
||||||
Status CredentialRequestStatus `json:"status,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// CredentialRequestList is a list of CredentialRequest objects.
|
|
||||||
// +genclient:nonNamespaced
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
type CredentialRequestList struct {
|
|
||||||
metav1.TypeMeta `json:",inline"`
|
|
||||||
metav1.ListMeta `json:"metadata,omitempty"`
|
|
||||||
|
|
||||||
Items []CredentialRequest `json:"items"`
|
|
||||||
}
|
|
@ -1,230 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by conversion-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
unsafe "unsafe"
|
|
||||||
|
|
||||||
pinniped "go.pinniped.dev/generated/1.19/apis/pinniped"
|
|
||||||
conversion "k8s.io/apimachinery/pkg/conversion"
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
localSchemeBuilder.Register(RegisterConversions)
|
|
||||||
}
|
|
||||||
|
|
||||||
// RegisterConversions adds conversion functions to the given scheme.
|
|
||||||
// Public to allow building arbitrary schemes.
|
|
||||||
func RegisterConversions(s *runtime.Scheme) error {
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequest)(nil), (*pinniped.CredentialRequest)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(a.(*CredentialRequest), b.(*pinniped.CredentialRequest), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequest)(nil), (*CredentialRequest)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(a.(*pinniped.CredentialRequest), b.(*CredentialRequest), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestCredential)(nil), (*pinniped.CredentialRequestCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(a.(*CredentialRequestCredential), b.(*pinniped.CredentialRequestCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestCredential)(nil), (*CredentialRequestCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(a.(*pinniped.CredentialRequestCredential), b.(*CredentialRequestCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestList)(nil), (*pinniped.CredentialRequestList)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(a.(*CredentialRequestList), b.(*pinniped.CredentialRequestList), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestList)(nil), (*CredentialRequestList)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(a.(*pinniped.CredentialRequestList), b.(*CredentialRequestList), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestSpec)(nil), (*pinniped.CredentialRequestSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(a.(*CredentialRequestSpec), b.(*pinniped.CredentialRequestSpec), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestSpec)(nil), (*CredentialRequestSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(a.(*pinniped.CredentialRequestSpec), b.(*CredentialRequestSpec), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestStatus)(nil), (*pinniped.CredentialRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(a.(*CredentialRequestStatus), b.(*pinniped.CredentialRequestStatus), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestStatus)(nil), (*CredentialRequestStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(a.(*pinniped.CredentialRequestStatus), b.(*CredentialRequestStatus), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*CredentialRequestTokenCredential)(nil), (*pinniped.CredentialRequestTokenCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(a.(*CredentialRequestTokenCredential), b.(*pinniped.CredentialRequestTokenCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := s.AddGeneratedConversionFunc((*pinniped.CredentialRequestTokenCredential)(nil), (*CredentialRequestTokenCredential)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
|
||||||
return Convert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(a.(*pinniped.CredentialRequestTokenCredential), b.(*CredentialRequestTokenCredential), scope)
|
|
||||||
}); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(in *CredentialRequest, out *pinniped.CredentialRequest, s conversion.Scope) error {
|
|
||||||
out.ObjectMeta = in.ObjectMeta
|
|
||||||
if err := Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(&in.Spec, &out.Spec, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(&in.Status, &out.Status, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(in *CredentialRequest, out *pinniped.CredentialRequest, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequest_To_pinniped_CredentialRequest(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(in *pinniped.CredentialRequest, out *CredentialRequest, s conversion.Scope) error {
|
|
||||||
out.ObjectMeta = in.ObjectMeta
|
|
||||||
if err := Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(&in.Spec, &out.Spec, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(&in.Status, &out.Status, s); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(in *pinniped.CredentialRequest, out *CredentialRequest, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequest_To_v1alpha1_CredentialRequest(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(in *CredentialRequestCredential, out *pinniped.CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
out.ExpirationTimestamp = in.ExpirationTimestamp
|
|
||||||
out.Token = in.Token
|
|
||||||
out.ClientCertificateData = in.ClientCertificateData
|
|
||||||
out.ClientKeyData = in.ClientKeyData
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(in *CredentialRequestCredential, out *pinniped.CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestCredential_To_pinniped_CredentialRequestCredential(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(in *pinniped.CredentialRequestCredential, out *CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
out.ExpirationTimestamp = in.ExpirationTimestamp
|
|
||||||
out.Token = in.Token
|
|
||||||
out.ClientCertificateData = in.ClientCertificateData
|
|
||||||
out.ClientKeyData = in.ClientKeyData
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(in *pinniped.CredentialRequestCredential, out *CredentialRequestCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestCredential_To_v1alpha1_CredentialRequestCredential(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(in *CredentialRequestList, out *pinniped.CredentialRequestList, s conversion.Scope) error {
|
|
||||||
out.ListMeta = in.ListMeta
|
|
||||||
out.Items = *(*[]pinniped.CredentialRequest)(unsafe.Pointer(&in.Items))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(in *CredentialRequestList, out *pinniped.CredentialRequestList, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestList_To_pinniped_CredentialRequestList(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(in *pinniped.CredentialRequestList, out *CredentialRequestList, s conversion.Scope) error {
|
|
||||||
out.ListMeta = in.ListMeta
|
|
||||||
out.Items = *(*[]CredentialRequest)(unsafe.Pointer(&in.Items))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(in *pinniped.CredentialRequestList, out *CredentialRequestList, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestList_To_v1alpha1_CredentialRequestList(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(in *CredentialRequestSpec, out *pinniped.CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
out.Type = pinniped.CredentialType(in.Type)
|
|
||||||
out.Token = (*pinniped.CredentialRequestTokenCredential)(unsafe.Pointer(in.Token))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(in *CredentialRequestSpec, out *pinniped.CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestSpec_To_pinniped_CredentialRequestSpec(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(in *pinniped.CredentialRequestSpec, out *CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
out.Type = CredentialType(in.Type)
|
|
||||||
out.Token = (*CredentialRequestTokenCredential)(unsafe.Pointer(in.Token))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(in *pinniped.CredentialRequestSpec, out *CredentialRequestSpec, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestSpec_To_v1alpha1_CredentialRequestSpec(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(in *CredentialRequestStatus, out *pinniped.CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
out.Credential = (*pinniped.CredentialRequestCredential)(unsafe.Pointer(in.Credential))
|
|
||||||
out.Message = (*string)(unsafe.Pointer(in.Message))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(in *CredentialRequestStatus, out *pinniped.CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestStatus_To_pinniped_CredentialRequestStatus(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(in *pinniped.CredentialRequestStatus, out *CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
out.Credential = (*CredentialRequestCredential)(unsafe.Pointer(in.Credential))
|
|
||||||
out.Message = (*string)(unsafe.Pointer(in.Message))
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(in *pinniped.CredentialRequestStatus, out *CredentialRequestStatus, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestStatus_To_v1alpha1_CredentialRequestStatus(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(in *CredentialRequestTokenCredential, out *pinniped.CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
out.Value = in.Value
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential is an autogenerated conversion function.
|
|
||||||
func Convert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(in *CredentialRequestTokenCredential, out *pinniped.CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_v1alpha1_CredentialRequestTokenCredential_To_pinniped_CredentialRequestTokenCredential(in, out, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func autoConvert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(in *pinniped.CredentialRequestTokenCredential, out *CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
out.Value = in.Value
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential is an autogenerated conversion function.
|
|
||||||
func Convert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(in *pinniped.CredentialRequestTokenCredential, out *CredentialRequestTokenCredential, s conversion.Scope) error {
|
|
||||||
return autoConvert_pinniped_CredentialRequestTokenCredential_To_v1alpha1_CredentialRequestTokenCredential(in, out, s)
|
|
||||||
}
|
|
@ -1,153 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by deepcopy-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequest) DeepCopyInto(out *CredentialRequest) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
||||||
in.Spec.DeepCopyInto(&out.Spec)
|
|
||||||
in.Status.DeepCopyInto(&out.Status)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequest.
|
|
||||||
func (in *CredentialRequest) DeepCopy() *CredentialRequest {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequest)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequest) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopyInto(out *CredentialRequestCredential) {
|
|
||||||
*out = *in
|
|
||||||
in.ExpirationTimestamp.DeepCopyInto(&out.ExpirationTimestamp)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestCredential.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopy() *CredentialRequestCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestList) DeepCopyInto(out *CredentialRequestList) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
||||||
if in.Items != nil {
|
|
||||||
in, out := &in.Items, &out.Items
|
|
||||||
*out = make([]CredentialRequest, len(*in))
|
|
||||||
for i := range *in {
|
|
||||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestList.
|
|
||||||
func (in *CredentialRequestList) DeepCopy() *CredentialRequestList {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestList)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequestList) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopyInto(out *CredentialRequestSpec) {
|
|
||||||
*out = *in
|
|
||||||
if in.Token != nil {
|
|
||||||
in, out := &in.Token, &out.Token
|
|
||||||
*out = new(CredentialRequestTokenCredential)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestSpec.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopy() *CredentialRequestSpec {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestSpec)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopyInto(out *CredentialRequestStatus) {
|
|
||||||
*out = *in
|
|
||||||
if in.Credential != nil {
|
|
||||||
in, out := &in.Credential, &out.Credential
|
|
||||||
*out = new(CredentialRequestCredential)
|
|
||||||
(*in).DeepCopyInto(*out)
|
|
||||||
}
|
|
||||||
if in.Message != nil {
|
|
||||||
in, out := &in.Message, &out.Message
|
|
||||||
*out = new(string)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestStatus.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopy() *CredentialRequestStatus {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestStatus)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopyInto(out *CredentialRequestTokenCredential) {
|
|
||||||
*out = *in
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestTokenCredential.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopy() *CredentialRequestTokenCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestTokenCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by defaulter-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
// RegisterDefaults adds defaulters functions to the given scheme.
|
|
||||||
// Public to allow building arbitrary schemes.
|
|
||||||
// All generated defaulters are covering - they call all nested defaulters.
|
|
||||||
func RegisterDefaults(scheme *runtime.Scheme) error {
|
|
||||||
return nil
|
|
||||||
}
|
|
153
generated/1.19/apis/pinniped/zz_generated.deepcopy.go
generated
153
generated/1.19/apis/pinniped/zz_generated.deepcopy.go
generated
@ -1,153 +0,0 @@
|
|||||||
// +build !ignore_autogenerated
|
|
||||||
|
|
||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by deepcopy-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package pinniped
|
|
||||||
|
|
||||||
import (
|
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequest) DeepCopyInto(out *CredentialRequest) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
||||||
in.Spec.DeepCopyInto(&out.Spec)
|
|
||||||
in.Status.DeepCopyInto(&out.Status)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequest.
|
|
||||||
func (in *CredentialRequest) DeepCopy() *CredentialRequest {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequest)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequest) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopyInto(out *CredentialRequestCredential) {
|
|
||||||
*out = *in
|
|
||||||
in.ExpirationTimestamp.DeepCopyInto(&out.ExpirationTimestamp)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestCredential.
|
|
||||||
func (in *CredentialRequestCredential) DeepCopy() *CredentialRequestCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestList) DeepCopyInto(out *CredentialRequestList) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
|
||||||
if in.Items != nil {
|
|
||||||
in, out := &in.Items, &out.Items
|
|
||||||
*out = make([]CredentialRequest, len(*in))
|
|
||||||
for i := range *in {
|
|
||||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestList.
|
|
||||||
func (in *CredentialRequestList) DeepCopy() *CredentialRequestList {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestList)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *CredentialRequestList) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopyInto(out *CredentialRequestSpec) {
|
|
||||||
*out = *in
|
|
||||||
if in.Token != nil {
|
|
||||||
in, out := &in.Token, &out.Token
|
|
||||||
*out = new(CredentialRequestTokenCredential)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestSpec.
|
|
||||||
func (in *CredentialRequestSpec) DeepCopy() *CredentialRequestSpec {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestSpec)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopyInto(out *CredentialRequestStatus) {
|
|
||||||
*out = *in
|
|
||||||
if in.Credential != nil {
|
|
||||||
in, out := &in.Credential, &out.Credential
|
|
||||||
*out = new(CredentialRequestCredential)
|
|
||||||
(*in).DeepCopyInto(*out)
|
|
||||||
}
|
|
||||||
if in.Message != nil {
|
|
||||||
in, out := &in.Message, &out.Message
|
|
||||||
*out = new(string)
|
|
||||||
**out = **in
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestStatus.
|
|
||||||
func (in *CredentialRequestStatus) DeepCopy() *CredentialRequestStatus {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestStatus)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopyInto(out *CredentialRequestTokenCredential) {
|
|
||||||
*out = *in
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialRequestTokenCredential.
|
|
||||||
func (in *CredentialRequestTokenCredential) DeepCopy() *CredentialRequestTokenCredential {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(CredentialRequestTokenCredential)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
@ -11,7 +11,6 @@ import (
|
|||||||
configv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/config/v1alpha1"
|
configv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1"
|
|
||||||
discovery "k8s.io/client-go/discovery"
|
discovery "k8s.io/client-go/discovery"
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
||||||
@ -22,17 +21,15 @@ type Interface interface {
|
|||||||
ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface
|
ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface
|
||||||
IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface
|
IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface
|
||||||
LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface
|
LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface
|
||||||
PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clientset contains the clients for groups. Each group has exactly one
|
// Clientset contains the clients for groups. Each group has exactly one
|
||||||
// version included in a Clientset.
|
// version included in a Clientset.
|
||||||
type Clientset struct {
|
type Clientset struct {
|
||||||
*discovery.DiscoveryClient
|
*discovery.DiscoveryClient
|
||||||
configV1alpha1 *configv1alpha1.ConfigV1alpha1Client
|
configV1alpha1 *configv1alpha1.ConfigV1alpha1Client
|
||||||
iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client
|
iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client
|
||||||
loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client
|
loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client
|
||||||
pinnipedV1alpha1 *pinnipedv1alpha1.PinnipedV1alpha1Client
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConfigV1alpha1 retrieves the ConfigV1alpha1Client
|
// ConfigV1alpha1 retrieves the ConfigV1alpha1Client
|
||||||
@ -50,11 +47,6 @@ func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface {
|
|||||||
return c.loginV1alpha1
|
return c.loginV1alpha1
|
||||||
}
|
}
|
||||||
|
|
||||||
// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client
|
|
||||||
func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface {
|
|
||||||
return c.pinnipedV1alpha1
|
|
||||||
}
|
|
||||||
|
|
||||||
// Discovery retrieves the DiscoveryClient
|
// Discovery retrieves the DiscoveryClient
|
||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||||
if c == nil {
|
if c == nil {
|
||||||
@ -88,10 +80,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
cs.pinnipedV1alpha1, err = pinnipedv1alpha1.NewForConfig(&configShallowCopy)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -107,7 +95,6 @@ func NewForConfigOrDie(c *rest.Config) *Clientset {
|
|||||||
cs.configV1alpha1 = configv1alpha1.NewForConfigOrDie(c)
|
cs.configV1alpha1 = configv1alpha1.NewForConfigOrDie(c)
|
||||||
cs.iDPV1alpha1 = idpv1alpha1.NewForConfigOrDie(c)
|
cs.iDPV1alpha1 = idpv1alpha1.NewForConfigOrDie(c)
|
||||||
cs.loginV1alpha1 = loginv1alpha1.NewForConfigOrDie(c)
|
cs.loginV1alpha1 = loginv1alpha1.NewForConfigOrDie(c)
|
||||||
cs.pinnipedV1alpha1 = pinnipedv1alpha1.NewForConfigOrDie(c)
|
|
||||||
|
|
||||||
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
||||||
return &cs
|
return &cs
|
||||||
@ -119,7 +106,6 @@ func New(c rest.Interface) *Clientset {
|
|||||||
cs.configV1alpha1 = configv1alpha1.New(c)
|
cs.configV1alpha1 = configv1alpha1.New(c)
|
||||||
cs.iDPV1alpha1 = idpv1alpha1.New(c)
|
cs.iDPV1alpha1 = idpv1alpha1.New(c)
|
||||||
cs.loginV1alpha1 = loginv1alpha1.New(c)
|
cs.loginV1alpha1 = loginv1alpha1.New(c)
|
||||||
cs.pinnipedV1alpha1 = pinnipedv1alpha1.New(c)
|
|
||||||
|
|
||||||
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||||
return &cs
|
return &cs
|
||||||
|
@ -13,8 +13,6 @@ import (
|
|||||||
fakeidpv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake"
|
fakeidpv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/login/v1alpha1"
|
||||||
fakeloginv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake"
|
fakeloginv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1"
|
|
||||||
fakepinnipedv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
"k8s.io/apimachinery/pkg/watch"
|
"k8s.io/apimachinery/pkg/watch"
|
||||||
"k8s.io/client-go/discovery"
|
"k8s.io/client-go/discovery"
|
||||||
@ -83,8 +81,3 @@ func (c *Clientset) IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface {
|
|||||||
func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface {
|
func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface {
|
||||||
return &fakeloginv1alpha1.FakeLoginV1alpha1{Fake: &c.Fake}
|
return &fakeloginv1alpha1.FakeLoginV1alpha1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client
|
|
||||||
func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface {
|
|
||||||
return &fakepinnipedv1alpha1.FakePinnipedV1alpha1{Fake: &c.Fake}
|
|
||||||
}
|
|
||||||
|
@ -9,7 +9,6 @@ import (
|
|||||||
configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1"
|
configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.19/apis/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
@ -24,7 +23,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{
|
|||||||
configv1alpha1.AddToScheme,
|
configv1alpha1.AddToScheme,
|
||||||
idpv1alpha1.AddToScheme,
|
idpv1alpha1.AddToScheme,
|
||||||
loginv1alpha1.AddToScheme,
|
loginv1alpha1.AddToScheme,
|
||||||
pinnipedv1alpha1.AddToScheme,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||||
|
@ -9,7 +9,6 @@ import (
|
|||||||
configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1"
|
configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.19/apis/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
@ -24,7 +23,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{
|
|||||||
configv1alpha1.AddToScheme,
|
configv1alpha1.AddToScheme,
|
||||||
idpv1alpha1.AddToScheme,
|
idpv1alpha1.AddToScheme,
|
||||||
loginv1alpha1.AddToScheme,
|
loginv1alpha1.AddToScheme,
|
||||||
pinnipedv1alpha1.AddToScheme,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||||
|
@ -1,171 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
"time"
|
|
||||||
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.19/apis/pinniped/v1alpha1"
|
|
||||||
scheme "go.pinniped.dev/generated/1.19/client/clientset/versioned/scheme"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
|
||||||
rest "k8s.io/client-go/rest"
|
|
||||||
)
|
|
||||||
|
|
||||||
// CredentialRequestsGetter has a method to return a CredentialRequestInterface.
|
|
||||||
// A group's client should implement this interface.
|
|
||||||
type CredentialRequestsGetter interface {
|
|
||||||
CredentialRequests() CredentialRequestInterface
|
|
||||||
}
|
|
||||||
|
|
||||||
// CredentialRequestInterface has methods to work with CredentialRequest resources.
|
|
||||||
type CredentialRequestInterface interface {
|
|
||||||
Create(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.CreateOptions) (*v1alpha1.CredentialRequest, error)
|
|
||||||
Update(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (*v1alpha1.CredentialRequest, error)
|
|
||||||
UpdateStatus(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (*v1alpha1.CredentialRequest, error)
|
|
||||||
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
|
|
||||||
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
|
|
||||||
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.CredentialRequest, error)
|
|
||||||
List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.CredentialRequestList, error)
|
|
||||||
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
|
|
||||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.CredentialRequest, err error)
|
|
||||||
CredentialRequestExpansion
|
|
||||||
}
|
|
||||||
|
|
||||||
// credentialRequests implements CredentialRequestInterface
|
|
||||||
type credentialRequests struct {
|
|
||||||
client rest.Interface
|
|
||||||
}
|
|
||||||
|
|
||||||
// newCredentialRequests returns a CredentialRequests
|
|
||||||
func newCredentialRequests(c *PinnipedV1alpha1Client) *credentialRequests {
|
|
||||||
return &credentialRequests{
|
|
||||||
client: c.RESTClient(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get takes name of the credentialRequest, and returns the corresponding credentialRequest object, and an error if there is any.
|
|
||||||
func (c *credentialRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(name).
|
|
||||||
VersionedParams(&options, scheme.ParameterCodec).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// List takes label and field selectors, and returns the list of CredentialRequests that match those selectors.
|
|
||||||
func (c *credentialRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.CredentialRequestList, err error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
result = &v1alpha1.CredentialRequestList{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Watch returns a watch.Interface that watches the requested credentialRequests.
|
|
||||||
func (c *credentialRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
opts.Watch = true
|
|
||||||
return c.client.Get().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Watch(ctx)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create takes the representation of a credentialRequest and creates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *credentialRequests) Create(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.CreateOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Post().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(credentialRequest).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update takes the representation of a credentialRequest and updates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *credentialRequests) Update(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(credentialRequest.Name).
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(credentialRequest).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateStatus was generated because the type contains a Status member.
|
|
||||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
|
||||||
func (c *credentialRequests) UpdateStatus(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(credentialRequest.Name).
|
|
||||||
SubResource("status").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(credentialRequest).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete takes name of the credentialRequest and deletes it. Returns an error if one occurs.
|
|
||||||
func (c *credentialRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
|
||||||
return c.client.Delete().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(name).
|
|
||||||
Body(&opts).
|
|
||||||
Do(ctx).
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteCollection deletes a collection of objects.
|
|
||||||
func (c *credentialRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
|
||||||
var timeout time.Duration
|
|
||||||
if listOpts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
return c.client.Delete().
|
|
||||||
Resource("credentialrequests").
|
|
||||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Body(&opts).
|
|
||||||
Do(ctx).
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Patch applies the patch and returns the patched credentialRequest.
|
|
||||||
func (c *credentialRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
result = &v1alpha1.CredentialRequest{}
|
|
||||||
err = c.client.Patch(pt).
|
|
||||||
Resource("credentialrequests").
|
|
||||||
Name(name).
|
|
||||||
SubResource(subresources...).
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(data).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
// This package has the automatically generated typed clients.
|
|
||||||
package v1alpha1
|
|
@ -1,7 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
// Package fake has the automatically generated clients.
|
|
||||||
package fake
|
|
@ -1,120 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package fake
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.19/apis/pinniped/v1alpha1"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
labels "k8s.io/apimachinery/pkg/labels"
|
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
|
||||||
watch "k8s.io/apimachinery/pkg/watch"
|
|
||||||
testing "k8s.io/client-go/testing"
|
|
||||||
)
|
|
||||||
|
|
||||||
// FakeCredentialRequests implements CredentialRequestInterface
|
|
||||||
type FakeCredentialRequests struct {
|
|
||||||
Fake *FakePinnipedV1alpha1
|
|
||||||
}
|
|
||||||
|
|
||||||
var credentialrequestsResource = schema.GroupVersionResource{Group: "pinniped.dev", Version: "v1alpha1", Resource: "credentialrequests"}
|
|
||||||
|
|
||||||
var credentialrequestsKind = schema.GroupVersionKind{Group: "pinniped.dev", Version: "v1alpha1", Kind: "CredentialRequest"}
|
|
||||||
|
|
||||||
// Get takes name of the credentialRequest, and returns the corresponding credentialRequest object, and an error if there is any.
|
|
||||||
func (c *FakeCredentialRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootGetAction(credentialrequestsResource, name), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// List takes label and field selectors, and returns the list of CredentialRequests that match those selectors.
|
|
||||||
func (c *FakeCredentialRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.CredentialRequestList, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootListAction(credentialrequestsResource, credentialrequestsKind, opts), &v1alpha1.CredentialRequestList{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
|
||||||
if label == nil {
|
|
||||||
label = labels.Everything()
|
|
||||||
}
|
|
||||||
list := &v1alpha1.CredentialRequestList{ListMeta: obj.(*v1alpha1.CredentialRequestList).ListMeta}
|
|
||||||
for _, item := range obj.(*v1alpha1.CredentialRequestList).Items {
|
|
||||||
if label.Matches(labels.Set(item.Labels)) {
|
|
||||||
list.Items = append(list.Items, item)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return list, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Watch returns a watch.Interface that watches the requested credentialRequests.
|
|
||||||
func (c *FakeCredentialRequests) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
|
||||||
return c.Fake.
|
|
||||||
InvokesWatch(testing.NewRootWatchAction(credentialrequestsResource, opts))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create takes the representation of a credentialRequest and creates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *FakeCredentialRequests) Create(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.CreateOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootCreateAction(credentialrequestsResource, credentialRequest), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update takes the representation of a credentialRequest and updates it. Returns the server's representation of the credentialRequest, and an error, if there is any.
|
|
||||||
func (c *FakeCredentialRequests) Update(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootUpdateAction(credentialrequestsResource, credentialRequest), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateStatus was generated because the type contains a Status member.
|
|
||||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
|
||||||
func (c *FakeCredentialRequests) UpdateStatus(ctx context.Context, credentialRequest *v1alpha1.CredentialRequest, opts v1.UpdateOptions) (*v1alpha1.CredentialRequest, error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootUpdateSubresourceAction(credentialrequestsResource, "status", credentialRequest), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete takes name of the credentialRequest and deletes it. Returns an error if one occurs.
|
|
||||||
func (c *FakeCredentialRequests) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
|
||||||
_, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootDeleteAction(credentialrequestsResource, name), &v1alpha1.CredentialRequest{})
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteCollection deletes a collection of objects.
|
|
||||||
func (c *FakeCredentialRequests) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
|
||||||
action := testing.NewRootDeleteCollectionAction(credentialrequestsResource, listOpts)
|
|
||||||
|
|
||||||
_, err := c.Fake.Invokes(action, &v1alpha1.CredentialRequestList{})
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Patch applies the patch and returns the patched credentialRequest.
|
|
||||||
func (c *FakeCredentialRequests) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.CredentialRequest, err error) {
|
|
||||||
obj, err := c.Fake.
|
|
||||||
Invokes(testing.NewRootPatchSubresourceAction(credentialrequestsResource, name, pt, data, subresources...), &v1alpha1.CredentialRequest{})
|
|
||||||
if obj == nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return obj.(*v1alpha1.CredentialRequest), err
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package fake
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1"
|
|
||||||
rest "k8s.io/client-go/rest"
|
|
||||||
testing "k8s.io/client-go/testing"
|
|
||||||
)
|
|
||||||
|
|
||||||
type FakePinnipedV1alpha1 struct {
|
|
||||||
*testing.Fake
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *FakePinnipedV1alpha1) CredentialRequests() v1alpha1.CredentialRequestInterface {
|
|
||||||
return &FakeCredentialRequests{c}
|
|
||||||
}
|
|
||||||
|
|
||||||
// RESTClient returns a RESTClient that is used to communicate
|
|
||||||
// with API server by this client implementation.
|
|
||||||
func (c *FakePinnipedV1alpha1) RESTClient() rest.Interface {
|
|
||||||
var ret *rest.RESTClient
|
|
||||||
return ret
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
type CredentialRequestExpansion interface{}
|
|
@ -1,76 +0,0 @@
|
|||||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// Code generated by client-gen. DO NOT EDIT.
|
|
||||||
|
|
||||||
package v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1alpha1 "go.pinniped.dev/generated/1.19/apis/pinniped/v1alpha1"
|
|
||||||
"go.pinniped.dev/generated/1.19/client/clientset/versioned/scheme"
|
|
||||||
rest "k8s.io/client-go/rest"
|
|
||||||
)
|
|
||||||
|
|
||||||
type PinnipedV1alpha1Interface interface {
|
|
||||||
RESTClient() rest.Interface
|
|
||||||
CredentialRequestsGetter
|
|
||||||
}
|
|
||||||
|
|
||||||
// PinnipedV1alpha1Client is used to interact with features provided by the pinniped.dev group.
|
|
||||||
type PinnipedV1alpha1Client struct {
|
|
||||||
restClient rest.Interface
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *PinnipedV1alpha1Client) CredentialRequests() CredentialRequestInterface {
|
|
||||||
return newCredentialRequests(c)
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewForConfig creates a new PinnipedV1alpha1Client for the given config.
|
|
||||||
func NewForConfig(c *rest.Config) (*PinnipedV1alpha1Client, error) {
|
|
||||||
config := *c
|
|
||||||
if err := setConfigDefaults(&config); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
client, err := rest.RESTClientFor(&config)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return &PinnipedV1alpha1Client{client}, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewForConfigOrDie creates a new PinnipedV1alpha1Client for the given config and
|
|
||||||
// panics if there is an error in the config.
|
|
||||||
func NewForConfigOrDie(c *rest.Config) *PinnipedV1alpha1Client {
|
|
||||||
client, err := NewForConfig(c)
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
return client
|
|
||||||
}
|
|
||||||
|
|
||||||
// New creates a new PinnipedV1alpha1Client for the given RESTClient.
|
|
||||||
func New(c rest.Interface) *PinnipedV1alpha1Client {
|
|
||||||
return &PinnipedV1alpha1Client{c}
|
|
||||||
}
|
|
||||||
|
|
||||||
func setConfigDefaults(config *rest.Config) error {
|
|
||||||
gv := v1alpha1.SchemeGroupVersion
|
|
||||||
config.GroupVersion = &gv
|
|
||||||
config.APIPath = "/apis"
|
|
||||||
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
|
|
||||||
|
|
||||||
if config.UserAgent == "" {
|
|
||||||
config.UserAgent = rest.DefaultKubernetesUserAgent()
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// RESTClient returns a RESTClient that is used to communicate
|
|
||||||
// with API server by this client implementation.
|
|
||||||
func (c *PinnipedV1alpha1Client) RESTClient() rest.Interface {
|
|
||||||
if c == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return c.restClient
|
|
||||||
}
|
|
@ -15,7 +15,6 @@ import (
|
|||||||
idp "go.pinniped.dev/generated/1.19/client/informers/externalversions/idp"
|
idp "go.pinniped.dev/generated/1.19/client/informers/externalversions/idp"
|
||||||
internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces"
|
internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces"
|
||||||
login "go.pinniped.dev/generated/1.19/client/informers/externalversions/login"
|
login "go.pinniped.dev/generated/1.19/client/informers/externalversions/login"
|
||||||
pinniped "go.pinniped.dev/generated/1.19/client/informers/externalversions/pinniped"
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
@ -165,7 +164,6 @@ type SharedInformerFactory interface {
|
|||||||
Config() config.Interface
|
Config() config.Interface
|
||||||
IDP() idp.Interface
|
IDP() idp.Interface
|
||||||
Login() login.Interface
|
Login() login.Interface
|
||||||
Pinniped() pinniped.Interface
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *sharedInformerFactory) Config() config.Interface {
|
func (f *sharedInformerFactory) Config() config.Interface {
|
||||||
@ -179,7 +177,3 @@ func (f *sharedInformerFactory) IDP() idp.Interface {
|
|||||||
func (f *sharedInformerFactory) Login() login.Interface {
|
func (f *sharedInformerFactory) Login() login.Interface {
|
||||||
return login.New(f, f.namespace, f.tweakListOptions)
|
return login.New(f, f.namespace, f.tweakListOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *sharedInformerFactory) Pinniped() pinniped.Interface {
|
|
||||||
return pinniped.New(f, f.namespace, f.tweakListOptions)
|
|
||||||
}
|
|
||||||
|
@ -11,7 +11,6 @@ import (
|
|||||||
v1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1"
|
v1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1"
|
||||||
idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1"
|
idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1"
|
||||||
loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1"
|
loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1"
|
||||||
pinnipedv1alpha1 "go.pinniped.dev/generated/1.19/apis/pinniped/v1alpha1"
|
|
||||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
cache "k8s.io/client-go/tools/cache"
|
cache "k8s.io/client-go/tools/cache"
|
||||||
)
|
)
|
||||||
@ -54,10 +53,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
|
|||||||
case loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests"):
|
case loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests"):
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Login().V1alpha1().TokenCredentialRequests().Informer()}, nil
|
return &genericInformer{resource: resource.GroupResource(), informer: f.Login().V1alpha1().TokenCredentialRequests().Informer()}, nil
|
||||||
|
|
||||||
// Group=pinniped.dev, Version=v1alpha1
|
|
||||||
case pinnipedv1alpha1.SchemeGroupVersion.WithResource("credentialrequests"):
|
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Pinniped().V1alpha1().CredentialRequests().Informer()}, nil
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil, fmt.Errorf("no informer found for %v", resource)
|
return nil, fmt.Errorf("no informer found for %v", resource)
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user