diff --git a/.golangci.yaml b/.golangci.yaml index 82a52bd5..ec1e153c 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -67,4 +67,4 @@ linters-settings: Copyright 2020 the Pinniped contributors. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 goimports: - local-prefixes: github.com/vmware-tanzu + local-prefixes: go.pinniped.dev diff --git a/apis/pinniped/doc.go.tmpl b/apis/config/doc.go.tmpl similarity index 51% rename from apis/pinniped/doc.go.tmpl rename to apis/config/doc.go.tmpl index fea6e743..4e7aa82f 100644 --- a/apis/pinniped/doc.go.tmpl +++ b/apis/config/doc.go.tmpl @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 // +k8s:deepcopy-gen=package -// +groupName=pinniped.dev +// +groupName=config.pinniped.dev -// Package pinniped is the internal version of the Pinniped aggregated API. -package pinniped +// Package config is the internal version of the Pinniped configuration API. +package config diff --git a/generated/1.18/apis/pinniped/v1alpha1/conversion.go b/apis/config/types.go.tmpl similarity index 86% rename from generated/1.18/apis/pinniped/v1alpha1/conversion.go rename to apis/config/types.go.tmpl index 226f6135..5a44b975 100644 --- a/generated/1.18/apis/pinniped/v1alpha1/conversion.go +++ b/apis/config/types.go.tmpl @@ -1,4 +1,4 @@ // Copyright 2020 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -package v1alpha1 +package config diff --git a/apis/crdpinniped/v1alpha1/conversion.go.tmpl b/apis/config/v1alpha1/conversion.go.tmpl similarity index 100% rename from apis/crdpinniped/v1alpha1/conversion.go.tmpl rename to apis/config/v1alpha1/conversion.go.tmpl diff --git a/apis/crdpinniped/v1alpha1/defaults.go.tmpl b/apis/config/v1alpha1/defaults.go.tmpl similarity index 100% rename from apis/crdpinniped/v1alpha1/defaults.go.tmpl rename to apis/config/v1alpha1/defaults.go.tmpl diff --git a/apis/pinniped/v1alpha1/doc.go.tmpl b/apis/config/v1alpha1/doc.go.tmpl similarity index 52% rename from apis/pinniped/v1alpha1/doc.go.tmpl rename to apis/config/v1alpha1/doc.go.tmpl index aa647dd5..b0169499 100644 --- a/apis/pinniped/v1alpha1/doc.go.tmpl +++ b/apis/config/v1alpha1/doc.go.tmpl @@ -3,9 +3,9 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/GENERATED_PKG/apis/pinniped +// +k8s:conversion-gen=go.pinniped.dev/GENERATED_PKG/apis/config // +k8s:defaulter-gen=TypeMeta -// +groupName=pinniped.dev +// +groupName=config.pinniped.dev -// Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API. +// Package v1alpha1 is the v1alpha1 version of the Pinniped configuration API. package v1alpha1 diff --git a/apis/crdpinniped/v1alpha1/register.go.tmpl b/apis/config/v1alpha1/register.go.tmpl similarity index 97% rename from apis/crdpinniped/v1alpha1/register.go.tmpl rename to apis/config/v1alpha1/register.go.tmpl index fbc08a50..18936d7e 100644 --- a/apis/crdpinniped/v1alpha1/register.go.tmpl +++ b/apis/config/v1alpha1/register.go.tmpl @@ -9,7 +9,7 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" ) -const GroupName = "crd.pinniped.dev" +const GroupName = "config.pinniped.dev" // SchemeGroupVersion is group version used to register these objects. var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} diff --git a/apis/crdpinniped/v1alpha1/types.go.tmpl b/apis/config/v1alpha1/types.go.tmpl similarity index 100% rename from apis/crdpinniped/v1alpha1/types.go.tmpl rename to apis/config/v1alpha1/types.go.tmpl diff --git a/apis/crdpinniped/doc.go.tmpl b/apis/crdpinniped/doc.go.tmpl deleted file mode 100644 index f896e3cc..00000000 --- a/apis/crdpinniped/doc.go.tmpl +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -// +k8s:deepcopy-gen=package -// +groupName=crd.pinniped.dev - -// Package crdpinniped is the internal version of the Pinniped CRD-based API. -package crdpinniped diff --git a/apis/crdpinniped/types.go.tmpl b/apis/crdpinniped/types.go.tmpl deleted file mode 100644 index 0cabbe15..00000000 --- a/apis/crdpinniped/types.go.tmpl +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -package crdpinniped diff --git a/apis/crdpinniped/v1alpha1/doc.go.tmpl b/apis/crdpinniped/v1alpha1/doc.go.tmpl deleted file mode 100644 index 900ddff5..00000000 --- a/apis/crdpinniped/v1alpha1/doc.go.tmpl +++ /dev/null @@ -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=github.com/vmware-tanzu/pinniped/GENERATED_PKG/apis/crdpinniped -// +k8s:defaulter-gen=TypeMeta -// +groupName=crd.pinniped.dev - -// Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. -package v1alpha1 diff --git a/apis/idp/v1alpha1/doc.go.tmpl b/apis/idp/v1alpha1/doc.go.tmpl index 2aede2ff..1837041f 100644 --- a/apis/idp/v1alpha1/doc.go.tmpl +++ b/apis/idp/v1alpha1/doc.go.tmpl @@ -3,7 +3,7 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/GENERATED_PKG/apis/idp +// +k8s:conversion-gen=go.pinniped.dev/GENERATED_PKG/apis/idp // +k8s:defaulter-gen=TypeMeta // +groupName=idp.pinniped.dev // +groupGoName=IDP diff --git a/apis/login/v1alpha1/doc.go.tmpl b/apis/login/v1alpha1/doc.go.tmpl index 607ef2ee..62faaf4b 100644 --- a/apis/login/v1alpha1/doc.go.tmpl +++ b/apis/login/v1alpha1/doc.go.tmpl @@ -3,7 +3,7 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/GENERATED_PKG/apis/login +// +k8s:conversion-gen=go.pinniped.dev/GENERATED_PKG/apis/login // +k8s:defaulter-gen=TypeMeta // +groupName=login.pinniped.dev diff --git a/apis/pinniped/register.go.tmpl b/apis/pinniped/register.go.tmpl deleted file mode 100644 index 73e69e17..00000000 --- a/apis/pinniped/register.go.tmpl +++ /dev/null @@ -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 -} diff --git a/apis/pinniped/types.go.tmpl b/apis/pinniped/types.go.tmpl deleted file mode 100644 index 8f46e2a4..00000000 --- a/apis/pinniped/types.go.tmpl +++ /dev/null @@ -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 -} diff --git a/apis/pinniped/v1alpha1/defaults.go.tmpl b/apis/pinniped/v1alpha1/defaults.go.tmpl deleted file mode 100644 index 830aa010..00000000 --- a/apis/pinniped/v1alpha1/defaults.go.tmpl +++ /dev/null @@ -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) -} diff --git a/apis/pinniped/v1alpha1/register.go.tmpl b/apis/pinniped/v1alpha1/register.go.tmpl deleted file mode 100644 index 04a72c6f..00000000 --- a/apis/pinniped/v1alpha1/register.go.tmpl +++ /dev/null @@ -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() -} diff --git a/apis/pinniped/v1alpha1/types.go.tmpl b/apis/pinniped/v1alpha1/types.go.tmpl deleted file mode 100644 index ac077576..00000000 --- a/apis/pinniped/v1alpha1/types.go.tmpl +++ /dev/null @@ -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"` -} diff --git a/cmd/local-user-authenticator/main.go b/cmd/local-user-authenticator/main.go index f8e6d24f..9513136a 100644 --- a/cmd/local-user-authenticator/main.go +++ b/cmd/local-user-authenticator/main.go @@ -34,10 +34,10 @@ import ( restclient "k8s.io/client-go/rest" "k8s.io/klog/v2" - "github.com/vmware-tanzu/pinniped/internal/constable" - "github.com/vmware-tanzu/pinniped/internal/controller/apicerts" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/provider" + "go.pinniped.dev/internal/constable" + "go.pinniped.dev/internal/controller/apicerts" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/provider" ) const ( diff --git a/cmd/local-user-authenticator/main_test.go b/cmd/local-user-authenticator/main_test.go index ec9e7d5a..989292f1 100644 --- a/cmd/local-user-authenticator/main_test.go +++ b/cmd/local-user-authenticator/main_test.go @@ -32,8 +32,8 @@ import ( "k8s.io/client-go/kubernetes" kubernetesfake "k8s.io/client-go/kubernetes/fake" - "github.com/vmware-tanzu/pinniped/internal/certauthority" - "github.com/vmware-tanzu/pinniped/internal/provider" + "go.pinniped.dev/internal/certauthority" + "go.pinniped.dev/internal/provider" ) func TestWebhook(t *testing.T) { diff --git a/cmd/pinniped-server/main.go b/cmd/pinniped-server/main.go index 5de42684..5741a696 100644 --- a/cmd/pinniped-server/main.go +++ b/cmd/pinniped-server/main.go @@ -12,7 +12,7 @@ import ( "k8s.io/component-base/logs" "k8s.io/klog/v2" - "github.com/vmware-tanzu/pinniped/internal/server" + "go.pinniped.dev/internal/server" ) func main() { diff --git a/cmd/pinniped/cmd/exchange_credential.go b/cmd/pinniped/cmd/exchange_credential.go index ea2e756f..33e2ddb1 100644 --- a/cmd/pinniped/cmd/exchange_credential.go +++ b/cmd/pinniped/cmd/exchange_credential.go @@ -14,9 +14,9 @@ import ( "github.com/spf13/cobra" clientauthenticationv1beta1 "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1" - "github.com/vmware-tanzu/pinniped/internal/client" - "github.com/vmware-tanzu/pinniped/internal/constable" - "github.com/vmware-tanzu/pinniped/internal/here" + "go.pinniped.dev/internal/client" + "go.pinniped.dev/internal/constable" + "go.pinniped.dev/internal/here" ) //nolint: gochecknoinits diff --git a/cmd/pinniped/cmd/exchange_credential_test.go b/cmd/pinniped/cmd/exchange_credential_test.go index 3f07dd66..eb7478f0 100644 --- a/cmd/pinniped/cmd/exchange_credential_test.go +++ b/cmd/pinniped/cmd/exchange_credential_test.go @@ -17,8 +17,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" clientauthenticationv1beta1 "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1" - "github.com/vmware-tanzu/pinniped/internal/here" - "github.com/vmware-tanzu/pinniped/internal/testutil" + "go.pinniped.dev/internal/here" + "go.pinniped.dev/internal/testutil" ) var ( diff --git a/cmd/pinniped/cmd/get_kubeconfig.go b/cmd/pinniped/cmd/get_kubeconfig.go index b4674f29..2acb5282 100644 --- a/cmd/pinniped/cmd/get_kubeconfig.go +++ b/cmd/pinniped/cmd/get_kubeconfig.go @@ -21,10 +21,10 @@ import ( clientcmdapi "k8s.io/client-go/tools/clientcmd/api" v1 "k8s.io/client-go/tools/clientcmd/api/v1" - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - pinnipedclientset "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - "github.com/vmware-tanzu/pinniped/internal/constable" - "github.com/vmware-tanzu/pinniped/internal/here" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + pinnipedclientset "go.pinniped.dev/generated/1.19/client/clientset/versioned" + "go.pinniped.dev/internal/constable" + "go.pinniped.dev/internal/here" ) const ( @@ -209,7 +209,7 @@ func getKubeConfig( return nil } -func issueWarningForNonMatchingServerOrCA(v1Cluster v1.Cluster, credentialIssuerConfig *v1alpha1.CredentialIssuerConfig, warningsWriter io.Writer) error { +func issueWarningForNonMatchingServerOrCA(v1Cluster v1.Cluster, credentialIssuerConfig *configv1alpha1.CredentialIssuerConfig, warningsWriter io.Writer) error { credentialIssuerConfigCA, err := base64.StdEncoding.DecodeString(credentialIssuerConfig.Status.KubeConfigInfo.CertificateAuthorityData) if err != nil { return err @@ -224,7 +224,7 @@ func issueWarningForNonMatchingServerOrCA(v1Cluster v1.Cluster, credentialIssuer return nil } -func fetchPinnipedCredentialIssuerConfig(clientConfig clientcmd.ClientConfig, kubeClientCreator func(restConfig *rest.Config) (pinnipedclientset.Interface, error), pinnipedInstallationNamespace string) (*v1alpha1.CredentialIssuerConfig, error) { +func fetchPinnipedCredentialIssuerConfig(clientConfig clientcmd.ClientConfig, kubeClientCreator func(restConfig *rest.Config) (pinnipedclientset.Interface, error), pinnipedInstallationNamespace string) (*configv1alpha1.CredentialIssuerConfig, error) { restConfig, err := clientConfig.ClientConfig() if err != nil { return nil, err @@ -237,7 +237,7 @@ func fetchPinnipedCredentialIssuerConfig(clientConfig clientcmd.ClientConfig, ku ctx, cancelFunc := context.WithTimeout(context.Background(), time.Second*20) defer cancelFunc() - credentialIssuerConfigs, err := clientset.CrdV1alpha1().CredentialIssuerConfigs(pinnipedInstallationNamespace).List(ctx, metav1.ListOptions{}) + credentialIssuerConfigs, err := clientset.ConfigV1alpha1().CredentialIssuerConfigs(pinnipedInstallationNamespace).List(ctx, metav1.ListOptions{}) if err != nil { return nil, err } diff --git a/cmd/pinniped/cmd/get_kubeconfig_test.go b/cmd/pinniped/cmd/get_kubeconfig_test.go index 3096d0e6..817fbd4f 100644 --- a/cmd/pinniped/cmd/get_kubeconfig_test.go +++ b/cmd/pinniped/cmd/get_kubeconfig_test.go @@ -18,10 +18,10 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/client-go/rest" - crdpinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - pinnipedclientset "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - pinnipedfake "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/fake" - "github.com/vmware-tanzu/pinniped/internal/here" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + pinnipedclientset "go.pinniped.dev/generated/1.19/client/clientset/versioned" + pinnipedfake "go.pinniped.dev/generated/1.19/client/clientset/versioned/fake" + "go.pinniped.dev/internal/here" ) var ( @@ -255,18 +255,18 @@ func newCredentialIssuerConfig( namespace, server, certificateAuthorityData string, -) *crdpinnipedv1alpha1.CredentialIssuerConfig { - return &crdpinnipedv1alpha1.CredentialIssuerConfig{ +) *configv1alpha1.CredentialIssuerConfig { + return &configv1alpha1.CredentialIssuerConfig{ TypeMeta: metav1.TypeMeta{ Kind: "CredentialIssuerConfig", - APIVersion: crdpinnipedv1alpha1.SchemeGroupVersion.String(), + APIVersion: configv1alpha1.SchemeGroupVersion.String(), }, ObjectMeta: metav1.ObjectMeta{ Name: name, Namespace: namespace, }, - Status: crdpinnipedv1alpha1.CredentialIssuerConfigStatus{ - KubeConfigInfo: &crdpinnipedv1alpha1.CredentialIssuerConfigKubeConfigInfo{ + Status: configv1alpha1.CredentialIssuerConfigStatus{ + KubeConfigInfo: &configv1alpha1.CredentialIssuerConfigKubeConfigInfo{ Server: server, CertificateAuthorityData: base64.StdEncoding.EncodeToString([]byte(certificateAuthorityData)), }, @@ -343,8 +343,8 @@ func TestGetKubeConfig(t *testing.T) { // update the Server and CertificateAuthorityData to make them match the other kubeconfig context r.NoError(pinnipedClient.Tracker().Update( schema.GroupVersionResource{ - Group: crdpinnipedv1alpha1.GroupName, - Version: crdpinnipedv1alpha1.SchemeGroupVersion.Version, + Group: configv1alpha1.GroupName, + Version: configv1alpha1.SchemeGroupVersion.Version, Resource: "credentialissuerconfigs", }, newCredentialIssuerConfig( @@ -632,16 +632,16 @@ func TestGetKubeConfig(t *testing.T) { when("the CredentialIssuerConfig is found on the cluster with an empty KubeConfigInfo", func() { it.Before(func() { r.NoError(pinnipedClient.Tracker().Add( - &crdpinnipedv1alpha1.CredentialIssuerConfig{ + &configv1alpha1.CredentialIssuerConfig{ TypeMeta: metav1.TypeMeta{ Kind: "CredentialIssuerConfig", - APIVersion: crdpinnipedv1alpha1.SchemeGroupVersion.String(), + APIVersion: configv1alpha1.SchemeGroupVersion.String(), }, ObjectMeta: metav1.ObjectMeta{ Name: "pinniped-config", Namespace: installationNamespace, }, - Status: crdpinnipedv1alpha1.CredentialIssuerConfigStatus{}, + Status: configv1alpha1.CredentialIssuerConfigStatus{}, }, )) }) diff --git a/cmd/pinniped/main.go b/cmd/pinniped/main.go index 268013a7..96213ec8 100644 --- a/cmd/pinniped/main.go +++ b/cmd/pinniped/main.go @@ -3,7 +3,7 @@ package main -import "github.com/vmware-tanzu/pinniped/cmd/pinniped/cmd" +import "go.pinniped.dev/cmd/pinniped/cmd" func main() { cmd.Execute() diff --git a/generated/1.18/crds/crd.pinniped.dev_credentialissuerconfigs.yaml b/deploy/config.pinniped.dev_credentialissuerconfigs.yaml similarity index 97% rename from generated/1.18/crds/crd.pinniped.dev_credentialissuerconfigs.yaml rename to deploy/config.pinniped.dev_credentialissuerconfigs.yaml index e47f8e63..370df951 100644 --- a/generated/1.18/crds/crd.pinniped.dev_credentialissuerconfigs.yaml +++ b/deploy/config.pinniped.dev_credentialissuerconfigs.yaml @@ -6,9 +6,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 creationTimestamp: null - name: credentialissuerconfigs.crd.pinniped.dev + name: credentialissuerconfigs.config.pinniped.dev spec: - group: crd.pinniped.dev + group: config.pinniped.dev names: kind: CredentialIssuerConfig listKind: CredentialIssuerConfigList diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index 4cb37273..fc0b5369 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -165,23 +165,6 @@ spec: --- apiVersion: apiregistration.k8s.io/v1 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: name: v1alpha1.login.pinniped.dev labels: diff --git a/deploy/rbac.yaml b/deploy/rbac.yaml index 2ce9daba..9ef976b3 100644 --- a/deploy/rbac.yaml +++ b/deploy/rbac.yaml @@ -47,7 +47,7 @@ rules: - apiGroups: [""] resources: [secrets] verbs: [create, get, list, patch, update, watch, delete] - - apiGroups: [crd.pinniped.dev, idp.pinniped.dev] + - apiGroups: [config.pinniped.dev, idp.pinniped.dev] resources: ["*"] verbs: [create, get, list, update, watch] --- @@ -101,9 +101,6 @@ kind: ClusterRole metadata: name: #@ data.values.app_name + "-create-token-credential-requests" rules: - - apiGroups: [pinniped.dev] - resources: [credentialrequests] - verbs: [create] - apiGroups: [login.pinniped.dev] resources: [tokencredentialrequests] verbs: [create] diff --git a/generated/1.17/README.adoc b/generated/1.17/README.adoc index fceca299..f9849700 100644 --- a/generated/1.17/README.adoc +++ b/generated/1.17/README.adoc @@ -5,27 +5,26 @@ == API Reference .Packages -- xref:{anchor_prefix}-crd-pinniped-dev-v1alpha1[$$crd.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}-login-pinniped-dev-v1alpha1[$$login.pinniped.dev/v1alpha1$$] -- xref:{anchor_prefix}-pinniped-dev-v1alpha1[$$pinniped.dev/v1alpha1$$] -[id="{anchor_prefix}-crd-pinniped-dev-v1alpha1"] -=== crd.pinniped.dev/v1alpha1 +[id="{anchor_prefix}-config-pinniped-dev-v1alpha1"] +=== config.pinniped.dev/v1alpha1 -Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. +Package v1alpha1 is the v1alpha1 version of the Pinniped configuration API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfig"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfig"] ==== CredentialIssuerConfig .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfiglist[$$CredentialIssuerConfigList$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfiglist[$$CredentialIssuerConfigList$$] **** [cols="25a,75a", options="header"] @@ -33,18 +32,18 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. | 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`. -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$]__ | Status of the credential issuer. +| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$]__ | Status of the credential issuer. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfigkubeconfiginfo"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfigkubeconfiginfo"] ==== CredentialIssuerConfigKubeConfigInfo .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] **** [cols="25a,75a", options="header"] @@ -57,32 +56,32 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfigstatus"] ==== CredentialIssuerConfigStatus Status of a credential issuer. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfig[$$CredentialIssuerConfig$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfig[$$CredentialIssuerConfig$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`strategies`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfigstrategy[$$CredentialIssuerConfigStrategy$$] array__ | List of integration strategies that were attempted by Pinniped. -| *`kubeConfigInfo`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfigkubeconfiginfo[$$CredentialIssuerConfigKubeConfigInfo$$]__ | Information needed to form a valid Pinniped-based kubeconfig using this credential issuer. +| *`strategies`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfigstrategy[$$CredentialIssuerConfigStrategy$$] array__ | List of integration strategies that were attempted by Pinniped. +| *`kubeConfigInfo`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfigkubeconfiginfo[$$CredentialIssuerConfigKubeConfigInfo$$]__ | Information needed to form a valid Pinniped-based kubeconfig using this credential issuer. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfigstrategy"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfigstrategy"] ==== CredentialIssuerConfigStrategy .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-config-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] **** [cols="25a,75a", options="header"] @@ -104,14 +103,14 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped identity provider API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-condition"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-condition"] ==== Condition Condition status of a resource (mirrored from the metav1.Condition type added in Kubernetes 1.19). In a future API version we can switch to using the upstream type. See https://github.com/kubernetes/apimachinery/blob/v0.19.0/pkg/apis/meta/v1/types.go#L1353-L1413. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$] **** [cols="25a,75a", options="header"] @@ -126,14 +125,14 @@ Condition status of a resource (mirrored from the metav1.Condition type added in |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-tlsspec"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-tlsspec"] ==== TLSSpec Configuration for configuring TLS on various identity providers. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$] **** [cols="25a,75a", options="header"] @@ -143,14 +142,14 @@ Configuration for configuring TLS on various identity providers. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-webhookidentityprovider"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-webhookidentityprovider"] ==== WebhookIdentityProvider WebhookIdentityProvider describes the configuration of a Pinniped webhook identity provider. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderlist[$$WebhookIdentityProviderList$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderlist[$$WebhookIdentityProviderList$$] **** [cols="25a,75a", options="header"] @@ -158,45 +157,45 @@ WebhookIdentityProvider describes the configuration of a Pinniped webhook identi | 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}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$]__ | Spec for configuring the identity provider. -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$]__ | Status of the identity provider. +| *`spec`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$]__ | Spec for configuring the identity provider. +| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$]__ | Status of the identity provider. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderspec"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderspec"] ==== WebhookIdentityProviderSpec Spec for configuring a webhook identity provider. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`endpoint`* __string__ | Webhook server endpoint URL. -| *`tls`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-tlsspec[$$TLSSpec$$]__ | TLS configuration. +| *`tls`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-tlsspec[$$TLSSpec$$]__ | TLS configuration. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderstatus"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-webhookidentityproviderstatus"] ==== WebhookIdentityProviderStatus Status of a webhook identity provider. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`conditions`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-idp-v1alpha1-condition[$$Condition$$]__ | Represents the observations of an identity provider's current state. +| *`conditions`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-idp-v1alpha1-condition[$$Condition$$]__ | Represents the observations of an identity provider's current state. |=== @@ -208,14 +207,14 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped login API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-clustercredential"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-clustercredential"] ==== ClusterCredential ClusterCredential is the cluster-specific credential returned on a successful credential request. It contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$] **** [cols="25a,75a", options="header"] @@ -228,14 +227,14 @@ ClusterCredential is the cluster-specific credential returned on a successful cr |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-tokencredentialrequest"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-tokencredentialrequest"] ==== TokenCredentialRequest TokenCredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-tokencredentialrequestlist[$$TokenCredentialRequestList$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-tokencredentialrequestlist[$$TokenCredentialRequestList$$] **** [cols="25a,75a", options="header"] @@ -243,21 +242,21 @@ TokenCredentialRequest submits an IDP-specific credential to Pinniped in exchang | 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}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-tokencredentialrequestspec[$$TokenCredentialRequestSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$]__ | +| *`spec`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-tokencredentialrequestspec[$$TokenCredentialRequestSpec$$]__ | +| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$]__ | |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-tokencredentialrequestspec"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-tokencredentialrequestspec"] ==== TokenCredentialRequestSpec TokenCredentialRequestSpec is the specification of a TokenCredentialRequest, expected on requests to the Pinniped API. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] **** [cols="25a,75a", options="header"] @@ -267,124 +266,21 @@ TokenCredentialRequestSpec is the specification of a TokenCredentialRequest, exp |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-tokencredentialrequeststatus"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-tokencredentialrequeststatus"] ==== TokenCredentialRequestStatus TokenCredentialRequestStatus is the status of a TokenCredentialRequest, returned on responses to the Pinniped API. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`credential`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-login-v1alpha1-clustercredential[$$ClusterCredential$$]__ | A Credential will be returned for a successful credential request. +| *`credential`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-login-v1alpha1-clustercredential[$$ClusterCredential$$]__ | 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}-pinniped-dev-v1alpha1"] -=== pinniped.dev/v1alpha1 - -Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API. - - - -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-pinniped-v1alpha1-credentialrequestspec[$$CredentialRequestSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-pinniped-v1alpha1-credentialrequeststatus[$$CredentialRequestStatus$$]__ | -|=== - - -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$] -**** - -[cols="25a,75a", options="header"] -|=== -| Field | Description -| *`type`* __CredentialType__ | Type of credential. -| *`token`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-pinniped-v1alpha1-credentialrequesttokencredential[$$CredentialRequestTokenCredential$$]__ | Token credential (when Type == TokenCredentialType). -|=== - - -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$] -**** - -[cols="25a,75a", options="header"] -|=== -| Field | Description -| *`credential`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-17-apis-pinniped-v1alpha1-credentialrequesttokencredential"] -==== CredentialRequestTokenCredential - -CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider. - -.Appears In: -**** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-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. -|=== - - diff --git a/generated/1.18/apis/pinniped/doc.go b/generated/1.17/apis/config/doc.go similarity index 51% rename from generated/1.18/apis/pinniped/doc.go rename to generated/1.17/apis/config/doc.go index fea6e743..4e7aa82f 100644 --- a/generated/1.18/apis/pinniped/doc.go +++ b/generated/1.17/apis/config/doc.go @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 // +k8s:deepcopy-gen=package -// +groupName=pinniped.dev +// +groupName=config.pinniped.dev -// Package pinniped is the internal version of the Pinniped aggregated API. -package pinniped +// Package config is the internal version of the Pinniped configuration API. +package config diff --git a/apis/pinniped/v1alpha1/conversion.go.tmpl b/generated/1.17/apis/config/types.go similarity index 86% rename from apis/pinniped/v1alpha1/conversion.go.tmpl rename to generated/1.17/apis/config/types.go index 226f6135..5a44b975 100644 --- a/apis/pinniped/v1alpha1/conversion.go.tmpl +++ b/generated/1.17/apis/config/types.go @@ -1,4 +1,4 @@ // Copyright 2020 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -package v1alpha1 +package config diff --git a/generated/1.17/apis/crdpinniped/v1alpha1/conversion.go b/generated/1.17/apis/config/v1alpha1/conversion.go similarity index 100% rename from generated/1.17/apis/crdpinniped/v1alpha1/conversion.go rename to generated/1.17/apis/config/v1alpha1/conversion.go diff --git a/generated/1.17/apis/crdpinniped/v1alpha1/defaults.go b/generated/1.17/apis/config/v1alpha1/defaults.go similarity index 100% rename from generated/1.17/apis/crdpinniped/v1alpha1/defaults.go rename to generated/1.17/apis/config/v1alpha1/defaults.go diff --git a/generated/1.17/apis/pinniped/v1alpha1/doc.go b/generated/1.17/apis/config/v1alpha1/doc.go similarity index 52% rename from generated/1.17/apis/pinniped/v1alpha1/doc.go rename to generated/1.17/apis/config/v1alpha1/doc.go index 46d11b14..f76687db 100644 --- a/generated/1.17/apis/pinniped/v1alpha1/doc.go +++ b/generated/1.17/apis/config/v1alpha1/doc.go @@ -3,9 +3,9 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped +// +k8s:conversion-gen=go.pinniped.dev/generated/1.17/apis/config // +k8s:defaulter-gen=TypeMeta -// +groupName=pinniped.dev +// +groupName=config.pinniped.dev -// Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API. +// Package v1alpha1 is the v1alpha1 version of the Pinniped configuration API. package v1alpha1 diff --git a/generated/1.19/apis/crdpinniped/v1alpha1/register.go b/generated/1.17/apis/config/v1alpha1/register.go similarity index 97% rename from generated/1.19/apis/crdpinniped/v1alpha1/register.go rename to generated/1.17/apis/config/v1alpha1/register.go index fbc08a50..18936d7e 100644 --- a/generated/1.19/apis/crdpinniped/v1alpha1/register.go +++ b/generated/1.17/apis/config/v1alpha1/register.go @@ -9,7 +9,7 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" ) -const GroupName = "crd.pinniped.dev" +const GroupName = "config.pinniped.dev" // SchemeGroupVersion is group version used to register these objects. var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} diff --git a/generated/1.17/apis/crdpinniped/v1alpha1/types.go b/generated/1.17/apis/config/v1alpha1/types.go similarity index 100% rename from generated/1.17/apis/crdpinniped/v1alpha1/types.go rename to generated/1.17/apis/config/v1alpha1/types.go diff --git a/generated/1.17/apis/crdpinniped/v1alpha1/zz_generated.conversion.go b/generated/1.17/apis/config/v1alpha1/zz_generated.conversion.go similarity index 100% rename from generated/1.17/apis/crdpinniped/v1alpha1/zz_generated.conversion.go rename to generated/1.17/apis/config/v1alpha1/zz_generated.conversion.go diff --git a/generated/1.17/apis/crdpinniped/v1alpha1/zz_generated.deepcopy.go b/generated/1.17/apis/config/v1alpha1/zz_generated.deepcopy.go similarity index 100% rename from generated/1.17/apis/crdpinniped/v1alpha1/zz_generated.deepcopy.go rename to generated/1.17/apis/config/v1alpha1/zz_generated.deepcopy.go diff --git a/generated/1.17/apis/crdpinniped/v1alpha1/zz_generated.defaults.go b/generated/1.17/apis/config/v1alpha1/zz_generated.defaults.go similarity index 100% rename from generated/1.17/apis/crdpinniped/v1alpha1/zz_generated.defaults.go rename to generated/1.17/apis/config/v1alpha1/zz_generated.defaults.go diff --git a/generated/1.18/apis/crdpinniped/zz_generated.deepcopy.go b/generated/1.17/apis/config/zz_generated.deepcopy.go similarity index 90% rename from generated/1.18/apis/crdpinniped/zz_generated.deepcopy.go rename to generated/1.17/apis/config/zz_generated.deepcopy.go index 4c7831c5..eabadefc 100644 --- a/generated/1.18/apis/crdpinniped/zz_generated.deepcopy.go +++ b/generated/1.17/apis/config/zz_generated.deepcopy.go @@ -5,4 +5,4 @@ // Code generated by deepcopy-gen. DO NOT EDIT. -package crdpinniped +package config diff --git a/generated/1.17/apis/crdpinniped/doc.go b/generated/1.17/apis/crdpinniped/doc.go deleted file mode 100644 index f896e3cc..00000000 --- a/generated/1.17/apis/crdpinniped/doc.go +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -// +k8s:deepcopy-gen=package -// +groupName=crd.pinniped.dev - -// Package crdpinniped is the internal version of the Pinniped CRD-based API. -package crdpinniped diff --git a/generated/1.17/apis/crdpinniped/types.go b/generated/1.17/apis/crdpinniped/types.go deleted file mode 100644 index 0cabbe15..00000000 --- a/generated/1.17/apis/crdpinniped/types.go +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -package crdpinniped diff --git a/generated/1.17/apis/crdpinniped/v1alpha1/doc.go b/generated/1.17/apis/crdpinniped/v1alpha1/doc.go deleted file mode 100644 index e0f0461f..00000000 --- a/generated/1.17/apis/crdpinniped/v1alpha1/doc.go +++ /dev/null @@ -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=github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped -// +k8s:defaulter-gen=TypeMeta -// +groupName=crd.pinniped.dev - -// Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. -package v1alpha1 diff --git a/generated/1.17/apis/go.mod b/generated/1.17/apis/go.mod index 75ea015e..dbe3440b 100644 --- a/generated/1.17/apis/go.mod +++ b/generated/1.17/apis/go.mod @@ -1,5 +1,5 @@ // This go.mod file is generated by ./hack/codegen.sh. -module github.com/vmware-tanzu/pinniped/generated/1.17/apis +module go.pinniped.dev/generated/1.17/apis go 1.13 diff --git a/generated/1.17/apis/idp/v1alpha1/doc.go b/generated/1.17/apis/idp/v1alpha1/doc.go index 77bac0f3..915de628 100644 --- a/generated/1.17/apis/idp/v1alpha1/doc.go +++ b/generated/1.17/apis/idp/v1alpha1/doc.go @@ -3,7 +3,7 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp +// +k8s:conversion-gen=go.pinniped.dev/generated/1.17/apis/idp // +k8s:defaulter-gen=TypeMeta // +groupName=idp.pinniped.dev // +groupGoName=IDP diff --git a/generated/1.17/apis/login/v1alpha1/doc.go b/generated/1.17/apis/login/v1alpha1/doc.go index 83a3d61a..98248ffe 100644 --- a/generated/1.17/apis/login/v1alpha1/doc.go +++ b/generated/1.17/apis/login/v1alpha1/doc.go @@ -3,7 +3,7 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/generated/1.17/apis/login +// +k8s:conversion-gen=go.pinniped.dev/generated/1.17/apis/login // +k8s:defaulter-gen=TypeMeta // +groupName=login.pinniped.dev diff --git a/generated/1.17/apis/login/v1alpha1/zz_generated.conversion.go b/generated/1.17/apis/login/v1alpha1/zz_generated.conversion.go index 605e44a0..f8e1b005 100644 --- a/generated/1.17/apis/login/v1alpha1/zz_generated.conversion.go +++ b/generated/1.17/apis/login/v1alpha1/zz_generated.conversion.go @@ -10,7 +10,7 @@ package v1alpha1 import ( unsafe "unsafe" - login "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login" + login "go.pinniped.dev/generated/1.17/apis/login" conversion "k8s.io/apimachinery/pkg/conversion" runtime "k8s.io/apimachinery/pkg/runtime" ) diff --git a/generated/1.17/apis/pinniped/register.go b/generated/1.17/apis/pinniped/register.go deleted file mode 100644 index 73e69e17..00000000 --- a/generated/1.17/apis/pinniped/register.go +++ /dev/null @@ -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 -} diff --git a/generated/1.17/apis/pinniped/types.go b/generated/1.17/apis/pinniped/types.go deleted file mode 100644 index 8f46e2a4..00000000 --- a/generated/1.17/apis/pinniped/types.go +++ /dev/null @@ -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 -} diff --git a/generated/1.17/apis/pinniped/v1alpha1/register.go b/generated/1.17/apis/pinniped/v1alpha1/register.go deleted file mode 100644 index 04a72c6f..00000000 --- a/generated/1.17/apis/pinniped/v1alpha1/register.go +++ /dev/null @@ -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() -} diff --git a/generated/1.17/apis/pinniped/v1alpha1/types.go b/generated/1.17/apis/pinniped/v1alpha1/types.go deleted file mode 100644 index ac077576..00000000 --- a/generated/1.17/apis/pinniped/v1alpha1/types.go +++ /dev/null @@ -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"` -} diff --git a/generated/1.17/apis/pinniped/v1alpha1/zz_generated.conversion.go b/generated/1.17/apis/pinniped/v1alpha1/zz_generated.conversion.go deleted file mode 100644 index 7251f807..00000000 --- a/generated/1.17/apis/pinniped/v1alpha1/zz_generated.conversion.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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) -} diff --git a/generated/1.17/apis/pinniped/v1alpha1/zz_generated.deepcopy.go b/generated/1.17/apis/pinniped/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index c44aa5a5..00000000 --- a/generated/1.17/apis/pinniped/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -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 -} diff --git a/generated/1.17/apis/pinniped/zz_generated.deepcopy.go b/generated/1.17/apis/pinniped/zz_generated.deepcopy.go deleted file mode 100644 index 29f35918..00000000 --- a/generated/1.17/apis/pinniped/zz_generated.deepcopy.go +++ /dev/null @@ -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 -} diff --git a/generated/1.17/client/clientset/versioned/clientset.go b/generated/1.17/client/clientset/versioned/clientset.go index 7b0c4241..9fdf9233 100644 --- a/generated/1.17/client/clientset/versioned/clientset.go +++ b/generated/1.17/client/clientset/versioned/clientset.go @@ -8,10 +8,9 @@ package versioned import ( "fmt" - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/pinniped/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" + loginv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/login/v1alpha1" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" @@ -19,25 +18,23 @@ import ( type Interface interface { Discovery() discovery.DiscoveryInterface - CrdV1alpha1() crdv1alpha1.CrdV1alpha1Interface + ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface - PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface } // Clientset contains the clients for groups. Each group has exactly one // version included in a Clientset. type Clientset struct { *discovery.DiscoveryClient - crdV1alpha1 *crdv1alpha1.CrdV1alpha1Client - iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client - loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client - pinnipedV1alpha1 *pinnipedv1alpha1.PinnipedV1alpha1Client + configV1alpha1 *configv1alpha1.ConfigV1alpha1Client + iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client + loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client } -// CrdV1alpha1 retrieves the CrdV1alpha1Client -func (c *Clientset) CrdV1alpha1() crdv1alpha1.CrdV1alpha1Interface { - return c.crdV1alpha1 +// ConfigV1alpha1 retrieves the ConfigV1alpha1Client +func (c *Clientset) ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface { + return c.configV1alpha1 } // IDPV1alpha1 retrieves the IDPV1alpha1Client @@ -50,11 +47,6 @@ func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface { return c.loginV1alpha1 } -// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client -func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface { - return c.pinnipedV1alpha1 -} - // Discovery retrieves the DiscoveryClient func (c *Clientset) Discovery() discovery.DiscoveryInterface { if c == nil { @@ -76,7 +68,7 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { } var cs Clientset var err error - cs.crdV1alpha1, err = crdv1alpha1.NewForConfig(&configShallowCopy) + cs.configV1alpha1, err = configv1alpha1.NewForConfig(&configShallowCopy) if err != nil { return nil, err } @@ -88,10 +80,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { if err != nil { return nil, err } - cs.pinnipedV1alpha1, err = pinnipedv1alpha1.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) if err != nil { @@ -104,10 +92,9 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { // panics if there is an error in the config. func NewForConfigOrDie(c *rest.Config) *Clientset { var cs Clientset - cs.crdV1alpha1 = crdv1alpha1.NewForConfigOrDie(c) + cs.configV1alpha1 = configv1alpha1.NewForConfigOrDie(c) cs.iDPV1alpha1 = idpv1alpha1.NewForConfigOrDie(c) cs.loginV1alpha1 = loginv1alpha1.NewForConfigOrDie(c) - cs.pinnipedV1alpha1 = pinnipedv1alpha1.NewForConfigOrDie(c) cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) return &cs @@ -116,10 +103,9 @@ func NewForConfigOrDie(c *rest.Config) *Clientset { // New creates a new Clientset for the given RESTClient. func New(c rest.Interface) *Clientset { var cs Clientset - cs.crdV1alpha1 = crdv1alpha1.New(c) + cs.configV1alpha1 = configv1alpha1.New(c) cs.iDPV1alpha1 = idpv1alpha1.New(c) cs.loginV1alpha1 = loginv1alpha1.New(c) - cs.pinnipedV1alpha1 = pinnipedv1alpha1.New(c) cs.DiscoveryClient = discovery.NewDiscoveryClient(c) return &cs diff --git a/generated/1.17/client/clientset/versioned/fake/clientset_generated.go b/generated/1.17/client/clientset/versioned/fake/clientset_generated.go index 1779e2fd..5ce3436b 100644 --- a/generated/1.17/client/clientset/versioned/fake/clientset_generated.go +++ b/generated/1.17/client/clientset/versioned/fake/clientset_generated.go @@ -6,15 +6,13 @@ package fake import ( - clientset "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned" - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1" - fakecrdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1" - fakeidpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/login/v1alpha1" - fakeloginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1" - fakepinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/fake" + clientset "go.pinniped.dev/generated/1.17/client/clientset/versioned" + configv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/config/v1alpha1" + fakeconfigv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/fake" + idpv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1" + 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" + fakeloginv1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" @@ -69,9 +67,9 @@ func (c *Clientset) Tracker() testing.ObjectTracker { var _ clientset.Interface = &Clientset{} -// CrdV1alpha1 retrieves the CrdV1alpha1Client -func (c *Clientset) CrdV1alpha1() crdv1alpha1.CrdV1alpha1Interface { - return &fakecrdv1alpha1.FakeCrdV1alpha1{Fake: &c.Fake} +// ConfigV1alpha1 retrieves the ConfigV1alpha1Client +func (c *Clientset) ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface { + return &fakeconfigv1alpha1.FakeConfigV1alpha1{Fake: &c.Fake} } // IDPV1alpha1 retrieves the IDPV1alpha1Client @@ -83,8 +81,3 @@ func (c *Clientset) IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface { func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface { return &fakeloginv1alpha1.FakeLoginV1alpha1{Fake: &c.Fake} } - -// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client -func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface { - return &fakepinnipedv1alpha1.FakePinnipedV1alpha1{Fake: &c.Fake} -} diff --git a/generated/1.17/client/clientset/versioned/fake/register.go b/generated/1.17/client/clientset/versioned/fake/register.go index 43dc1c45..4839890f 100644 --- a/generated/1.17/client/clientset/versioned/fake/register.go +++ b/generated/1.17/client/clientset/versioned/fake/register.go @@ -6,10 +6,9 @@ package fake import ( - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1" + configv1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -21,10 +20,9 @@ var scheme = runtime.NewScheme() var codecs = serializer.NewCodecFactory(scheme) var parameterCodec = runtime.NewParameterCodec(scheme) var localSchemeBuilder = runtime.SchemeBuilder{ - crdv1alpha1.AddToScheme, + configv1alpha1.AddToScheme, idpv1alpha1.AddToScheme, loginv1alpha1.AddToScheme, - pinnipedv1alpha1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/generated/1.17/client/clientset/versioned/scheme/register.go b/generated/1.17/client/clientset/versioned/scheme/register.go index ddd3dc6a..ffa304a3 100644 --- a/generated/1.17/client/clientset/versioned/scheme/register.go +++ b/generated/1.17/client/clientset/versioned/scheme/register.go @@ -6,10 +6,9 @@ package scheme import ( - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1" + configv1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -21,10 +20,9 @@ var Scheme = runtime.NewScheme() var Codecs = serializer.NewCodecFactory(Scheme) var ParameterCodec = runtime.NewParameterCodec(Scheme) var localSchemeBuilder = runtime.SchemeBuilder{ - crdv1alpha1.AddToScheme, + configv1alpha1.AddToScheme, idpv1alpha1.AddToScheme, loginv1alpha1.AddToScheme, - pinnipedv1alpha1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/crdpinniped_client.go b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/config_client.go similarity index 54% rename from generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/crdpinniped_client.go rename to generated/1.17/client/clientset/versioned/typed/config/v1alpha1/config_client.go index bb9a310f..09c08925 100644 --- a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/crdpinniped_client.go +++ b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/config_client.go @@ -6,27 +6,27 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1" + "go.pinniped.dev/generated/1.17/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) -type CrdV1alpha1Interface interface { +type ConfigV1alpha1Interface interface { RESTClient() rest.Interface CredentialIssuerConfigsGetter } -// CrdV1alpha1Client is used to interact with features provided by the crd.pinniped.dev group. -type CrdV1alpha1Client struct { +// ConfigV1alpha1Client is used to interact with features provided by the config.pinniped.dev group. +type ConfigV1alpha1Client struct { restClient rest.Interface } -func (c *CrdV1alpha1Client) CredentialIssuerConfigs(namespace string) CredentialIssuerConfigInterface { +func (c *ConfigV1alpha1Client) CredentialIssuerConfigs(namespace string) CredentialIssuerConfigInterface { return newCredentialIssuerConfigs(c, namespace) } -// NewForConfig creates a new CrdV1alpha1Client for the given config. -func NewForConfig(c *rest.Config) (*CrdV1alpha1Client, error) { +// NewForConfig creates a new ConfigV1alpha1Client for the given config. +func NewForConfig(c *rest.Config) (*ConfigV1alpha1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -35,12 +35,12 @@ func NewForConfig(c *rest.Config) (*CrdV1alpha1Client, error) { if err != nil { return nil, err } - return &CrdV1alpha1Client{client}, nil + return &ConfigV1alpha1Client{client}, nil } -// NewForConfigOrDie creates a new CrdV1alpha1Client for the given config and +// NewForConfigOrDie creates a new ConfigV1alpha1Client for the given config and // panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *CrdV1alpha1Client { +func NewForConfigOrDie(c *rest.Config) *ConfigV1alpha1Client { client, err := NewForConfig(c) if err != nil { panic(err) @@ -48,9 +48,9 @@ func NewForConfigOrDie(c *rest.Config) *CrdV1alpha1Client { return client } -// New creates a new CrdV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *CrdV1alpha1Client { - return &CrdV1alpha1Client{c} +// New creates a new ConfigV1alpha1Client for the given RESTClient. +func New(c rest.Interface) *ConfigV1alpha1Client { + return &ConfigV1alpha1Client{c} } func setConfigDefaults(config *rest.Config) error { @@ -68,7 +68,7 @@ func setConfigDefaults(config *rest.Config) error { // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *CrdV1alpha1Client) RESTClient() rest.Interface { +func (c *ConfigV1alpha1Client) RESTClient() rest.Interface { if c == nil { return nil } diff --git a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/credentialissuerconfig.go b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/credentialissuerconfig.go similarity index 95% rename from generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/credentialissuerconfig.go rename to generated/1.17/client/clientset/versioned/typed/config/v1alpha1/credentialissuerconfig.go index cac275b9..e17177eb 100644 --- a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/credentialissuerconfig.go +++ b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/credentialissuerconfig.go @@ -8,8 +8,8 @@ package v1alpha1 import ( "time" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/config/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" @@ -43,7 +43,7 @@ type credentialIssuerConfigs struct { } // newCredentialIssuerConfigs returns a CredentialIssuerConfigs -func newCredentialIssuerConfigs(c *CrdV1alpha1Client, namespace string) *credentialIssuerConfigs { +func newCredentialIssuerConfigs(c *ConfigV1alpha1Client, namespace string) *credentialIssuerConfigs { return &credentialIssuerConfigs{ client: c.RESTClient(), ns: namespace, diff --git a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/doc.go b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/doc.go similarity index 100% rename from generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/doc.go rename to generated/1.17/client/clientset/versioned/typed/config/v1alpha1/doc.go diff --git a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/doc.go b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/fake/doc.go similarity index 100% rename from generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/doc.go rename to generated/1.17/client/clientset/versioned/typed/config/v1alpha1/fake/doc.go diff --git a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_crdpinniped_client.go b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go similarity index 60% rename from generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_crdpinniped_client.go rename to generated/1.17/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go index fb6e2422..38be6941 100644 --- a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_crdpinniped_client.go +++ b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go @@ -6,22 +6,22 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/config/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) -type FakeCrdV1alpha1 struct { +type FakeConfigV1alpha1 struct { *testing.Fake } -func (c *FakeCrdV1alpha1) CredentialIssuerConfigs(namespace string) v1alpha1.CredentialIssuerConfigInterface { +func (c *FakeConfigV1alpha1) CredentialIssuerConfigs(namespace string) v1alpha1.CredentialIssuerConfigInterface { return &FakeCredentialIssuerConfigs{c, namespace} } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *FakeCrdV1alpha1) RESTClient() rest.Interface { +func (c *FakeConfigV1alpha1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret } diff --git a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_credentialissuerconfig.go b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/fake/fake_credentialissuerconfig.go similarity index 95% rename from generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_credentialissuerconfig.go rename to generated/1.17/client/clientset/versioned/typed/config/v1alpha1/fake/fake_credentialissuerconfig.go index 34f5843e..00499940 100644 --- a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_credentialissuerconfig.go +++ b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/fake/fake_credentialissuerconfig.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -17,13 +17,13 @@ import ( // FakeCredentialIssuerConfigs implements CredentialIssuerConfigInterface type FakeCredentialIssuerConfigs struct { - Fake *FakeCrdV1alpha1 + Fake *FakeConfigV1alpha1 ns string } -var credentialissuerconfigsResource = schema.GroupVersionResource{Group: "crd.pinniped.dev", Version: "v1alpha1", Resource: "credentialissuerconfigs"} +var credentialissuerconfigsResource = schema.GroupVersionResource{Group: "config.pinniped.dev", Version: "v1alpha1", Resource: "credentialissuerconfigs"} -var credentialissuerconfigsKind = schema.GroupVersionKind{Group: "crd.pinniped.dev", Version: "v1alpha1", Kind: "CredentialIssuerConfig"} +var credentialissuerconfigsKind = schema.GroupVersionKind{Group: "config.pinniped.dev", Version: "v1alpha1", Kind: "CredentialIssuerConfig"} // Get takes name of the credentialIssuerConfig, and returns the corresponding credentialIssuerConfig object, and an error if there is any. func (c *FakeCredentialIssuerConfigs) Get(name string, options v1.GetOptions) (result *v1alpha1.CredentialIssuerConfig, err error) { diff --git a/generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/generated_expansion.go b/generated/1.17/client/clientset/versioned/typed/config/v1alpha1/generated_expansion.go similarity index 100% rename from generated/1.17/client/clientset/versioned/typed/crdpinniped/v1alpha1/generated_expansion.go rename to generated/1.17/client/clientset/versioned/typed/config/v1alpha1/generated_expansion.go diff --git a/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go b/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go index 2afa5287..3d093d10 100644 --- a/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go +++ b/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go b/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go index 87effa3e..e1c46f39 100644 --- a/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go +++ b/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go b/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go index a50cf6b9..fad008c1 100644 --- a/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go +++ b/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go @@ -6,8 +6,8 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1" - "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1" + "go.pinniped.dev/generated/1.17/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go b/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go index 55571bb2..9798d221 100644 --- a/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go +++ b/generated/1.17/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go @@ -8,8 +8,8 @@ package v1alpha1 import ( "time" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/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" diff --git a/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go b/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go index 38fbbccd..3d3f8f32 100644 --- a/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go +++ b/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/typed/login/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/client/clientset/versioned/typed/login/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go b/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go index 6559a4a3..21dfea91 100644 --- a/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go +++ b/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/login_client.go b/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/login_client.go index b878cf01..d2be5b24 100644 --- a/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/login_client.go +++ b/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/login_client.go @@ -6,8 +6,8 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1" - "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1" + "go.pinniped.dev/generated/1.17/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go b/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go index e628a90a..1efde5a5 100644 --- a/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go +++ b/generated/1.17/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go @@ -8,8 +8,8 @@ package v1alpha1 import ( "time" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/login/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" diff --git a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/credentialrequest.go b/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/credentialrequest.go deleted file mode 100644 index ea072cc0..00000000 --- a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_credentialrequest.go b/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_credentialrequest.go deleted file mode 100644 index cf1372fd..00000000 --- a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_pinniped_client.go b/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_pinniped_client.go deleted file mode 100644 index 05128d0e..00000000 --- a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_pinniped_client.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/generated_expansion.go b/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/generated_expansion.go deleted file mode 100644 index d6596a32..00000000 --- a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/generated_expansion.go +++ /dev/null @@ -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{} diff --git a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/pinniped_client.go b/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/pinniped_client.go deleted file mode 100644 index 25d67f5b..00000000 --- a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/pinniped_client.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.17/client/go.mod b/generated/1.17/client/go.mod index a872381e..eeafeaf5 100644 --- a/generated/1.17/client/go.mod +++ b/generated/1.17/client/go.mod @@ -1,14 +1,14 @@ // This go.mod file is generated by ./hack/codegen.sh. -module github.com/vmware-tanzu/pinniped/generated/1.17/client +module go.pinniped.dev/generated/1.17/client go 1.13 require ( github.com/go-openapi/spec v0.19.9 - github.com/vmware-tanzu/pinniped/generated/1.17/apis v0.0.0-00010101000000-000000000000 + go.pinniped.dev/generated/1.17/apis v0.0.0-00010101000000-000000000000 k8s.io/apimachinery v0.17.11 k8s.io/client-go v0.17.11 k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29 ) -replace github.com/vmware-tanzu/pinniped/generated/1.17/apis => ../apis +replace go.pinniped.dev/generated/1.17/apis => ../apis diff --git a/generated/1.17/client/informers/externalversions/pinniped/interface.go b/generated/1.17/client/informers/externalversions/config/interface.go similarity index 79% rename from generated/1.17/client/informers/externalversions/pinniped/interface.go rename to generated/1.17/client/informers/externalversions/config/interface.go index 8c1239b9..d7b27e71 100644 --- a/generated/1.17/client/informers/externalversions/pinniped/interface.go +++ b/generated/1.17/client/informers/externalversions/config/interface.go @@ -3,11 +3,11 @@ // Code generated by informer-gen. DO NOT EDIT. -package pinniped +package config import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/pinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/client/informers/externalversions/config/v1alpha1" + internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces" ) // Interface provides access to each of this group's versions. diff --git a/generated/1.17/client/informers/externalversions/crdpinniped/v1alpha1/credentialissuerconfig.go b/generated/1.17/client/informers/externalversions/config/v1alpha1/credentialissuerconfig.go similarity index 79% rename from generated/1.17/client/informers/externalversions/crdpinniped/v1alpha1/credentialissuerconfig.go rename to generated/1.17/client/informers/externalversions/config/v1alpha1/credentialissuerconfig.go index 75b0505f..678001c4 100644 --- a/generated/1.17/client/informers/externalversions/crdpinniped/v1alpha1/credentialissuerconfig.go +++ b/generated/1.17/client/informers/externalversions/config/v1alpha1/credentialissuerconfig.go @@ -8,10 +8,10 @@ package v1alpha1 import ( time "time" - crdpinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/listers/crdpinniped/v1alpha1" + configv1alpha1 "go.pinniped.dev/generated/1.17/apis/config/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/config/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -48,16 +48,16 @@ func NewFilteredCredentialIssuerConfigInformer(client versioned.Interface, names if tweakListOptions != nil { tweakListOptions(&options) } - return client.CrdV1alpha1().CredentialIssuerConfigs(namespace).List(options) + return client.ConfigV1alpha1().CredentialIssuerConfigs(namespace).List(options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.CrdV1alpha1().CredentialIssuerConfigs(namespace).Watch(options) + return client.ConfigV1alpha1().CredentialIssuerConfigs(namespace).Watch(options) }, }, - &crdpinnipedv1alpha1.CredentialIssuerConfig{}, + &configv1alpha1.CredentialIssuerConfig{}, resyncPeriod, indexers, ) @@ -68,7 +68,7 @@ func (f *credentialIssuerConfigInformer) defaultInformer(client versioned.Interf } func (f *credentialIssuerConfigInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&crdpinnipedv1alpha1.CredentialIssuerConfig{}, f.defaultInformer) + return f.factory.InformerFor(&configv1alpha1.CredentialIssuerConfig{}, f.defaultInformer) } func (f *credentialIssuerConfigInformer) Lister() v1alpha1.CredentialIssuerConfigLister { diff --git a/generated/1.18/client/informers/externalversions/crdpinniped/v1alpha1/interface.go b/generated/1.17/client/informers/externalversions/config/v1alpha1/interface.go similarity index 90% rename from generated/1.18/client/informers/externalversions/crdpinniped/v1alpha1/interface.go rename to generated/1.17/client/informers/externalversions/config/v1alpha1/interface.go index 84785a20..1722f747 100644 --- a/generated/1.18/client/informers/externalversions/crdpinniped/v1alpha1/interface.go +++ b/generated/1.17/client/informers/externalversions/config/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" + internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/generated/1.17/client/informers/externalversions/crdpinniped/interface.go b/generated/1.17/client/informers/externalversions/crdpinniped/interface.go deleted file mode 100644 index 158e12d5..00000000 --- a/generated/1.17/client/informers/externalversions/crdpinniped/interface.go +++ /dev/null @@ -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 crdpinniped - -import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/crdpinniped/v1alpha1" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" -) - -// 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) -} diff --git a/generated/1.17/client/informers/externalversions/factory.go b/generated/1.17/client/informers/externalversions/factory.go index cee8802b..414a8b20 100644 --- a/generated/1.17/client/informers/externalversions/factory.go +++ b/generated/1.17/client/informers/externalversions/factory.go @@ -10,12 +10,11 @@ import ( sync "sync" time "time" - versioned "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned" - crdpinniped "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/crdpinniped" - idp "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/idp" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" - login "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/login" - pinniped "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/pinniped" + versioned "go.pinniped.dev/generated/1.17/client/clientset/versioned" + config "go.pinniped.dev/generated/1.17/client/informers/externalversions/config" + idp "go.pinniped.dev/generated/1.17/client/informers/externalversions/idp" + internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces" + login "go.pinniped.dev/generated/1.17/client/informers/externalversions/login" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -162,14 +161,13 @@ type SharedInformerFactory interface { ForResource(resource schema.GroupVersionResource) (GenericInformer, error) WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool - Crd() crdpinniped.Interface + Config() config.Interface IDP() idp.Interface Login() login.Interface - Pinniped() pinniped.Interface } -func (f *sharedInformerFactory) Crd() crdpinniped.Interface { - return crdpinniped.New(f, f.namespace, f.tweakListOptions) +func (f *sharedInformerFactory) Config() config.Interface { + return config.New(f, f.namespace, f.tweakListOptions) } func (f *sharedInformerFactory) IDP() idp.Interface { @@ -179,7 +177,3 @@ func (f *sharedInformerFactory) IDP() idp.Interface { func (f *sharedInformerFactory) Login() login.Interface { return login.New(f, f.namespace, f.tweakListOptions) } - -func (f *sharedInformerFactory) Pinniped() pinniped.Interface { - return pinniped.New(f, f.namespace, f.tweakListOptions) -} diff --git a/generated/1.17/client/informers/externalversions/generic.go b/generated/1.17/client/informers/externalversions/generic.go index a91d5a38..01e9dfa3 100644 --- a/generated/1.17/client/informers/externalversions/generic.go +++ b/generated/1.17/client/informers/externalversions/generic.go @@ -8,10 +8,9 @@ package externalversions import ( "fmt" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1" schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" ) @@ -42,9 +41,9 @@ func (f *genericInformer) Lister() cache.GenericLister { // TODO extend this to unknown resources with a client pool func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) { switch resource { - // Group=crd.pinniped.dev, Version=v1alpha1 + // Group=config.pinniped.dev, Version=v1alpha1 case v1alpha1.SchemeGroupVersion.WithResource("credentialissuerconfigs"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Crd().V1alpha1().CredentialIssuerConfigs().Informer()}, nil + return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1alpha1().CredentialIssuerConfigs().Informer()}, nil // Group=idp.pinniped.dev, Version=v1alpha1 case idpv1alpha1.SchemeGroupVersion.WithResource("webhookidentityproviders"): @@ -54,10 +53,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource case loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests"): 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) diff --git a/generated/1.17/client/informers/externalversions/idp/interface.go b/generated/1.17/client/informers/externalversions/idp/interface.go index 5baa10cb..deb66201 100644 --- a/generated/1.17/client/informers/externalversions/idp/interface.go +++ b/generated/1.17/client/informers/externalversions/idp/interface.go @@ -6,8 +6,8 @@ package idp import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/idp/v1alpha1" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" + v1alpha1 "go.pinniped.dev/generated/1.17/client/informers/externalversions/idp/v1alpha1" + internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces" ) // Interface provides access to each of this group's versions. diff --git a/generated/1.17/client/informers/externalversions/idp/v1alpha1/interface.go b/generated/1.17/client/informers/externalversions/idp/v1alpha1/interface.go index 8a2276c0..03455e4a 100644 --- a/generated/1.17/client/informers/externalversions/idp/v1alpha1/interface.go +++ b/generated/1.17/client/informers/externalversions/idp/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" + internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/generated/1.17/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go b/generated/1.17/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go index ae91ecb7..5ed462b9 100644 --- a/generated/1.17/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go +++ b/generated/1.17/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go @@ -8,10 +8,10 @@ package v1alpha1 import ( time "time" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/listers/idp/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/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/idp/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" diff --git a/generated/1.17/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/generated/1.17/client/informers/externalversions/internalinterfaces/factory_interfaces.go index 3e1ed7e2..91581e5d 100644 --- a/generated/1.17/client/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/generated/1.17/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -8,7 +8,7 @@ package internalinterfaces import ( time "time" - versioned "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned" + versioned "go.pinniped.dev/generated/1.17/client/clientset/versioned" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" diff --git a/generated/1.17/client/informers/externalversions/login/interface.go b/generated/1.17/client/informers/externalversions/login/interface.go index 0c913ae4..f9e88087 100644 --- a/generated/1.17/client/informers/externalversions/login/interface.go +++ b/generated/1.17/client/informers/externalversions/login/interface.go @@ -6,8 +6,8 @@ package login import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/login/v1alpha1" + internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces" + v1alpha1 "go.pinniped.dev/generated/1.17/client/informers/externalversions/login/v1alpha1" ) // Interface provides access to each of this group's versions. diff --git a/generated/1.17/client/informers/externalversions/login/v1alpha1/interface.go b/generated/1.17/client/informers/externalversions/login/v1alpha1/interface.go index b1b4a063..1a05abea 100644 --- a/generated/1.17/client/informers/externalversions/login/v1alpha1/interface.go +++ b/generated/1.17/client/informers/externalversions/login/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" + internalinterfaces "go.pinniped.dev/generated/1.17/client/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/generated/1.17/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go b/generated/1.17/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go index cc0580d8..55838ec0 100644 --- a/generated/1.17/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go +++ b/generated/1.17/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go @@ -8,10 +8,10 @@ package v1alpha1 import ( time "time" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/client/listers/login/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.17/apis/login/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/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" diff --git a/generated/1.17/client/informers/externalversions/pinniped/v1alpha1/credentialrequest.go b/generated/1.17/client/informers/externalversions/pinniped/v1alpha1/credentialrequest.go deleted file mode 100644 index 92ab10da..00000000 --- a/generated/1.17/client/informers/externalversions/pinniped/v1alpha1/credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.17/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/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()) -} diff --git a/generated/1.17/client/informers/externalversions/pinniped/v1alpha1/interface.go b/generated/1.17/client/informers/externalversions/pinniped/v1alpha1/interface.go deleted file mode 100644 index 2542fd43..00000000 --- a/generated/1.17/client/informers/externalversions/pinniped/v1alpha1/interface.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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} -} diff --git a/generated/1.18/client/listers/crdpinniped/v1alpha1/credentialissuerconfig.go b/generated/1.17/client/listers/config/v1alpha1/credentialissuerconfig.go similarity index 97% rename from generated/1.18/client/listers/crdpinniped/v1alpha1/credentialissuerconfig.go rename to generated/1.17/client/listers/config/v1alpha1/credentialissuerconfig.go index 821c2258..5f273a69 100644 --- a/generated/1.18/client/listers/crdpinniped/v1alpha1/credentialissuerconfig.go +++ b/generated/1.17/client/listers/config/v1alpha1/credentialissuerconfig.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/config/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/generated/1.17/client/listers/crdpinniped/v1alpha1/expansion_generated.go b/generated/1.17/client/listers/config/v1alpha1/expansion_generated.go similarity index 100% rename from generated/1.17/client/listers/crdpinniped/v1alpha1/expansion_generated.go rename to generated/1.17/client/listers/config/v1alpha1/expansion_generated.go diff --git a/generated/1.17/client/listers/idp/v1alpha1/webhookidentityprovider.go b/generated/1.17/client/listers/idp/v1alpha1/webhookidentityprovider.go index b7ae7a2a..1081006a 100644 --- a/generated/1.17/client/listers/idp/v1alpha1/webhookidentityprovider.go +++ b/generated/1.17/client/listers/idp/v1alpha1/webhookidentityprovider.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/generated/1.17/client/listers/login/v1alpha1/tokencredentialrequest.go b/generated/1.17/client/listers/login/v1alpha1/tokencredentialrequest.go index d0318d43..7668d67e 100644 --- a/generated/1.17/client/listers/login/v1alpha1/tokencredentialrequest.go +++ b/generated/1.17/client/listers/login/v1alpha1/tokencredentialrequest.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.17/apis/login/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/generated/1.17/client/listers/pinniped/v1alpha1/credentialrequest.go b/generated/1.17/client/listers/pinniped/v1alpha1/credentialrequest.go deleted file mode 100644 index aa6f0537..00000000 --- a/generated/1.17/client/listers/pinniped/v1alpha1/credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.17/client/listers/pinniped/v1alpha1/expansion_generated.go b/generated/1.17/client/listers/pinniped/v1alpha1/expansion_generated.go deleted file mode 100644 index e39b06ca..00000000 --- a/generated/1.17/client/listers/pinniped/v1alpha1/expansion_generated.go +++ /dev/null @@ -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{} diff --git a/generated/1.17/client/openapi/zz_generated.openapi.go b/generated/1.17/client/openapi/zz_generated.openapi.go index 13fbc6e0..829e2448 100644 --- a/generated/1.17/client/openapi/zz_generated.openapi.go +++ b/generated/1.17/client/openapi/zz_generated.openapi.go @@ -17,83 +17,77 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfig": schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfigKubeConfigInfo": schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfigList": schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStatus": schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStrategy": schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStrategy(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.Condition": schema_117_apis_idp_v1alpha1_Condition(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.TLSSpec": schema_117_apis_idp_v1alpha1_TLSSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProvider": schema_117_apis_idp_v1alpha1_WebhookIdentityProvider(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderList": schema_117_apis_idp_v1alpha1_WebhookIdentityProviderList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderSpec": schema_117_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderStatus": schema_117_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.ClusterCredential": schema_117_apis_login_v1alpha1_ClusterCredential(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.TokenCredentialRequest": schema_117_apis_login_v1alpha1_TokenCredentialRequest(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestList": schema_117_apis_login_v1alpha1_TokenCredentialRequestList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestSpec": schema_117_apis_login_v1alpha1_TokenCredentialRequestSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestStatus": schema_117_apis_login_v1alpha1_TokenCredentialRequestStatus(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1.CredentialRequest": schema_117_apis_pinniped_v1alpha1_CredentialRequest(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestCredential": schema_117_apis_pinniped_v1alpha1_CredentialRequestCredential(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestList": schema_117_apis_pinniped_v1alpha1_CredentialRequestList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestSpec": schema_117_apis_pinniped_v1alpha1_CredentialRequestSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestStatus": schema_117_apis_pinniped_v1alpha1_CredentialRequestStatus(ref), - "github.com/vmware-tanzu/pinniped/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.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.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ExportOptions": schema_pkg_apis_meta_v1_ExportOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), - "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), - "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), - "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), - "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), + "go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfig": schema_117_apis_config_v1alpha1_CredentialIssuerConfig(ref), + "go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfigKubeConfigInfo": schema_117_apis_config_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref), + "go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfigList": schema_117_apis_config_v1alpha1_CredentialIssuerConfigList(ref), + "go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfigStatus": schema_117_apis_config_v1alpha1_CredentialIssuerConfigStatus(ref), + "go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfigStrategy": schema_117_apis_config_v1alpha1_CredentialIssuerConfigStrategy(ref), + "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.Condition": schema_117_apis_idp_v1alpha1_Condition(ref), + "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.TLSSpec": schema_117_apis_idp_v1alpha1_TLSSpec(ref), + "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProvider": schema_117_apis_idp_v1alpha1_WebhookIdentityProvider(ref), + "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderList": schema_117_apis_idp_v1alpha1_WebhookIdentityProviderList(ref), + "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderSpec": schema_117_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref), + "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderStatus": schema_117_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref), + "go.pinniped.dev/generated/1.17/apis/login/v1alpha1.ClusterCredential": schema_117_apis_login_v1alpha1_ClusterCredential(ref), + "go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequest": schema_117_apis_login_v1alpha1_TokenCredentialRequest(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.TokenCredentialRequestStatus": schema_117_apis_login_v1alpha1_TokenCredentialRequestStatus(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.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ExportOptions": schema_pkg_apis_meta_v1_ExportOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), + "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), + "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), + "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), + "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), } } -func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_117_apis_config_v1alpha1_CredentialIssuerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -121,7 +115,7 @@ func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref common.Refe "status": { SchemaProps: spec.SchemaProps{ Description: "Status of the credential issuer.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStatus"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfigStatus"), }, }, }, @@ -129,11 +123,11 @@ func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref common.Refe }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_117_apis_config_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -161,7 +155,7 @@ func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigKubeConfigInfo(r } } -func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_117_apis_config_v1alpha1_CredentialIssuerConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -192,7 +186,7 @@ func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref common. Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfig"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfig"), }, }, }, @@ -203,11 +197,11 @@ func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref common. }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_117_apis_config_v1alpha1_CredentialIssuerConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -221,7 +215,7 @@ func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref commo Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStrategy"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfigStrategy"), }, }, }, @@ -230,7 +224,7 @@ func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref commo "kubeConfigInfo": { SchemaProps: spec.SchemaProps{ Description: "Information needed to form a valid Pinniped-based kubeconfig using this credential issuer.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfigKubeConfigInfo"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfigKubeConfigInfo"), }, }, }, @@ -238,11 +232,11 @@ func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref commo }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfigKubeConfigInfo", "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStrategy"}, + "go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfigKubeConfigInfo", "go.pinniped.dev/generated/1.17/apis/config/v1alpha1.CredentialIssuerConfigStrategy"}, } } -func schema_117_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_117_apis_config_v1alpha1_CredentialIssuerConfigStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -398,13 +392,13 @@ func schema_117_apis_idp_v1alpha1_WebhookIdentityProvider(ref common.ReferenceCa "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec for configuring the identity provider.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderSpec"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status of the identity provider.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderStatus"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderStatus"), }, }, }, @@ -412,7 +406,7 @@ func schema_117_apis_idp_v1alpha1_WebhookIdentityProvider(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderSpec", "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderSpec", "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -448,7 +442,7 @@ func schema_117_apis_idp_v1alpha1_WebhookIdentityProviderList(ref common.Referen Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProvider"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProvider"), }, }, }, @@ -459,7 +453,7 @@ func schema_117_apis_idp_v1alpha1_WebhookIdentityProviderList(ref common.Referen }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.WebhookIdentityProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } @@ -480,7 +474,7 @@ func schema_117_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref common.Referen "tls": { SchemaProps: spec.SchemaProps{ Description: "TLS configuration.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.TLSSpec"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.TLSSpec"), }, }, }, @@ -488,7 +482,7 @@ func schema_117_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref common.Referen }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.TLSSpec"}, + "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.TLSSpec"}, } } @@ -516,7 +510,7 @@ func schema_117_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref common.Refer Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.Condition"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.Condition"), }, }, }, @@ -526,7 +520,7 @@ func schema_117_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref common.Refer }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/idp/v1alpha1.Condition"}, + "go.pinniped.dev/generated/1.17/apis/idp/v1alpha1.Condition"}, } } @@ -600,19 +594,19 @@ func schema_117_apis_login_v1alpha1_TokenCredentialRequest(ref common.ReferenceC }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestSpec"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestStatus"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestSpec", "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestSpec", "go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -648,7 +642,7 @@ func schema_117_apis_login_v1alpha1_TokenCredentialRequestList(ref common.Refere Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.TokenCredentialRequest"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequest"), }, }, }, @@ -659,7 +653,7 @@ func schema_117_apis_login_v1alpha1_TokenCredentialRequestList(ref common.Refere }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.TokenCredentialRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "go.pinniped.dev/generated/1.17/apis/login/v1alpha1.TokenCredentialRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } @@ -693,7 +687,7 @@ func schema_117_apis_login_v1alpha1_TokenCredentialRequestStatus(ref common.Refe "credential": { SchemaProps: spec.SchemaProps{ Description: "A Credential will be returned for a successful credential request.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.ClusterCredential"), + Ref: ref("go.pinniped.dev/generated/1.17/apis/login/v1alpha1.ClusterCredential"), }, }, "message": { @@ -707,216 +701,7 @@ func schema_117_apis_login_v1alpha1_TokenCredentialRequestStatus(ref common.Refe }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/login/v1alpha1.ClusterCredential"}, - } -} - -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("github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestSpec", "github.com/vmware-tanzu/pinniped/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("github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1.CredentialRequest"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/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("github.com/vmware-tanzu/pinniped/generated/1.17/apis/pinniped/v1alpha1.CredentialRequestTokenCredential"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/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("github.com/vmware-tanzu/pinniped/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{ - "github.com/vmware-tanzu/pinniped/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: "", - }, - }, - }, - }, - }, + "go.pinniped.dev/generated/1.17/apis/login/v1alpha1.ClusterCredential"}, } } diff --git a/deploy/crd.pinniped.dev_credentialissuerconfigs.yaml b/generated/1.17/crds/config.pinniped.dev_credentialissuerconfigs.yaml similarity index 97% rename from deploy/crd.pinniped.dev_credentialissuerconfigs.yaml rename to generated/1.17/crds/config.pinniped.dev_credentialissuerconfigs.yaml index e47f8e63..370df951 100644 --- a/deploy/crd.pinniped.dev_credentialissuerconfigs.yaml +++ b/generated/1.17/crds/config.pinniped.dev_credentialissuerconfigs.yaml @@ -6,9 +6,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 creationTimestamp: null - name: credentialissuerconfigs.crd.pinniped.dev + name: credentialissuerconfigs.config.pinniped.dev spec: - group: crd.pinniped.dev + group: config.pinniped.dev names: kind: CredentialIssuerConfig listKind: CredentialIssuerConfigList diff --git a/generated/1.18/README.adoc b/generated/1.18/README.adoc index a638cd3b..22cfe325 100644 --- a/generated/1.18/README.adoc +++ b/generated/1.18/README.adoc @@ -5,27 +5,26 @@ == API Reference .Packages -- xref:{anchor_prefix}-crd-pinniped-dev-v1alpha1[$$crd.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}-login-pinniped-dev-v1alpha1[$$login.pinniped.dev/v1alpha1$$] -- xref:{anchor_prefix}-pinniped-dev-v1alpha1[$$pinniped.dev/v1alpha1$$] -[id="{anchor_prefix}-crd-pinniped-dev-v1alpha1"] -=== crd.pinniped.dev/v1alpha1 +[id="{anchor_prefix}-config-pinniped-dev-v1alpha1"] +=== config.pinniped.dev/v1alpha1 -Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. +Package v1alpha1 is the v1alpha1 version of the Pinniped configuration API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfig"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfig"] ==== CredentialIssuerConfig .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfiglist[$$CredentialIssuerConfigList$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfiglist[$$CredentialIssuerConfigList$$] **** [cols="25a,75a", options="header"] @@ -33,18 +32,18 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. | 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`. -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$]__ | Status of the credential issuer. +| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$]__ | Status of the credential issuer. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfigkubeconfiginfo"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfigkubeconfiginfo"] ==== CredentialIssuerConfigKubeConfigInfo .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] **** [cols="25a,75a", options="header"] @@ -57,32 +56,32 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfigstatus"] ==== CredentialIssuerConfigStatus Status of a credential issuer. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfig[$$CredentialIssuerConfig$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfig[$$CredentialIssuerConfig$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`strategies`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfigstrategy[$$CredentialIssuerConfigStrategy$$] array__ | List of integration strategies that were attempted by Pinniped. -| *`kubeConfigInfo`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfigkubeconfiginfo[$$CredentialIssuerConfigKubeConfigInfo$$]__ | Information needed to form a valid Pinniped-based kubeconfig using this credential issuer. +| *`strategies`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfigstrategy[$$CredentialIssuerConfigStrategy$$] array__ | List of integration strategies that were attempted by Pinniped. +| *`kubeConfigInfo`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfigkubeconfiginfo[$$CredentialIssuerConfigKubeConfigInfo$$]__ | Information needed to form a valid Pinniped-based kubeconfig using this credential issuer. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfigstrategy"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfigstrategy"] ==== CredentialIssuerConfigStrategy .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-config-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] **** [cols="25a,75a", options="header"] @@ -104,14 +103,14 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped identity provider API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-condition"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-condition"] ==== Condition Condition status of a resource (mirrored from the metav1.Condition type added in Kubernetes 1.19). In a future API version we can switch to using the upstream type. See https://github.com/kubernetes/apimachinery/blob/v0.19.0/pkg/apis/meta/v1/types.go#L1353-L1413. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$] **** [cols="25a,75a", options="header"] @@ -126,14 +125,14 @@ Condition status of a resource (mirrored from the metav1.Condition type added in |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-tlsspec"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-tlsspec"] ==== TLSSpec Configuration for configuring TLS on various identity providers. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$] **** [cols="25a,75a", options="header"] @@ -143,14 +142,14 @@ Configuration for configuring TLS on various identity providers. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-webhookidentityprovider"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-webhookidentityprovider"] ==== WebhookIdentityProvider WebhookIdentityProvider describes the configuration of a Pinniped webhook identity provider. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderlist[$$WebhookIdentityProviderList$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderlist[$$WebhookIdentityProviderList$$] **** [cols="25a,75a", options="header"] @@ -158,45 +157,45 @@ WebhookIdentityProvider describes the configuration of a Pinniped webhook identi | 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}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$]__ | Spec for configuring the identity provider. -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$]__ | Status of the identity provider. +| *`spec`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$]__ | Spec for configuring the identity provider. +| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$]__ | Status of the identity provider. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderspec"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderspec"] ==== WebhookIdentityProviderSpec Spec for configuring a webhook identity provider. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`endpoint`* __string__ | Webhook server endpoint URL. -| *`tls`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-tlsspec[$$TLSSpec$$]__ | TLS configuration. +| *`tls`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-tlsspec[$$TLSSpec$$]__ | TLS configuration. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderstatus"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-webhookidentityproviderstatus"] ==== WebhookIdentityProviderStatus Status of a webhook identity provider. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`conditions`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-idp-v1alpha1-condition[$$Condition$$]__ | Represents the observations of an identity provider's current state. +| *`conditions`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-idp-v1alpha1-condition[$$Condition$$]__ | Represents the observations of an identity provider's current state. |=== @@ -208,14 +207,14 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped login API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-clustercredential"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-clustercredential"] ==== ClusterCredential ClusterCredential is the cluster-specific credential returned on a successful credential request. It contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$] **** [cols="25a,75a", options="header"] @@ -228,14 +227,14 @@ ClusterCredential is the cluster-specific credential returned on a successful cr |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-tokencredentialrequest"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-tokencredentialrequest"] ==== TokenCredentialRequest TokenCredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-tokencredentialrequestlist[$$TokenCredentialRequestList$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-tokencredentialrequestlist[$$TokenCredentialRequestList$$] **** [cols="25a,75a", options="header"] @@ -243,21 +242,21 @@ TokenCredentialRequest submits an IDP-specific credential to Pinniped in exchang | 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}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-tokencredentialrequestspec[$$TokenCredentialRequestSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$]__ | +| *`spec`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-tokencredentialrequestspec[$$TokenCredentialRequestSpec$$]__ | +| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$]__ | |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-tokencredentialrequestspec"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-tokencredentialrequestspec"] ==== TokenCredentialRequestSpec TokenCredentialRequestSpec is the specification of a TokenCredentialRequest, expected on requests to the Pinniped API. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] **** [cols="25a,75a", options="header"] @@ -267,124 +266,21 @@ TokenCredentialRequestSpec is the specification of a TokenCredentialRequest, exp |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-tokencredentialrequeststatus"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-tokencredentialrequeststatus"] ==== TokenCredentialRequestStatus TokenCredentialRequestStatus is the status of a TokenCredentialRequest, returned on responses to the Pinniped API. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`credential`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-login-v1alpha1-clustercredential[$$ClusterCredential$$]__ | A Credential will be returned for a successful credential request. +| *`credential`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-login-v1alpha1-clustercredential[$$ClusterCredential$$]__ | 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}-pinniped-dev-v1alpha1"] -=== pinniped.dev/v1alpha1 - -Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API. - - - -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-pinniped-v1alpha1-credentialrequestspec[$$CredentialRequestSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-pinniped-v1alpha1-credentialrequeststatus[$$CredentialRequestStatus$$]__ | -|=== - - -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$] -**** - -[cols="25a,75a", options="header"] -|=== -| Field | Description -| *`type`* __CredentialType__ | Type of credential. -| *`token`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-pinniped-v1alpha1-credentialrequesttokencredential[$$CredentialRequestTokenCredential$$]__ | Token credential (when Type == TokenCredentialType). -|=== - - -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$] -**** - -[cols="25a,75a", options="header"] -|=== -| Field | Description -| *`credential`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-18-apis-pinniped-v1alpha1-credentialrequesttokencredential"] -==== CredentialRequestTokenCredential - -CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider. - -.Appears In: -**** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-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. -|=== - - diff --git a/generated/1.19/apis/pinniped/doc.go b/generated/1.18/apis/config/doc.go similarity index 51% rename from generated/1.19/apis/pinniped/doc.go rename to generated/1.18/apis/config/doc.go index fea6e743..4e7aa82f 100644 --- a/generated/1.19/apis/pinniped/doc.go +++ b/generated/1.18/apis/config/doc.go @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 // +k8s:deepcopy-gen=package -// +groupName=pinniped.dev +// +groupName=config.pinniped.dev -// Package pinniped is the internal version of the Pinniped aggregated API. -package pinniped +// Package config is the internal version of the Pinniped configuration API. +package config diff --git a/generated/1.19/apis/crdpinniped/v1alpha1/conversion.go b/generated/1.18/apis/config/types.go similarity index 86% rename from generated/1.19/apis/crdpinniped/v1alpha1/conversion.go rename to generated/1.18/apis/config/types.go index 226f6135..5a44b975 100644 --- a/generated/1.19/apis/crdpinniped/v1alpha1/conversion.go +++ b/generated/1.18/apis/config/types.go @@ -1,4 +1,4 @@ // Copyright 2020 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -package v1alpha1 +package config diff --git a/generated/1.17/apis/pinniped/v1alpha1/conversion.go b/generated/1.18/apis/config/v1alpha1/conversion.go similarity index 100% rename from generated/1.17/apis/pinniped/v1alpha1/conversion.go rename to generated/1.18/apis/config/v1alpha1/conversion.go diff --git a/generated/1.17/apis/pinniped/v1alpha1/defaults.go b/generated/1.18/apis/config/v1alpha1/defaults.go similarity index 100% rename from generated/1.17/apis/pinniped/v1alpha1/defaults.go rename to generated/1.18/apis/config/v1alpha1/defaults.go diff --git a/generated/1.18/apis/pinniped/v1alpha1/doc.go b/generated/1.18/apis/config/v1alpha1/doc.go similarity index 52% rename from generated/1.18/apis/pinniped/v1alpha1/doc.go rename to generated/1.18/apis/config/v1alpha1/doc.go index 48c209df..5baa22d0 100644 --- a/generated/1.18/apis/pinniped/v1alpha1/doc.go +++ b/generated/1.18/apis/config/v1alpha1/doc.go @@ -3,9 +3,9 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped +// +k8s:conversion-gen=go.pinniped.dev/generated/1.18/apis/config // +k8s:defaulter-gen=TypeMeta -// +groupName=pinniped.dev +// +groupName=config.pinniped.dev -// Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API. +// Package v1alpha1 is the v1alpha1 version of the Pinniped configuration API. package v1alpha1 diff --git a/generated/1.17/apis/crdpinniped/v1alpha1/register.go b/generated/1.18/apis/config/v1alpha1/register.go similarity index 97% rename from generated/1.17/apis/crdpinniped/v1alpha1/register.go rename to generated/1.18/apis/config/v1alpha1/register.go index fbc08a50..18936d7e 100644 --- a/generated/1.17/apis/crdpinniped/v1alpha1/register.go +++ b/generated/1.18/apis/config/v1alpha1/register.go @@ -9,7 +9,7 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" ) -const GroupName = "crd.pinniped.dev" +const GroupName = "config.pinniped.dev" // SchemeGroupVersion is group version used to register these objects. var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} diff --git a/generated/1.18/apis/crdpinniped/v1alpha1/types.go b/generated/1.18/apis/config/v1alpha1/types.go similarity index 100% rename from generated/1.18/apis/crdpinniped/v1alpha1/types.go rename to generated/1.18/apis/config/v1alpha1/types.go diff --git a/generated/1.18/apis/crdpinniped/v1alpha1/zz_generated.conversion.go b/generated/1.18/apis/config/v1alpha1/zz_generated.conversion.go similarity index 100% rename from generated/1.18/apis/crdpinniped/v1alpha1/zz_generated.conversion.go rename to generated/1.18/apis/config/v1alpha1/zz_generated.conversion.go diff --git a/generated/1.18/apis/crdpinniped/v1alpha1/zz_generated.deepcopy.go b/generated/1.18/apis/config/v1alpha1/zz_generated.deepcopy.go similarity index 100% rename from generated/1.18/apis/crdpinniped/v1alpha1/zz_generated.deepcopy.go rename to generated/1.18/apis/config/v1alpha1/zz_generated.deepcopy.go diff --git a/generated/1.17/apis/pinniped/v1alpha1/zz_generated.defaults.go b/generated/1.18/apis/config/v1alpha1/zz_generated.defaults.go similarity index 100% rename from generated/1.17/apis/pinniped/v1alpha1/zz_generated.defaults.go rename to generated/1.18/apis/config/v1alpha1/zz_generated.defaults.go diff --git a/generated/1.19/apis/crdpinniped/zz_generated.deepcopy.go b/generated/1.18/apis/config/zz_generated.deepcopy.go similarity index 90% rename from generated/1.19/apis/crdpinniped/zz_generated.deepcopy.go rename to generated/1.18/apis/config/zz_generated.deepcopy.go index 4c7831c5..eabadefc 100644 --- a/generated/1.19/apis/crdpinniped/zz_generated.deepcopy.go +++ b/generated/1.18/apis/config/zz_generated.deepcopy.go @@ -5,4 +5,4 @@ // Code generated by deepcopy-gen. DO NOT EDIT. -package crdpinniped +package config diff --git a/generated/1.18/apis/crdpinniped/doc.go b/generated/1.18/apis/crdpinniped/doc.go deleted file mode 100644 index f896e3cc..00000000 --- a/generated/1.18/apis/crdpinniped/doc.go +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -// +k8s:deepcopy-gen=package -// +groupName=crd.pinniped.dev - -// Package crdpinniped is the internal version of the Pinniped CRD-based API. -package crdpinniped diff --git a/generated/1.18/apis/crdpinniped/types.go b/generated/1.18/apis/crdpinniped/types.go deleted file mode 100644 index 0cabbe15..00000000 --- a/generated/1.18/apis/crdpinniped/types.go +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -package crdpinniped diff --git a/generated/1.18/apis/crdpinniped/v1alpha1/doc.go b/generated/1.18/apis/crdpinniped/v1alpha1/doc.go deleted file mode 100644 index 8fc0d079..00000000 --- a/generated/1.18/apis/crdpinniped/v1alpha1/doc.go +++ /dev/null @@ -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=github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped -// +k8s:defaulter-gen=TypeMeta -// +groupName=crd.pinniped.dev - -// Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. -package v1alpha1 diff --git a/generated/1.18/apis/go.mod b/generated/1.18/apis/go.mod index 21cb5344..bceb5f18 100644 --- a/generated/1.18/apis/go.mod +++ b/generated/1.18/apis/go.mod @@ -1,5 +1,5 @@ // This go.mod file is generated by ./hack/codegen.sh. -module github.com/vmware-tanzu/pinniped/generated/1.18/apis +module go.pinniped.dev/generated/1.18/apis go 1.13 diff --git a/generated/1.18/apis/idp/v1alpha1/doc.go b/generated/1.18/apis/idp/v1alpha1/doc.go index 22d7a51f..95225bb6 100644 --- a/generated/1.18/apis/idp/v1alpha1/doc.go +++ b/generated/1.18/apis/idp/v1alpha1/doc.go @@ -3,7 +3,7 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp +// +k8s:conversion-gen=go.pinniped.dev/generated/1.18/apis/idp // +k8s:defaulter-gen=TypeMeta // +groupName=idp.pinniped.dev // +groupGoName=IDP diff --git a/generated/1.18/apis/login/v1alpha1/doc.go b/generated/1.18/apis/login/v1alpha1/doc.go index 67f5d45e..e1ff552a 100644 --- a/generated/1.18/apis/login/v1alpha1/doc.go +++ b/generated/1.18/apis/login/v1alpha1/doc.go @@ -3,7 +3,7 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/generated/1.18/apis/login +// +k8s:conversion-gen=go.pinniped.dev/generated/1.18/apis/login // +k8s:defaulter-gen=TypeMeta // +groupName=login.pinniped.dev diff --git a/generated/1.18/apis/login/v1alpha1/zz_generated.conversion.go b/generated/1.18/apis/login/v1alpha1/zz_generated.conversion.go index dbd421b6..b3e37f56 100644 --- a/generated/1.18/apis/login/v1alpha1/zz_generated.conversion.go +++ b/generated/1.18/apis/login/v1alpha1/zz_generated.conversion.go @@ -10,7 +10,7 @@ package v1alpha1 import ( unsafe "unsafe" - login "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login" + login "go.pinniped.dev/generated/1.18/apis/login" conversion "k8s.io/apimachinery/pkg/conversion" runtime "k8s.io/apimachinery/pkg/runtime" ) diff --git a/generated/1.18/apis/pinniped/register.go b/generated/1.18/apis/pinniped/register.go deleted file mode 100644 index 73e69e17..00000000 --- a/generated/1.18/apis/pinniped/register.go +++ /dev/null @@ -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 -} diff --git a/generated/1.18/apis/pinniped/types.go b/generated/1.18/apis/pinniped/types.go deleted file mode 100644 index 8f46e2a4..00000000 --- a/generated/1.18/apis/pinniped/types.go +++ /dev/null @@ -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 -} diff --git a/generated/1.18/apis/pinniped/v1alpha1/defaults.go b/generated/1.18/apis/pinniped/v1alpha1/defaults.go deleted file mode 100644 index 830aa010..00000000 --- a/generated/1.18/apis/pinniped/v1alpha1/defaults.go +++ /dev/null @@ -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) -} diff --git a/generated/1.18/apis/pinniped/v1alpha1/register.go b/generated/1.18/apis/pinniped/v1alpha1/register.go deleted file mode 100644 index 04a72c6f..00000000 --- a/generated/1.18/apis/pinniped/v1alpha1/register.go +++ /dev/null @@ -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() -} diff --git a/generated/1.18/apis/pinniped/v1alpha1/types.go b/generated/1.18/apis/pinniped/v1alpha1/types.go deleted file mode 100644 index ac077576..00000000 --- a/generated/1.18/apis/pinniped/v1alpha1/types.go +++ /dev/null @@ -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"` -} diff --git a/generated/1.18/apis/pinniped/v1alpha1/zz_generated.conversion.go b/generated/1.18/apis/pinniped/v1alpha1/zz_generated.conversion.go deleted file mode 100644 index b31e8e28..00000000 --- a/generated/1.18/apis/pinniped/v1alpha1/zz_generated.conversion.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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) -} diff --git a/generated/1.18/apis/pinniped/v1alpha1/zz_generated.deepcopy.go b/generated/1.18/apis/pinniped/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index c44aa5a5..00000000 --- a/generated/1.18/apis/pinniped/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -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 -} diff --git a/generated/1.18/apis/pinniped/v1alpha1/zz_generated.defaults.go b/generated/1.18/apis/pinniped/v1alpha1/zz_generated.defaults.go deleted file mode 100644 index 427b2e2e..00000000 --- a/generated/1.18/apis/pinniped/v1alpha1/zz_generated.defaults.go +++ /dev/null @@ -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 -} diff --git a/generated/1.18/apis/pinniped/zz_generated.deepcopy.go b/generated/1.18/apis/pinniped/zz_generated.deepcopy.go deleted file mode 100644 index 29f35918..00000000 --- a/generated/1.18/apis/pinniped/zz_generated.deepcopy.go +++ /dev/null @@ -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 -} diff --git a/generated/1.18/client/clientset/versioned/clientset.go b/generated/1.18/client/clientset/versioned/clientset.go index 1c360eb6..fcd663cd 100644 --- a/generated/1.18/client/clientset/versioned/clientset.go +++ b/generated/1.18/client/clientset/versioned/clientset.go @@ -8,10 +8,9 @@ package versioned import ( "fmt" - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/pinniped/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" + loginv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/login/v1alpha1" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" @@ -19,25 +18,23 @@ import ( type Interface interface { Discovery() discovery.DiscoveryInterface - CrdV1alpha1() crdv1alpha1.CrdV1alpha1Interface + ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface - PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface } // Clientset contains the clients for groups. Each group has exactly one // version included in a Clientset. type Clientset struct { *discovery.DiscoveryClient - crdV1alpha1 *crdv1alpha1.CrdV1alpha1Client - iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client - loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client - pinnipedV1alpha1 *pinnipedv1alpha1.PinnipedV1alpha1Client + configV1alpha1 *configv1alpha1.ConfigV1alpha1Client + iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client + loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client } -// CrdV1alpha1 retrieves the CrdV1alpha1Client -func (c *Clientset) CrdV1alpha1() crdv1alpha1.CrdV1alpha1Interface { - return c.crdV1alpha1 +// ConfigV1alpha1 retrieves the ConfigV1alpha1Client +func (c *Clientset) ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface { + return c.configV1alpha1 } // IDPV1alpha1 retrieves the IDPV1alpha1Client @@ -50,11 +47,6 @@ func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface { return c.loginV1alpha1 } -// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client -func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface { - return c.pinnipedV1alpha1 -} - // Discovery retrieves the DiscoveryClient func (c *Clientset) Discovery() discovery.DiscoveryInterface { if c == nil { @@ -76,7 +68,7 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { } var cs Clientset var err error - cs.crdV1alpha1, err = crdv1alpha1.NewForConfig(&configShallowCopy) + cs.configV1alpha1, err = configv1alpha1.NewForConfig(&configShallowCopy) if err != nil { return nil, err } @@ -88,10 +80,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { if err != nil { return nil, err } - cs.pinnipedV1alpha1, err = pinnipedv1alpha1.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) if err != nil { @@ -104,10 +92,9 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { // panics if there is an error in the config. func NewForConfigOrDie(c *rest.Config) *Clientset { var cs Clientset - cs.crdV1alpha1 = crdv1alpha1.NewForConfigOrDie(c) + cs.configV1alpha1 = configv1alpha1.NewForConfigOrDie(c) cs.iDPV1alpha1 = idpv1alpha1.NewForConfigOrDie(c) cs.loginV1alpha1 = loginv1alpha1.NewForConfigOrDie(c) - cs.pinnipedV1alpha1 = pinnipedv1alpha1.NewForConfigOrDie(c) cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) return &cs @@ -116,10 +103,9 @@ func NewForConfigOrDie(c *rest.Config) *Clientset { // New creates a new Clientset for the given RESTClient. func New(c rest.Interface) *Clientset { var cs Clientset - cs.crdV1alpha1 = crdv1alpha1.New(c) + cs.configV1alpha1 = configv1alpha1.New(c) cs.iDPV1alpha1 = idpv1alpha1.New(c) cs.loginV1alpha1 = loginv1alpha1.New(c) - cs.pinnipedV1alpha1 = pinnipedv1alpha1.New(c) cs.DiscoveryClient = discovery.NewDiscoveryClient(c) return &cs diff --git a/generated/1.18/client/clientset/versioned/fake/clientset_generated.go b/generated/1.18/client/clientset/versioned/fake/clientset_generated.go index 9da2197a..00b7ab1c 100644 --- a/generated/1.18/client/clientset/versioned/fake/clientset_generated.go +++ b/generated/1.18/client/clientset/versioned/fake/clientset_generated.go @@ -6,15 +6,13 @@ package fake import ( - clientset "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned" - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1" - fakecrdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1" - fakeidpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/login/v1alpha1" - fakeloginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1" - fakepinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake" + clientset "go.pinniped.dev/generated/1.18/client/clientset/versioned" + configv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/config/v1alpha1" + fakeconfigv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/fake" + idpv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1" + 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" + fakeloginv1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" @@ -69,9 +67,9 @@ func (c *Clientset) Tracker() testing.ObjectTracker { var _ clientset.Interface = &Clientset{} -// CrdV1alpha1 retrieves the CrdV1alpha1Client -func (c *Clientset) CrdV1alpha1() crdv1alpha1.CrdV1alpha1Interface { - return &fakecrdv1alpha1.FakeCrdV1alpha1{Fake: &c.Fake} +// ConfigV1alpha1 retrieves the ConfigV1alpha1Client +func (c *Clientset) ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface { + return &fakeconfigv1alpha1.FakeConfigV1alpha1{Fake: &c.Fake} } // IDPV1alpha1 retrieves the IDPV1alpha1Client @@ -83,8 +81,3 @@ func (c *Clientset) IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface { func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface { return &fakeloginv1alpha1.FakeLoginV1alpha1{Fake: &c.Fake} } - -// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client -func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface { - return &fakepinnipedv1alpha1.FakePinnipedV1alpha1{Fake: &c.Fake} -} diff --git a/generated/1.18/client/clientset/versioned/fake/register.go b/generated/1.18/client/clientset/versioned/fake/register.go index a025299f..d92ba36c 100644 --- a/generated/1.18/client/clientset/versioned/fake/register.go +++ b/generated/1.18/client/clientset/versioned/fake/register.go @@ -6,10 +6,9 @@ package fake import ( - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1" + configv1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -21,10 +20,9 @@ var scheme = runtime.NewScheme() var codecs = serializer.NewCodecFactory(scheme) var parameterCodec = runtime.NewParameterCodec(scheme) var localSchemeBuilder = runtime.SchemeBuilder{ - crdv1alpha1.AddToScheme, + configv1alpha1.AddToScheme, idpv1alpha1.AddToScheme, loginv1alpha1.AddToScheme, - pinnipedv1alpha1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/generated/1.18/client/clientset/versioned/scheme/register.go b/generated/1.18/client/clientset/versioned/scheme/register.go index 6c64ecdd..fcc05088 100644 --- a/generated/1.18/client/clientset/versioned/scheme/register.go +++ b/generated/1.18/client/clientset/versioned/scheme/register.go @@ -6,10 +6,9 @@ package scheme import ( - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1" + configv1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -21,10 +20,9 @@ var Scheme = runtime.NewScheme() var Codecs = serializer.NewCodecFactory(Scheme) var ParameterCodec = runtime.NewParameterCodec(Scheme) var localSchemeBuilder = runtime.SchemeBuilder{ - crdv1alpha1.AddToScheme, + configv1alpha1.AddToScheme, idpv1alpha1.AddToScheme, loginv1alpha1.AddToScheme, - pinnipedv1alpha1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/crdpinniped_client.go b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/config_client.go similarity index 54% rename from generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/crdpinniped_client.go rename to generated/1.18/client/clientset/versioned/typed/config/v1alpha1/config_client.go index 4b0de249..29650a3b 100644 --- a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/crdpinniped_client.go +++ b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/config_client.go @@ -6,27 +6,27 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1" + "go.pinniped.dev/generated/1.18/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) -type CrdV1alpha1Interface interface { +type ConfigV1alpha1Interface interface { RESTClient() rest.Interface CredentialIssuerConfigsGetter } -// CrdV1alpha1Client is used to interact with features provided by the crd.pinniped.dev group. -type CrdV1alpha1Client struct { +// ConfigV1alpha1Client is used to interact with features provided by the config.pinniped.dev group. +type ConfigV1alpha1Client struct { restClient rest.Interface } -func (c *CrdV1alpha1Client) CredentialIssuerConfigs(namespace string) CredentialIssuerConfigInterface { +func (c *ConfigV1alpha1Client) CredentialIssuerConfigs(namespace string) CredentialIssuerConfigInterface { return newCredentialIssuerConfigs(c, namespace) } -// NewForConfig creates a new CrdV1alpha1Client for the given config. -func NewForConfig(c *rest.Config) (*CrdV1alpha1Client, error) { +// NewForConfig creates a new ConfigV1alpha1Client for the given config. +func NewForConfig(c *rest.Config) (*ConfigV1alpha1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -35,12 +35,12 @@ func NewForConfig(c *rest.Config) (*CrdV1alpha1Client, error) { if err != nil { return nil, err } - return &CrdV1alpha1Client{client}, nil + return &ConfigV1alpha1Client{client}, nil } -// NewForConfigOrDie creates a new CrdV1alpha1Client for the given config and +// NewForConfigOrDie creates a new ConfigV1alpha1Client for the given config and // panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *CrdV1alpha1Client { +func NewForConfigOrDie(c *rest.Config) *ConfigV1alpha1Client { client, err := NewForConfig(c) if err != nil { panic(err) @@ -48,9 +48,9 @@ func NewForConfigOrDie(c *rest.Config) *CrdV1alpha1Client { return client } -// New creates a new CrdV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *CrdV1alpha1Client { - return &CrdV1alpha1Client{c} +// New creates a new ConfigV1alpha1Client for the given RESTClient. +func New(c rest.Interface) *ConfigV1alpha1Client { + return &ConfigV1alpha1Client{c} } func setConfigDefaults(config *rest.Config) error { @@ -68,7 +68,7 @@ func setConfigDefaults(config *rest.Config) error { // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *CrdV1alpha1Client) RESTClient() rest.Interface { +func (c *ConfigV1alpha1Client) RESTClient() rest.Interface { if c == nil { return nil } diff --git a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/credentialissuerconfig.go b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/credentialissuerconfig.go similarity index 96% rename from generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/credentialissuerconfig.go rename to generated/1.18/client/clientset/versioned/typed/config/v1alpha1/credentialissuerconfig.go index 9e19f681..326522ce 100644 --- a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/credentialissuerconfig.go +++ b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/credentialissuerconfig.go @@ -9,8 +9,8 @@ import ( "context" "time" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/config/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" @@ -44,7 +44,7 @@ type credentialIssuerConfigs struct { } // newCredentialIssuerConfigs returns a CredentialIssuerConfigs -func newCredentialIssuerConfigs(c *CrdV1alpha1Client, namespace string) *credentialIssuerConfigs { +func newCredentialIssuerConfigs(c *ConfigV1alpha1Client, namespace string) *credentialIssuerConfigs { return &credentialIssuerConfigs{ client: c.RESTClient(), ns: namespace, diff --git a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/doc.go b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/doc.go similarity index 100% rename from generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/doc.go rename to generated/1.18/client/clientset/versioned/typed/config/v1alpha1/doc.go diff --git a/generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/fake/doc.go b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/fake/doc.go similarity index 100% rename from generated/1.17/client/clientset/versioned/typed/pinniped/v1alpha1/fake/doc.go rename to generated/1.18/client/clientset/versioned/typed/config/v1alpha1/fake/doc.go diff --git a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_crdpinniped_client.go b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go similarity index 60% rename from generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_crdpinniped_client.go rename to generated/1.18/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go index f89cd01c..665bfd36 100644 --- a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_crdpinniped_client.go +++ b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go @@ -6,22 +6,22 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/config/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) -type FakeCrdV1alpha1 struct { +type FakeConfigV1alpha1 struct { *testing.Fake } -func (c *FakeCrdV1alpha1) CredentialIssuerConfigs(namespace string) v1alpha1.CredentialIssuerConfigInterface { +func (c *FakeConfigV1alpha1) CredentialIssuerConfigs(namespace string) v1alpha1.CredentialIssuerConfigInterface { return &FakeCredentialIssuerConfigs{c, namespace} } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *FakeCrdV1alpha1) RESTClient() rest.Interface { +func (c *FakeConfigV1alpha1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret } diff --git a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_credentialissuerconfig.go b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/fake/fake_credentialissuerconfig.go similarity index 95% rename from generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_credentialissuerconfig.go rename to generated/1.18/client/clientset/versioned/typed/config/v1alpha1/fake/fake_credentialissuerconfig.go index 4800acfc..838975e0 100644 --- a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_credentialissuerconfig.go +++ b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/fake/fake_credentialissuerconfig.go @@ -8,7 +8,7 @@ package fake import ( "context" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -19,13 +19,13 @@ import ( // FakeCredentialIssuerConfigs implements CredentialIssuerConfigInterface type FakeCredentialIssuerConfigs struct { - Fake *FakeCrdV1alpha1 + Fake *FakeConfigV1alpha1 ns string } -var credentialissuerconfigsResource = schema.GroupVersionResource{Group: "crd.pinniped.dev", Version: "v1alpha1", Resource: "credentialissuerconfigs"} +var credentialissuerconfigsResource = schema.GroupVersionResource{Group: "config.pinniped.dev", Version: "v1alpha1", Resource: "credentialissuerconfigs"} -var credentialissuerconfigsKind = schema.GroupVersionKind{Group: "crd.pinniped.dev", Version: "v1alpha1", Kind: "CredentialIssuerConfig"} +var credentialissuerconfigsKind = schema.GroupVersionKind{Group: "config.pinniped.dev", Version: "v1alpha1", Kind: "CredentialIssuerConfig"} // Get takes name of the credentialIssuerConfig, and returns the corresponding credentialIssuerConfig object, and an error if there is any. func (c *FakeCredentialIssuerConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CredentialIssuerConfig, err error) { diff --git a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/generated_expansion.go b/generated/1.18/client/clientset/versioned/typed/config/v1alpha1/generated_expansion.go similarity index 100% rename from generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/generated_expansion.go rename to generated/1.18/client/clientset/versioned/typed/config/v1alpha1/generated_expansion.go diff --git a/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go b/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go index 219013cf..ba62b218 100644 --- a/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go +++ b/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go b/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go index 86bdb932..fd10c706 100644 --- a/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go +++ b/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go @@ -8,7 +8,7 @@ package fake import ( "context" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go b/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go index 1f9444dd..abb575ff 100644 --- a/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go +++ b/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go @@ -6,8 +6,8 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1" - "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1" + "go.pinniped.dev/generated/1.18/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go b/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go index a4e3ba82..0f262177 100644 --- a/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go +++ b/generated/1.18/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go @@ -9,8 +9,8 @@ import ( "context" "time" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/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" diff --git a/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go b/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go index e2394e27..df358ad8 100644 --- a/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go +++ b/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/login/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/client/clientset/versioned/typed/login/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go b/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go index 88795588..3e7ce9dc 100644 --- a/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go +++ b/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go @@ -8,7 +8,7 @@ package fake import ( "context" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/login_client.go b/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/login_client.go index 343255f7..c20b0973 100644 --- a/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/login_client.go +++ b/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/login_client.go @@ -6,8 +6,8 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1" - "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1" + "go.pinniped.dev/generated/1.18/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go b/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go index 8017b464..01e3841d 100644 --- a/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go +++ b/generated/1.18/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go @@ -9,8 +9,8 @@ import ( "context" "time" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/login/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" diff --git a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/credentialrequest.go b/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/credentialrequest.go deleted file mode 100644 index c0bf7543..00000000 --- a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/doc.go b/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/doc.go deleted file mode 100644 index f75bf91f..00000000 --- a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/doc.go +++ /dev/null @@ -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 diff --git a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake/doc.go b/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake/doc.go deleted file mode 100644 index 7879170d..00000000 --- a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake/doc.go +++ /dev/null @@ -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 diff --git a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_credentialrequest.go b/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_credentialrequest.go deleted file mode 100644 index 8d50238e..00000000 --- a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_pinniped_client.go b/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_pinniped_client.go deleted file mode 100644 index f5e3cf92..00000000 --- a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_pinniped_client.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/generated_expansion.go b/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/generated_expansion.go deleted file mode 100644 index d6596a32..00000000 --- a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/generated_expansion.go +++ /dev/null @@ -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{} diff --git a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/pinniped_client.go b/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/pinniped_client.go deleted file mode 100644 index 81b82a77..00000000 --- a/generated/1.18/client/clientset/versioned/typed/pinniped/v1alpha1/pinniped_client.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.18/client/go.mod b/generated/1.18/client/go.mod index 9221e93d..fd79e1b5 100644 --- a/generated/1.18/client/go.mod +++ b/generated/1.18/client/go.mod @@ -1,14 +1,14 @@ // This go.mod file is generated by ./hack/codegen.sh. -module github.com/vmware-tanzu/pinniped/generated/1.18/client +module go.pinniped.dev/generated/1.18/client go 1.13 require ( github.com/go-openapi/spec v0.19.9 - github.com/vmware-tanzu/pinniped/generated/1.18/apis v0.0.0-00010101000000-000000000000 + go.pinniped.dev/generated/1.18/apis v0.0.0-00010101000000-000000000000 k8s.io/apimachinery v0.18.2 k8s.io/client-go v0.18.2 k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c ) -replace github.com/vmware-tanzu/pinniped/generated/1.18/apis => ../apis +replace go.pinniped.dev/generated/1.18/apis => ../apis diff --git a/generated/1.18/client/informers/externalversions/pinniped/interface.go b/generated/1.18/client/informers/externalversions/config/interface.go similarity index 79% rename from generated/1.18/client/informers/externalversions/pinniped/interface.go rename to generated/1.18/client/informers/externalversions/config/interface.go index 30f9de13..887c0914 100644 --- a/generated/1.18/client/informers/externalversions/pinniped/interface.go +++ b/generated/1.18/client/informers/externalversions/config/interface.go @@ -3,11 +3,11 @@ // Code generated by informer-gen. DO NOT EDIT. -package pinniped +package config import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/pinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/client/informers/externalversions/config/v1alpha1" + internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces" ) // Interface provides access to each of this group's versions. diff --git a/generated/1.19/client/informers/externalversions/crdpinniped/v1alpha1/credentialissuerconfig.go b/generated/1.18/client/informers/externalversions/config/v1alpha1/credentialissuerconfig.go similarity index 79% rename from generated/1.19/client/informers/externalversions/crdpinniped/v1alpha1/credentialissuerconfig.go rename to generated/1.18/client/informers/externalversions/config/v1alpha1/credentialissuerconfig.go index fff99914..96c6e375 100644 --- a/generated/1.19/client/informers/externalversions/crdpinniped/v1alpha1/credentialissuerconfig.go +++ b/generated/1.18/client/informers/externalversions/config/v1alpha1/credentialissuerconfig.go @@ -9,10 +9,10 @@ import ( "context" time "time" - crdpinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/listers/crdpinniped/v1alpha1" + configv1alpha1 "go.pinniped.dev/generated/1.18/apis/config/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/config/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -49,16 +49,16 @@ func NewFilteredCredentialIssuerConfigInformer(client versioned.Interface, names if tweakListOptions != nil { tweakListOptions(&options) } - return client.CrdV1alpha1().CredentialIssuerConfigs(namespace).List(context.TODO(), options) + return client.ConfigV1alpha1().CredentialIssuerConfigs(namespace).List(context.TODO(), options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.CrdV1alpha1().CredentialIssuerConfigs(namespace).Watch(context.TODO(), options) + return client.ConfigV1alpha1().CredentialIssuerConfigs(namespace).Watch(context.TODO(), options) }, }, - &crdpinnipedv1alpha1.CredentialIssuerConfig{}, + &configv1alpha1.CredentialIssuerConfig{}, resyncPeriod, indexers, ) @@ -69,7 +69,7 @@ func (f *credentialIssuerConfigInformer) defaultInformer(client versioned.Interf } func (f *credentialIssuerConfigInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&crdpinnipedv1alpha1.CredentialIssuerConfig{}, f.defaultInformer) + return f.factory.InformerFor(&configv1alpha1.CredentialIssuerConfig{}, f.defaultInformer) } func (f *credentialIssuerConfigInformer) Lister() v1alpha1.CredentialIssuerConfigLister { diff --git a/generated/1.17/client/informers/externalversions/crdpinniped/v1alpha1/interface.go b/generated/1.18/client/informers/externalversions/config/v1alpha1/interface.go similarity index 90% rename from generated/1.17/client/informers/externalversions/crdpinniped/v1alpha1/interface.go rename to generated/1.18/client/informers/externalversions/config/v1alpha1/interface.go index 32af8566..71b872b1 100644 --- a/generated/1.17/client/informers/externalversions/crdpinniped/v1alpha1/interface.go +++ b/generated/1.18/client/informers/externalversions/config/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.17/client/informers/externalversions/internalinterfaces" + internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/generated/1.18/client/informers/externalversions/crdpinniped/interface.go b/generated/1.18/client/informers/externalversions/crdpinniped/interface.go deleted file mode 100644 index d9f8cdc6..00000000 --- a/generated/1.18/client/informers/externalversions/crdpinniped/interface.go +++ /dev/null @@ -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 crdpinniped - -import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/crdpinniped/v1alpha1" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" -) - -// 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) -} diff --git a/generated/1.18/client/informers/externalversions/factory.go b/generated/1.18/client/informers/externalversions/factory.go index 60a17908..f3793b09 100644 --- a/generated/1.18/client/informers/externalversions/factory.go +++ b/generated/1.18/client/informers/externalversions/factory.go @@ -10,12 +10,11 @@ import ( sync "sync" time "time" - versioned "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned" - crdpinniped "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/crdpinniped" - idp "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/idp" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" - login "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/login" - pinniped "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/pinniped" + versioned "go.pinniped.dev/generated/1.18/client/clientset/versioned" + config "go.pinniped.dev/generated/1.18/client/informers/externalversions/config" + idp "go.pinniped.dev/generated/1.18/client/informers/externalversions/idp" + internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces" + login "go.pinniped.dev/generated/1.18/client/informers/externalversions/login" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -162,14 +161,13 @@ type SharedInformerFactory interface { ForResource(resource schema.GroupVersionResource) (GenericInformer, error) WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool - Crd() crdpinniped.Interface + Config() config.Interface IDP() idp.Interface Login() login.Interface - Pinniped() pinniped.Interface } -func (f *sharedInformerFactory) Crd() crdpinniped.Interface { - return crdpinniped.New(f, f.namespace, f.tweakListOptions) +func (f *sharedInformerFactory) Config() config.Interface { + return config.New(f, f.namespace, f.tweakListOptions) } func (f *sharedInformerFactory) IDP() idp.Interface { @@ -179,7 +177,3 @@ func (f *sharedInformerFactory) IDP() idp.Interface { func (f *sharedInformerFactory) Login() login.Interface { return login.New(f, f.namespace, f.tweakListOptions) } - -func (f *sharedInformerFactory) Pinniped() pinniped.Interface { - return pinniped.New(f, f.namespace, f.tweakListOptions) -} diff --git a/generated/1.18/client/informers/externalversions/generic.go b/generated/1.18/client/informers/externalversions/generic.go index 91567410..bba1a47a 100644 --- a/generated/1.18/client/informers/externalversions/generic.go +++ b/generated/1.18/client/informers/externalversions/generic.go @@ -8,10 +8,9 @@ package externalversions import ( "fmt" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1" schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" ) @@ -42,9 +41,9 @@ func (f *genericInformer) Lister() cache.GenericLister { // TODO extend this to unknown resources with a client pool func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) { switch resource { - // Group=crd.pinniped.dev, Version=v1alpha1 + // Group=config.pinniped.dev, Version=v1alpha1 case v1alpha1.SchemeGroupVersion.WithResource("credentialissuerconfigs"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Crd().V1alpha1().CredentialIssuerConfigs().Informer()}, nil + return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1alpha1().CredentialIssuerConfigs().Informer()}, nil // Group=idp.pinniped.dev, Version=v1alpha1 case idpv1alpha1.SchemeGroupVersion.WithResource("webhookidentityproviders"): @@ -54,10 +53,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource case loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests"): 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) diff --git a/generated/1.18/client/informers/externalversions/idp/interface.go b/generated/1.18/client/informers/externalversions/idp/interface.go index c688c7c5..b6c033f9 100644 --- a/generated/1.18/client/informers/externalversions/idp/interface.go +++ b/generated/1.18/client/informers/externalversions/idp/interface.go @@ -6,8 +6,8 @@ package idp import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/idp/v1alpha1" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" + v1alpha1 "go.pinniped.dev/generated/1.18/client/informers/externalversions/idp/v1alpha1" + internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces" ) // Interface provides access to each of this group's versions. diff --git a/generated/1.18/client/informers/externalversions/idp/v1alpha1/interface.go b/generated/1.18/client/informers/externalversions/idp/v1alpha1/interface.go index 5418d4be..4445a99a 100644 --- a/generated/1.18/client/informers/externalversions/idp/v1alpha1/interface.go +++ b/generated/1.18/client/informers/externalversions/idp/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" + internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/generated/1.18/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go b/generated/1.18/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go index 6e3d0d01..80c8d5fc 100644 --- a/generated/1.18/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go +++ b/generated/1.18/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go @@ -9,10 +9,10 @@ import ( "context" time "time" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/listers/idp/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/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/idp/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" diff --git a/generated/1.18/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/generated/1.18/client/informers/externalversions/internalinterfaces/factory_interfaces.go index 2a459fb2..4f0b63c9 100644 --- a/generated/1.18/client/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/generated/1.18/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -8,7 +8,7 @@ package internalinterfaces import ( time "time" - versioned "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned" + versioned "go.pinniped.dev/generated/1.18/client/clientset/versioned" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" diff --git a/generated/1.18/client/informers/externalversions/login/interface.go b/generated/1.18/client/informers/externalversions/login/interface.go index e3aa75a6..2ad8f153 100644 --- a/generated/1.18/client/informers/externalversions/login/interface.go +++ b/generated/1.18/client/informers/externalversions/login/interface.go @@ -6,8 +6,8 @@ package login import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/login/v1alpha1" + internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces" + v1alpha1 "go.pinniped.dev/generated/1.18/client/informers/externalversions/login/v1alpha1" ) // Interface provides access to each of this group's versions. diff --git a/generated/1.18/client/informers/externalversions/login/v1alpha1/interface.go b/generated/1.18/client/informers/externalversions/login/v1alpha1/interface.go index f2f904b7..a05bfbfa 100644 --- a/generated/1.18/client/informers/externalversions/login/v1alpha1/interface.go +++ b/generated/1.18/client/informers/externalversions/login/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" + internalinterfaces "go.pinniped.dev/generated/1.18/client/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/generated/1.18/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go b/generated/1.18/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go index 46580308..60b495a7 100644 --- a/generated/1.18/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go +++ b/generated/1.18/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go @@ -9,10 +9,10 @@ import ( "context" time "time" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/listers/login/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.18/apis/login/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/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" diff --git a/generated/1.18/client/informers/externalversions/pinniped/v1alpha1/credentialrequest.go b/generated/1.18/client/informers/externalversions/pinniped/v1alpha1/credentialrequest.go deleted file mode 100644 index cd97df7e..00000000 --- a/generated/1.18/client/informers/externalversions/pinniped/v1alpha1/credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/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()) -} diff --git a/generated/1.18/client/informers/externalversions/pinniped/v1alpha1/interface.go b/generated/1.18/client/informers/externalversions/pinniped/v1alpha1/interface.go deleted file mode 100644 index 11e313e6..00000000 --- a/generated/1.18/client/informers/externalversions/pinniped/v1alpha1/interface.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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} -} diff --git a/generated/1.17/client/listers/crdpinniped/v1alpha1/credentialissuerconfig.go b/generated/1.18/client/listers/config/v1alpha1/credentialissuerconfig.go similarity index 97% rename from generated/1.17/client/listers/crdpinniped/v1alpha1/credentialissuerconfig.go rename to generated/1.18/client/listers/config/v1alpha1/credentialissuerconfig.go index 2eb06e9f..5d8a5ec7 100644 --- a/generated/1.17/client/listers/crdpinniped/v1alpha1/credentialissuerconfig.go +++ b/generated/1.18/client/listers/config/v1alpha1/credentialissuerconfig.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.17/apis/crdpinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/config/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/generated/1.18/client/listers/crdpinniped/v1alpha1/expansion_generated.go b/generated/1.18/client/listers/config/v1alpha1/expansion_generated.go similarity index 100% rename from generated/1.18/client/listers/crdpinniped/v1alpha1/expansion_generated.go rename to generated/1.18/client/listers/config/v1alpha1/expansion_generated.go diff --git a/generated/1.18/client/listers/idp/v1alpha1/webhookidentityprovider.go b/generated/1.18/client/listers/idp/v1alpha1/webhookidentityprovider.go index 33c10813..2ff082df 100644 --- a/generated/1.18/client/listers/idp/v1alpha1/webhookidentityprovider.go +++ b/generated/1.18/client/listers/idp/v1alpha1/webhookidentityprovider.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/generated/1.18/client/listers/login/v1alpha1/tokencredentialrequest.go b/generated/1.18/client/listers/login/v1alpha1/tokencredentialrequest.go index 13ac4240..c84fea19 100644 --- a/generated/1.18/client/listers/login/v1alpha1/tokencredentialrequest.go +++ b/generated/1.18/client/listers/login/v1alpha1/tokencredentialrequest.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.18/apis/login/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/generated/1.18/client/listers/pinniped/v1alpha1/credentialrequest.go b/generated/1.18/client/listers/pinniped/v1alpha1/credentialrequest.go deleted file mode 100644 index 6c6a36bd..00000000 --- a/generated/1.18/client/listers/pinniped/v1alpha1/credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.18/client/listers/pinniped/v1alpha1/expansion_generated.go b/generated/1.18/client/listers/pinniped/v1alpha1/expansion_generated.go deleted file mode 100644 index e39b06ca..00000000 --- a/generated/1.18/client/listers/pinniped/v1alpha1/expansion_generated.go +++ /dev/null @@ -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{} diff --git a/generated/1.18/client/openapi/zz_generated.openapi.go b/generated/1.18/client/openapi/zz_generated.openapi.go index 61ba5d08..1c15426f 100644 --- a/generated/1.18/client/openapi/zz_generated.openapi.go +++ b/generated/1.18/client/openapi/zz_generated.openapi.go @@ -17,83 +17,77 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfig": schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfigKubeConfigInfo": schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfigList": schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStatus": schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStrategy": schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStrategy(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.Condition": schema_118_apis_idp_v1alpha1_Condition(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.TLSSpec": schema_118_apis_idp_v1alpha1_TLSSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProvider": schema_118_apis_idp_v1alpha1_WebhookIdentityProvider(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderList": schema_118_apis_idp_v1alpha1_WebhookIdentityProviderList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderSpec": schema_118_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderStatus": schema_118_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.ClusterCredential": schema_118_apis_login_v1alpha1_ClusterCredential(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.TokenCredentialRequest": schema_118_apis_login_v1alpha1_TokenCredentialRequest(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestList": schema_118_apis_login_v1alpha1_TokenCredentialRequestList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestSpec": schema_118_apis_login_v1alpha1_TokenCredentialRequestSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestStatus": schema_118_apis_login_v1alpha1_TokenCredentialRequestStatus(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1.CredentialRequest": schema_118_apis_pinniped_v1alpha1_CredentialRequest(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestCredential": schema_118_apis_pinniped_v1alpha1_CredentialRequestCredential(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestList": schema_118_apis_pinniped_v1alpha1_CredentialRequestList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestSpec": schema_118_apis_pinniped_v1alpha1_CredentialRequestSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestStatus": schema_118_apis_pinniped_v1alpha1_CredentialRequestStatus(ref), - "github.com/vmware-tanzu/pinniped/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.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.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ExportOptions": schema_pkg_apis_meta_v1_ExportOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), - "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), - "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), - "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), - "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), + "go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfig": schema_118_apis_config_v1alpha1_CredentialIssuerConfig(ref), + "go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfigKubeConfigInfo": schema_118_apis_config_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref), + "go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfigList": schema_118_apis_config_v1alpha1_CredentialIssuerConfigList(ref), + "go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfigStatus": schema_118_apis_config_v1alpha1_CredentialIssuerConfigStatus(ref), + "go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfigStrategy": schema_118_apis_config_v1alpha1_CredentialIssuerConfigStrategy(ref), + "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.Condition": schema_118_apis_idp_v1alpha1_Condition(ref), + "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.TLSSpec": schema_118_apis_idp_v1alpha1_TLSSpec(ref), + "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProvider": schema_118_apis_idp_v1alpha1_WebhookIdentityProvider(ref), + "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderList": schema_118_apis_idp_v1alpha1_WebhookIdentityProviderList(ref), + "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderSpec": schema_118_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref), + "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderStatus": schema_118_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref), + "go.pinniped.dev/generated/1.18/apis/login/v1alpha1.ClusterCredential": schema_118_apis_login_v1alpha1_ClusterCredential(ref), + "go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequest": schema_118_apis_login_v1alpha1_TokenCredentialRequest(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.TokenCredentialRequestStatus": schema_118_apis_login_v1alpha1_TokenCredentialRequestStatus(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.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ExportOptions": schema_pkg_apis_meta_v1_ExportOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), + "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), + "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), + "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), + "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), } } -func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_118_apis_config_v1alpha1_CredentialIssuerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -121,7 +115,7 @@ func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref common.Refe "status": { SchemaProps: spec.SchemaProps{ Description: "Status of the credential issuer.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStatus"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfigStatus"), }, }, }, @@ -129,11 +123,11 @@ func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref common.Refe }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_118_apis_config_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -161,7 +155,7 @@ func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigKubeConfigInfo(r } } -func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_118_apis_config_v1alpha1_CredentialIssuerConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -192,7 +186,7 @@ func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref common. Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfig"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfig"), }, }, }, @@ -203,11 +197,11 @@ func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref common. }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_118_apis_config_v1alpha1_CredentialIssuerConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -221,7 +215,7 @@ func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref commo Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStrategy"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfigStrategy"), }, }, }, @@ -230,7 +224,7 @@ func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref commo "kubeConfigInfo": { SchemaProps: spec.SchemaProps{ Description: "Information needed to form a valid Pinniped-based kubeconfig using this credential issuer.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfigKubeConfigInfo"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfigKubeConfigInfo"), }, }, }, @@ -238,11 +232,11 @@ func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref commo }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfigKubeConfigInfo", "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStrategy"}, + "go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfigKubeConfigInfo", "go.pinniped.dev/generated/1.18/apis/config/v1alpha1.CredentialIssuerConfigStrategy"}, } } -func schema_118_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_118_apis_config_v1alpha1_CredentialIssuerConfigStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -398,13 +392,13 @@ func schema_118_apis_idp_v1alpha1_WebhookIdentityProvider(ref common.ReferenceCa "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec for configuring the identity provider.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderSpec"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status of the identity provider.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderStatus"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderStatus"), }, }, }, @@ -412,7 +406,7 @@ func schema_118_apis_idp_v1alpha1_WebhookIdentityProvider(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderSpec", "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderSpec", "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -448,7 +442,7 @@ func schema_118_apis_idp_v1alpha1_WebhookIdentityProviderList(ref common.Referen Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProvider"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProvider"), }, }, }, @@ -459,7 +453,7 @@ func schema_118_apis_idp_v1alpha1_WebhookIdentityProviderList(ref common.Referen }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.WebhookIdentityProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } @@ -480,7 +474,7 @@ func schema_118_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref common.Referen "tls": { SchemaProps: spec.SchemaProps{ Description: "TLS configuration.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.TLSSpec"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.TLSSpec"), }, }, }, @@ -488,7 +482,7 @@ func schema_118_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref common.Referen }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.TLSSpec"}, + "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.TLSSpec"}, } } @@ -516,7 +510,7 @@ func schema_118_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref common.Refer Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.Condition"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.Condition"), }, }, }, @@ -526,7 +520,7 @@ func schema_118_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref common.Refer }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/idp/v1alpha1.Condition"}, + "go.pinniped.dev/generated/1.18/apis/idp/v1alpha1.Condition"}, } } @@ -600,19 +594,19 @@ func schema_118_apis_login_v1alpha1_TokenCredentialRequest(ref common.ReferenceC }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestSpec"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestStatus"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestSpec", "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestSpec", "go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -648,7 +642,7 @@ func schema_118_apis_login_v1alpha1_TokenCredentialRequestList(ref common.Refere Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.TokenCredentialRequest"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequest"), }, }, }, @@ -659,7 +653,7 @@ func schema_118_apis_login_v1alpha1_TokenCredentialRequestList(ref common.Refere }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.TokenCredentialRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "go.pinniped.dev/generated/1.18/apis/login/v1alpha1.TokenCredentialRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } @@ -693,7 +687,7 @@ func schema_118_apis_login_v1alpha1_TokenCredentialRequestStatus(ref common.Refe "credential": { SchemaProps: spec.SchemaProps{ Description: "A Credential will be returned for a successful credential request.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.ClusterCredential"), + Ref: ref("go.pinniped.dev/generated/1.18/apis/login/v1alpha1.ClusterCredential"), }, }, "message": { @@ -707,216 +701,7 @@ func schema_118_apis_login_v1alpha1_TokenCredentialRequestStatus(ref common.Refe }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/login/v1alpha1.ClusterCredential"}, - } -} - -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("github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestSpec", "github.com/vmware-tanzu/pinniped/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("github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1.CredentialRequest"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/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("github.com/vmware-tanzu/pinniped/generated/1.18/apis/pinniped/v1alpha1.CredentialRequestTokenCredential"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/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("github.com/vmware-tanzu/pinniped/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{ - "github.com/vmware-tanzu/pinniped/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: "", - }, - }, - }, - }, - }, + "go.pinniped.dev/generated/1.18/apis/login/v1alpha1.ClusterCredential"}, } } diff --git a/generated/1.19/crds/crd.pinniped.dev_credentialissuerconfigs.yaml b/generated/1.18/crds/config.pinniped.dev_credentialissuerconfigs.yaml similarity index 97% rename from generated/1.19/crds/crd.pinniped.dev_credentialissuerconfigs.yaml rename to generated/1.18/crds/config.pinniped.dev_credentialissuerconfigs.yaml index e47f8e63..370df951 100644 --- a/generated/1.19/crds/crd.pinniped.dev_credentialissuerconfigs.yaml +++ b/generated/1.18/crds/config.pinniped.dev_credentialissuerconfigs.yaml @@ -6,9 +6,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 creationTimestamp: null - name: credentialissuerconfigs.crd.pinniped.dev + name: credentialissuerconfigs.config.pinniped.dev spec: - group: crd.pinniped.dev + group: config.pinniped.dev names: kind: CredentialIssuerConfig listKind: CredentialIssuerConfigList diff --git a/generated/1.19/README.adoc b/generated/1.19/README.adoc index 4614b1c6..cb788bdd 100644 --- a/generated/1.19/README.adoc +++ b/generated/1.19/README.adoc @@ -5,27 +5,26 @@ == API Reference .Packages -- xref:{anchor_prefix}-crd-pinniped-dev-v1alpha1[$$crd.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}-login-pinniped-dev-v1alpha1[$$login.pinniped.dev/v1alpha1$$] -- xref:{anchor_prefix}-pinniped-dev-v1alpha1[$$pinniped.dev/v1alpha1$$] -[id="{anchor_prefix}-crd-pinniped-dev-v1alpha1"] -=== crd.pinniped.dev/v1alpha1 +[id="{anchor_prefix}-config-pinniped-dev-v1alpha1"] +=== config.pinniped.dev/v1alpha1 -Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. +Package v1alpha1 is the v1alpha1 version of the Pinniped configuration API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfig"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfig"] ==== CredentialIssuerConfig .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfiglist[$$CredentialIssuerConfigList$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfiglist[$$CredentialIssuerConfigList$$] **** [cols="25a,75a", options="header"] @@ -33,18 +32,18 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. | 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`. -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$]__ | Status of the credential issuer. +| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$]__ | Status of the credential issuer. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfigkubeconfiginfo"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfigkubeconfiginfo"] ==== CredentialIssuerConfigKubeConfigInfo .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] **** [cols="25a,75a", options="header"] @@ -57,32 +56,32 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfigstatus"] ==== CredentialIssuerConfigStatus Status of a credential issuer. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfig[$$CredentialIssuerConfig$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfig[$$CredentialIssuerConfig$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`strategies`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfigstrategy[$$CredentialIssuerConfigStrategy$$] array__ | List of integration strategies that were attempted by Pinniped. -| *`kubeConfigInfo`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfigkubeconfiginfo[$$CredentialIssuerConfigKubeConfigInfo$$]__ | Information needed to form a valid Pinniped-based kubeconfig using this credential issuer. +| *`strategies`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfigstrategy[$$CredentialIssuerConfigStrategy$$] array__ | List of integration strategies that were attempted by Pinniped. +| *`kubeConfigInfo`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfigkubeconfiginfo[$$CredentialIssuerConfigKubeConfigInfo$$]__ | Information needed to form a valid Pinniped-based kubeconfig using this credential issuer. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfigstrategy"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfigstrategy"] ==== CredentialIssuerConfigStrategy .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-crdpinniped-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-config-v1alpha1-credentialissuerconfigstatus[$$CredentialIssuerConfigStatus$$] **** [cols="25a,75a", options="header"] @@ -104,14 +103,14 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped identity provider API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-condition"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-condition"] ==== Condition Condition status of a resource (mirrored from the metav1.Condition type added in Kubernetes 1.19). In a future API version we can switch to using the upstream type. See https://github.com/kubernetes/apimachinery/blob/v0.19.0/pkg/apis/meta/v1/types.go#L1353-L1413. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$] **** [cols="25a,75a", options="header"] @@ -126,14 +125,14 @@ Condition status of a resource (mirrored from the metav1.Condition type added in |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-tlsspec"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-tlsspec"] ==== TLSSpec Configuration for configuring TLS on various identity providers. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$] **** [cols="25a,75a", options="header"] @@ -143,14 +142,14 @@ Configuration for configuring TLS on various identity providers. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-webhookidentityprovider"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-webhookidentityprovider"] ==== WebhookIdentityProvider WebhookIdentityProvider describes the configuration of a Pinniped webhook identity provider. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderlist[$$WebhookIdentityProviderList$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderlist[$$WebhookIdentityProviderList$$] **** [cols="25a,75a", options="header"] @@ -158,45 +157,45 @@ WebhookIdentityProvider describes the configuration of a Pinniped webhook identi | 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}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$]__ | Spec for configuring the identity provider. -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$]__ | Status of the identity provider. +| *`spec`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderspec[$$WebhookIdentityProviderSpec$$]__ | Spec for configuring the identity provider. +| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderstatus[$$WebhookIdentityProviderStatus$$]__ | Status of the identity provider. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderspec"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderspec"] ==== WebhookIdentityProviderSpec Spec for configuring a webhook identity provider. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`endpoint`* __string__ | Webhook server endpoint URL. -| *`tls`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-tlsspec[$$TLSSpec$$]__ | TLS configuration. +| *`tls`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-tlsspec[$$TLSSpec$$]__ | TLS configuration. |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderstatus"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-webhookidentityproviderstatus"] ==== WebhookIdentityProviderStatus Status of a webhook identity provider. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-webhookidentityprovider[$$WebhookIdentityProvider$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`conditions`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-idp-v1alpha1-condition[$$Condition$$]__ | Represents the observations of an identity provider's current state. +| *`conditions`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-idp-v1alpha1-condition[$$Condition$$]__ | Represents the observations of an identity provider's current state. |=== @@ -208,14 +207,14 @@ Package v1alpha1 is the v1alpha1 version of the Pinniped login API. -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-clustercredential"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-clustercredential"] ==== ClusterCredential ClusterCredential is the cluster-specific credential returned on a successful credential request. It contains either a valid bearer token or a valid TLS certificate and corresponding private key for the cluster. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$] **** [cols="25a,75a", options="header"] @@ -228,14 +227,14 @@ ClusterCredential is the cluster-specific credential returned on a successful cr |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-tokencredentialrequest"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-tokencredentialrequest"] ==== TokenCredentialRequest TokenCredentialRequest submits an IDP-specific credential to Pinniped in exchange for a cluster-specific credential. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-tokencredentialrequestlist[$$TokenCredentialRequestList$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-tokencredentialrequestlist[$$TokenCredentialRequestList$$] **** [cols="25a,75a", options="header"] @@ -243,21 +242,21 @@ TokenCredentialRequest submits an IDP-specific credential to Pinniped in exchang | 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}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-tokencredentialrequestspec[$$TokenCredentialRequestSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$]__ | +| *`spec`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-tokencredentialrequestspec[$$TokenCredentialRequestSpec$$]__ | +| *`status`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-tokencredentialrequeststatus[$$TokenCredentialRequestStatus$$]__ | |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-tokencredentialrequestspec"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-tokencredentialrequestspec"] ==== TokenCredentialRequestSpec TokenCredentialRequestSpec is the specification of a TokenCredentialRequest, expected on requests to the Pinniped API. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] **** [cols="25a,75a", options="header"] @@ -267,124 +266,21 @@ TokenCredentialRequestSpec is the specification of a TokenCredentialRequest, exp |=== -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-tokencredentialrequeststatus"] +[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-tokencredentialrequeststatus"] ==== TokenCredentialRequestStatus TokenCredentialRequestStatus is the status of a TokenCredentialRequest, returned on responses to the Pinniped API. .Appears In: **** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] +- xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-tokencredentialrequest[$$TokenCredentialRequest$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`credential`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-login-v1alpha1-clustercredential[$$ClusterCredential$$]__ | A Credential will be returned for a successful credential request. +| *`credential`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-login-v1alpha1-clustercredential[$$ClusterCredential$$]__ | 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}-pinniped-dev-v1alpha1"] -=== pinniped.dev/v1alpha1 - -Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API. - - - -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-pinniped-v1alpha1-credentialrequestspec[$$CredentialRequestSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-pinniped-v1alpha1-credentialrequeststatus[$$CredentialRequestStatus$$]__ | -|=== - - -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$] -**** - -[cols="25a,75a", options="header"] -|=== -| Field | Description -| *`type`* __CredentialType__ | Type of credential. -| *`token`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-pinniped-v1alpha1-credentialrequesttokencredential[$$CredentialRequestTokenCredential$$]__ | Token credential (when Type == TokenCredentialType). -|=== - - -[id="{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-pinniped-v1alpha1-credentialrequest[$$CredentialRequest$$] -**** - -[cols="25a,75a", options="header"] -|=== -| Field | Description -| *`credential`* __xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-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}-github-com-vmware-tanzu-pinniped-generated-1-19-apis-pinniped-v1alpha1-credentialrequesttokencredential"] -==== CredentialRequestTokenCredential - -CredentialRequestTokenCredential holds a bearer token issued by an upstream identity provider. - -.Appears In: -**** -- xref:{anchor_prefix}-github-com-vmware-tanzu-pinniped-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. -|=== - - diff --git a/generated/1.17/apis/pinniped/doc.go b/generated/1.19/apis/config/doc.go similarity index 51% rename from generated/1.17/apis/pinniped/doc.go rename to generated/1.19/apis/config/doc.go index fea6e743..4e7aa82f 100644 --- a/generated/1.17/apis/pinniped/doc.go +++ b/generated/1.19/apis/config/doc.go @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 // +k8s:deepcopy-gen=package -// +groupName=pinniped.dev +// +groupName=config.pinniped.dev -// Package pinniped is the internal version of the Pinniped aggregated API. -package pinniped +// Package config is the internal version of the Pinniped configuration API. +package config diff --git a/generated/1.19/apis/pinniped/v1alpha1/conversion.go b/generated/1.19/apis/config/types.go similarity index 86% rename from generated/1.19/apis/pinniped/v1alpha1/conversion.go rename to generated/1.19/apis/config/types.go index 226f6135..5a44b975 100644 --- a/generated/1.19/apis/pinniped/v1alpha1/conversion.go +++ b/generated/1.19/apis/config/types.go @@ -1,4 +1,4 @@ // Copyright 2020 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -package v1alpha1 +package config diff --git a/generated/1.18/apis/crdpinniped/v1alpha1/conversion.go b/generated/1.19/apis/config/v1alpha1/conversion.go similarity index 100% rename from generated/1.18/apis/crdpinniped/v1alpha1/conversion.go rename to generated/1.19/apis/config/v1alpha1/conversion.go diff --git a/generated/1.18/apis/crdpinniped/v1alpha1/defaults.go b/generated/1.19/apis/config/v1alpha1/defaults.go similarity index 100% rename from generated/1.18/apis/crdpinniped/v1alpha1/defaults.go rename to generated/1.19/apis/config/v1alpha1/defaults.go diff --git a/generated/1.19/apis/pinniped/v1alpha1/doc.go b/generated/1.19/apis/config/v1alpha1/doc.go similarity index 52% rename from generated/1.19/apis/pinniped/v1alpha1/doc.go rename to generated/1.19/apis/config/v1alpha1/doc.go index 44b51e57..dd783577 100644 --- a/generated/1.19/apis/pinniped/v1alpha1/doc.go +++ b/generated/1.19/apis/config/v1alpha1/doc.go @@ -3,9 +3,9 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped +// +k8s:conversion-gen=go.pinniped.dev/generated/1.19/apis/config // +k8s:defaulter-gen=TypeMeta -// +groupName=pinniped.dev +// +groupName=config.pinniped.dev -// Package v1alpha1 is the v1alpha1 version of the Pinniped aggregated API. +// Package v1alpha1 is the v1alpha1 version of the Pinniped configuration API. package v1alpha1 diff --git a/generated/1.18/apis/crdpinniped/v1alpha1/register.go b/generated/1.19/apis/config/v1alpha1/register.go similarity index 97% rename from generated/1.18/apis/crdpinniped/v1alpha1/register.go rename to generated/1.19/apis/config/v1alpha1/register.go index fbc08a50..18936d7e 100644 --- a/generated/1.18/apis/crdpinniped/v1alpha1/register.go +++ b/generated/1.19/apis/config/v1alpha1/register.go @@ -9,7 +9,7 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" ) -const GroupName = "crd.pinniped.dev" +const GroupName = "config.pinniped.dev" // SchemeGroupVersion is group version used to register these objects. var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} diff --git a/generated/1.19/apis/crdpinniped/v1alpha1/types.go b/generated/1.19/apis/config/v1alpha1/types.go similarity index 100% rename from generated/1.19/apis/crdpinniped/v1alpha1/types.go rename to generated/1.19/apis/config/v1alpha1/types.go diff --git a/generated/1.19/apis/crdpinniped/v1alpha1/zz_generated.conversion.go b/generated/1.19/apis/config/v1alpha1/zz_generated.conversion.go similarity index 100% rename from generated/1.19/apis/crdpinniped/v1alpha1/zz_generated.conversion.go rename to generated/1.19/apis/config/v1alpha1/zz_generated.conversion.go diff --git a/generated/1.19/apis/crdpinniped/v1alpha1/zz_generated.deepcopy.go b/generated/1.19/apis/config/v1alpha1/zz_generated.deepcopy.go similarity index 100% rename from generated/1.19/apis/crdpinniped/v1alpha1/zz_generated.deepcopy.go rename to generated/1.19/apis/config/v1alpha1/zz_generated.deepcopy.go diff --git a/generated/1.18/apis/crdpinniped/v1alpha1/zz_generated.defaults.go b/generated/1.19/apis/config/v1alpha1/zz_generated.defaults.go similarity index 100% rename from generated/1.18/apis/crdpinniped/v1alpha1/zz_generated.defaults.go rename to generated/1.19/apis/config/v1alpha1/zz_generated.defaults.go diff --git a/generated/1.17/apis/crdpinniped/zz_generated.deepcopy.go b/generated/1.19/apis/config/zz_generated.deepcopy.go similarity index 90% rename from generated/1.17/apis/crdpinniped/zz_generated.deepcopy.go rename to generated/1.19/apis/config/zz_generated.deepcopy.go index 4c7831c5..eabadefc 100644 --- a/generated/1.17/apis/crdpinniped/zz_generated.deepcopy.go +++ b/generated/1.19/apis/config/zz_generated.deepcopy.go @@ -5,4 +5,4 @@ // Code generated by deepcopy-gen. DO NOT EDIT. -package crdpinniped +package config diff --git a/generated/1.19/apis/crdpinniped/doc.go b/generated/1.19/apis/crdpinniped/doc.go deleted file mode 100644 index f896e3cc..00000000 --- a/generated/1.19/apis/crdpinniped/doc.go +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -// +k8s:deepcopy-gen=package -// +groupName=crd.pinniped.dev - -// Package crdpinniped is the internal version of the Pinniped CRD-based API. -package crdpinniped diff --git a/generated/1.19/apis/crdpinniped/types.go b/generated/1.19/apis/crdpinniped/types.go deleted file mode 100644 index 0cabbe15..00000000 --- a/generated/1.19/apis/crdpinniped/types.go +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -package crdpinniped diff --git a/generated/1.19/apis/crdpinniped/v1alpha1/defaults.go b/generated/1.19/apis/crdpinniped/v1alpha1/defaults.go deleted file mode 100644 index 830aa010..00000000 --- a/generated/1.19/apis/crdpinniped/v1alpha1/defaults.go +++ /dev/null @@ -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) -} diff --git a/generated/1.19/apis/crdpinniped/v1alpha1/doc.go b/generated/1.19/apis/crdpinniped/v1alpha1/doc.go deleted file mode 100644 index 83fb1e89..00000000 --- a/generated/1.19/apis/crdpinniped/v1alpha1/doc.go +++ /dev/null @@ -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=github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped -// +k8s:defaulter-gen=TypeMeta -// +groupName=crd.pinniped.dev - -// Package v1alpha1 is the v1alpha1 version of the Pinniped CRD-based API. -package v1alpha1 diff --git a/generated/1.19/apis/crdpinniped/v1alpha1/zz_generated.defaults.go b/generated/1.19/apis/crdpinniped/v1alpha1/zz_generated.defaults.go deleted file mode 100644 index 427b2e2e..00000000 --- a/generated/1.19/apis/crdpinniped/v1alpha1/zz_generated.defaults.go +++ /dev/null @@ -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 -} diff --git a/generated/1.19/apis/go.mod b/generated/1.19/apis/go.mod index 0a3ae3cf..5f704018 100644 --- a/generated/1.19/apis/go.mod +++ b/generated/1.19/apis/go.mod @@ -1,5 +1,5 @@ // This go.mod file is generated by ./hack/codegen.sh. -module github.com/vmware-tanzu/pinniped/generated/1.19/apis +module go.pinniped.dev/generated/1.19/apis go 1.13 diff --git a/generated/1.19/apis/idp/v1alpha1/doc.go b/generated/1.19/apis/idp/v1alpha1/doc.go index 418f696d..acc44b96 100644 --- a/generated/1.19/apis/idp/v1alpha1/doc.go +++ b/generated/1.19/apis/idp/v1alpha1/doc.go @@ -3,7 +3,7 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp +// +k8s:conversion-gen=go.pinniped.dev/generated/1.19/apis/idp // +k8s:defaulter-gen=TypeMeta // +groupName=idp.pinniped.dev // +groupGoName=IDP diff --git a/generated/1.19/apis/login/v1alpha1/doc.go b/generated/1.19/apis/login/v1alpha1/doc.go index 022f5869..c8c06d88 100644 --- a/generated/1.19/apis/login/v1alpha1/doc.go +++ b/generated/1.19/apis/login/v1alpha1/doc.go @@ -3,7 +3,7 @@ // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package -// +k8s:conversion-gen=github.com/vmware-tanzu/pinniped/generated/1.19/apis/login +// +k8s:conversion-gen=go.pinniped.dev/generated/1.19/apis/login // +k8s:defaulter-gen=TypeMeta // +groupName=login.pinniped.dev diff --git a/generated/1.19/apis/login/v1alpha1/zz_generated.conversion.go b/generated/1.19/apis/login/v1alpha1/zz_generated.conversion.go index f71a29bc..2289296c 100644 --- a/generated/1.19/apis/login/v1alpha1/zz_generated.conversion.go +++ b/generated/1.19/apis/login/v1alpha1/zz_generated.conversion.go @@ -10,7 +10,7 @@ package v1alpha1 import ( unsafe "unsafe" - login "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login" + login "go.pinniped.dev/generated/1.19/apis/login" conversion "k8s.io/apimachinery/pkg/conversion" runtime "k8s.io/apimachinery/pkg/runtime" ) diff --git a/generated/1.19/apis/pinniped/register.go b/generated/1.19/apis/pinniped/register.go deleted file mode 100644 index 73e69e17..00000000 --- a/generated/1.19/apis/pinniped/register.go +++ /dev/null @@ -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 -} diff --git a/generated/1.19/apis/pinniped/types.go b/generated/1.19/apis/pinniped/types.go deleted file mode 100644 index 8f46e2a4..00000000 --- a/generated/1.19/apis/pinniped/types.go +++ /dev/null @@ -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 -} diff --git a/generated/1.19/apis/pinniped/v1alpha1/defaults.go b/generated/1.19/apis/pinniped/v1alpha1/defaults.go deleted file mode 100644 index 830aa010..00000000 --- a/generated/1.19/apis/pinniped/v1alpha1/defaults.go +++ /dev/null @@ -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) -} diff --git a/generated/1.19/apis/pinniped/v1alpha1/register.go b/generated/1.19/apis/pinniped/v1alpha1/register.go deleted file mode 100644 index 04a72c6f..00000000 --- a/generated/1.19/apis/pinniped/v1alpha1/register.go +++ /dev/null @@ -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() -} diff --git a/generated/1.19/apis/pinniped/v1alpha1/types.go b/generated/1.19/apis/pinniped/v1alpha1/types.go deleted file mode 100644 index ac077576..00000000 --- a/generated/1.19/apis/pinniped/v1alpha1/types.go +++ /dev/null @@ -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"` -} diff --git a/generated/1.19/apis/pinniped/v1alpha1/zz_generated.conversion.go b/generated/1.19/apis/pinniped/v1alpha1/zz_generated.conversion.go deleted file mode 100644 index 11e348b6..00000000 --- a/generated/1.19/apis/pinniped/v1alpha1/zz_generated.conversion.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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) -} diff --git a/generated/1.19/apis/pinniped/v1alpha1/zz_generated.deepcopy.go b/generated/1.19/apis/pinniped/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index c44aa5a5..00000000 --- a/generated/1.19/apis/pinniped/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -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 -} diff --git a/generated/1.19/apis/pinniped/v1alpha1/zz_generated.defaults.go b/generated/1.19/apis/pinniped/v1alpha1/zz_generated.defaults.go deleted file mode 100644 index 427b2e2e..00000000 --- a/generated/1.19/apis/pinniped/v1alpha1/zz_generated.defaults.go +++ /dev/null @@ -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 -} diff --git a/generated/1.19/apis/pinniped/zz_generated.deepcopy.go b/generated/1.19/apis/pinniped/zz_generated.deepcopy.go deleted file mode 100644 index 29f35918..00000000 --- a/generated/1.19/apis/pinniped/zz_generated.deepcopy.go +++ /dev/null @@ -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 -} diff --git a/generated/1.19/client/clientset/versioned/clientset.go b/generated/1.19/client/clientset/versioned/clientset.go index 9e61f40d..29731075 100644 --- a/generated/1.19/client/clientset/versioned/clientset.go +++ b/generated/1.19/client/clientset/versioned/clientset.go @@ -8,10 +8,9 @@ package versioned import ( "fmt" - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/pinniped/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" + loginv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/login/v1alpha1" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" @@ -19,25 +18,23 @@ import ( type Interface interface { Discovery() discovery.DiscoveryInterface - CrdV1alpha1() crdv1alpha1.CrdV1alpha1Interface + ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface - PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface } // Clientset contains the clients for groups. Each group has exactly one // version included in a Clientset. type Clientset struct { *discovery.DiscoveryClient - crdV1alpha1 *crdv1alpha1.CrdV1alpha1Client - iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client - loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client - pinnipedV1alpha1 *pinnipedv1alpha1.PinnipedV1alpha1Client + configV1alpha1 *configv1alpha1.ConfigV1alpha1Client + iDPV1alpha1 *idpv1alpha1.IDPV1alpha1Client + loginV1alpha1 *loginv1alpha1.LoginV1alpha1Client } -// CrdV1alpha1 retrieves the CrdV1alpha1Client -func (c *Clientset) CrdV1alpha1() crdv1alpha1.CrdV1alpha1Interface { - return c.crdV1alpha1 +// ConfigV1alpha1 retrieves the ConfigV1alpha1Client +func (c *Clientset) ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface { + return c.configV1alpha1 } // IDPV1alpha1 retrieves the IDPV1alpha1Client @@ -50,11 +47,6 @@ func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface { return c.loginV1alpha1 } -// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client -func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface { - return c.pinnipedV1alpha1 -} - // Discovery retrieves the DiscoveryClient func (c *Clientset) Discovery() discovery.DiscoveryInterface { if c == nil { @@ -76,7 +68,7 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { } var cs Clientset var err error - cs.crdV1alpha1, err = crdv1alpha1.NewForConfig(&configShallowCopy) + cs.configV1alpha1, err = configv1alpha1.NewForConfig(&configShallowCopy) if err != nil { return nil, err } @@ -88,10 +80,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { if err != nil { return nil, err } - cs.pinnipedV1alpha1, err = pinnipedv1alpha1.NewForConfig(&configShallowCopy) - if err != nil { - return nil, err - } cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) if err != nil { @@ -104,10 +92,9 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { // panics if there is an error in the config. func NewForConfigOrDie(c *rest.Config) *Clientset { var cs Clientset - cs.crdV1alpha1 = crdv1alpha1.NewForConfigOrDie(c) + cs.configV1alpha1 = configv1alpha1.NewForConfigOrDie(c) cs.iDPV1alpha1 = idpv1alpha1.NewForConfigOrDie(c) cs.loginV1alpha1 = loginv1alpha1.NewForConfigOrDie(c) - cs.pinnipedV1alpha1 = pinnipedv1alpha1.NewForConfigOrDie(c) cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) return &cs @@ -116,10 +103,9 @@ func NewForConfigOrDie(c *rest.Config) *Clientset { // New creates a new Clientset for the given RESTClient. func New(c rest.Interface) *Clientset { var cs Clientset - cs.crdV1alpha1 = crdv1alpha1.New(c) + cs.configV1alpha1 = configv1alpha1.New(c) cs.iDPV1alpha1 = idpv1alpha1.New(c) cs.loginV1alpha1 = loginv1alpha1.New(c) - cs.pinnipedV1alpha1 = pinnipedv1alpha1.New(c) cs.DiscoveryClient = discovery.NewDiscoveryClient(c) return &cs diff --git a/generated/1.19/client/clientset/versioned/fake/clientset_generated.go b/generated/1.19/client/clientset/versioned/fake/clientset_generated.go index a7c189d8..627c9388 100644 --- a/generated/1.19/client/clientset/versioned/fake/clientset_generated.go +++ b/generated/1.19/client/clientset/versioned/fake/clientset_generated.go @@ -6,15 +6,13 @@ package fake import ( - clientset "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1" - fakecrdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1" - fakeidpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/login/v1alpha1" - fakeloginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1" - fakepinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake" + clientset "go.pinniped.dev/generated/1.19/client/clientset/versioned" + configv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/config/v1alpha1" + fakeconfigv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/fake" + idpv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1" + 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" + fakeloginv1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" @@ -69,9 +67,9 @@ func (c *Clientset) Tracker() testing.ObjectTracker { var _ clientset.Interface = &Clientset{} -// CrdV1alpha1 retrieves the CrdV1alpha1Client -func (c *Clientset) CrdV1alpha1() crdv1alpha1.CrdV1alpha1Interface { - return &fakecrdv1alpha1.FakeCrdV1alpha1{Fake: &c.Fake} +// ConfigV1alpha1 retrieves the ConfigV1alpha1Client +func (c *Clientset) ConfigV1alpha1() configv1alpha1.ConfigV1alpha1Interface { + return &fakeconfigv1alpha1.FakeConfigV1alpha1{Fake: &c.Fake} } // IDPV1alpha1 retrieves the IDPV1alpha1Client @@ -83,8 +81,3 @@ func (c *Clientset) IDPV1alpha1() idpv1alpha1.IDPV1alpha1Interface { func (c *Clientset) LoginV1alpha1() loginv1alpha1.LoginV1alpha1Interface { return &fakeloginv1alpha1.FakeLoginV1alpha1{Fake: &c.Fake} } - -// PinnipedV1alpha1 retrieves the PinnipedV1alpha1Client -func (c *Clientset) PinnipedV1alpha1() pinnipedv1alpha1.PinnipedV1alpha1Interface { - return &fakepinnipedv1alpha1.FakePinnipedV1alpha1{Fake: &c.Fake} -} diff --git a/generated/1.19/client/clientset/versioned/fake/register.go b/generated/1.19/client/clientset/versioned/fake/register.go index 8f4efd86..fcb06408 100644 --- a/generated/1.19/client/clientset/versioned/fake/register.go +++ b/generated/1.19/client/clientset/versioned/fake/register.go @@ -6,10 +6,9 @@ package fake import ( - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -21,10 +20,9 @@ var scheme = runtime.NewScheme() var codecs = serializer.NewCodecFactory(scheme) var localSchemeBuilder = runtime.SchemeBuilder{ - crdv1alpha1.AddToScheme, + configv1alpha1.AddToScheme, idpv1alpha1.AddToScheme, loginv1alpha1.AddToScheme, - pinnipedv1alpha1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/generated/1.19/client/clientset/versioned/scheme/register.go b/generated/1.19/client/clientset/versioned/scheme/register.go index 64dc1735..1c7c6a21 100644 --- a/generated/1.19/client/clientset/versioned/scheme/register.go +++ b/generated/1.19/client/clientset/versioned/scheme/register.go @@ -6,10 +6,9 @@ package scheme import ( - crdv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -21,10 +20,9 @@ var Scheme = runtime.NewScheme() var Codecs = serializer.NewCodecFactory(Scheme) var ParameterCodec = runtime.NewParameterCodec(Scheme) var localSchemeBuilder = runtime.SchemeBuilder{ - crdv1alpha1.AddToScheme, + configv1alpha1.AddToScheme, idpv1alpha1.AddToScheme, loginv1alpha1.AddToScheme, - pinnipedv1alpha1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/crdpinniped_client.go b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/config_client.go similarity index 54% rename from generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/crdpinniped_client.go rename to generated/1.19/client/clientset/versioned/typed/config/v1alpha1/config_client.go index 5bac27db..04fa22e5 100644 --- a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/crdpinniped_client.go +++ b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/config_client.go @@ -6,27 +6,27 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + "go.pinniped.dev/generated/1.19/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) -type CrdV1alpha1Interface interface { +type ConfigV1alpha1Interface interface { RESTClient() rest.Interface CredentialIssuerConfigsGetter } -// CrdV1alpha1Client is used to interact with features provided by the crd.pinniped.dev group. -type CrdV1alpha1Client struct { +// ConfigV1alpha1Client is used to interact with features provided by the config.pinniped.dev group. +type ConfigV1alpha1Client struct { restClient rest.Interface } -func (c *CrdV1alpha1Client) CredentialIssuerConfigs(namespace string) CredentialIssuerConfigInterface { +func (c *ConfigV1alpha1Client) CredentialIssuerConfigs(namespace string) CredentialIssuerConfigInterface { return newCredentialIssuerConfigs(c, namespace) } -// NewForConfig creates a new CrdV1alpha1Client for the given config. -func NewForConfig(c *rest.Config) (*CrdV1alpha1Client, error) { +// NewForConfig creates a new ConfigV1alpha1Client for the given config. +func NewForConfig(c *rest.Config) (*ConfigV1alpha1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -35,12 +35,12 @@ func NewForConfig(c *rest.Config) (*CrdV1alpha1Client, error) { if err != nil { return nil, err } - return &CrdV1alpha1Client{client}, nil + return &ConfigV1alpha1Client{client}, nil } -// NewForConfigOrDie creates a new CrdV1alpha1Client for the given config and +// NewForConfigOrDie creates a new ConfigV1alpha1Client for the given config and // panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *CrdV1alpha1Client { +func NewForConfigOrDie(c *rest.Config) *ConfigV1alpha1Client { client, err := NewForConfig(c) if err != nil { panic(err) @@ -48,9 +48,9 @@ func NewForConfigOrDie(c *rest.Config) *CrdV1alpha1Client { return client } -// New creates a new CrdV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *CrdV1alpha1Client { - return &CrdV1alpha1Client{c} +// New creates a new ConfigV1alpha1Client for the given RESTClient. +func New(c rest.Interface) *ConfigV1alpha1Client { + return &ConfigV1alpha1Client{c} } func setConfigDefaults(config *rest.Config) error { @@ -68,7 +68,7 @@ func setConfigDefaults(config *rest.Config) error { // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *CrdV1alpha1Client) RESTClient() rest.Interface { +func (c *ConfigV1alpha1Client) RESTClient() rest.Interface { if c == nil { return nil } diff --git a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/credentialissuerconfig.go b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/credentialissuerconfig.go similarity index 96% rename from generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/credentialissuerconfig.go rename to generated/1.19/client/clientset/versioned/typed/config/v1alpha1/credentialissuerconfig.go index 4fe779e2..1c42ec4c 100644 --- a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/credentialissuerconfig.go +++ b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/credentialissuerconfig.go @@ -9,8 +9,8 @@ import ( "context" "time" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/config/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" @@ -44,7 +44,7 @@ type credentialIssuerConfigs struct { } // newCredentialIssuerConfigs returns a CredentialIssuerConfigs -func newCredentialIssuerConfigs(c *CrdV1alpha1Client, namespace string) *credentialIssuerConfigs { +func newCredentialIssuerConfigs(c *ConfigV1alpha1Client, namespace string) *credentialIssuerConfigs { return &credentialIssuerConfigs{ client: c.RESTClient(), ns: namespace, diff --git a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/doc.go b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/doc.go similarity index 100% rename from generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/doc.go rename to generated/1.19/client/clientset/versioned/typed/config/v1alpha1/doc.go diff --git a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/doc.go b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/fake/doc.go similarity index 100% rename from generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/doc.go rename to generated/1.19/client/clientset/versioned/typed/config/v1alpha1/fake/doc.go diff --git a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_crdpinniped_client.go b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go similarity index 60% rename from generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_crdpinniped_client.go rename to generated/1.19/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go index a8c9a44b..5c1235c5 100644 --- a/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_crdpinniped_client.go +++ b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/fake/fake_config_client.go @@ -6,22 +6,22 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned/typed/crdpinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/config/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) -type FakeCrdV1alpha1 struct { +type FakeConfigV1alpha1 struct { *testing.Fake } -func (c *FakeCrdV1alpha1) CredentialIssuerConfigs(namespace string) v1alpha1.CredentialIssuerConfigInterface { +func (c *FakeConfigV1alpha1) CredentialIssuerConfigs(namespace string) v1alpha1.CredentialIssuerConfigInterface { return &FakeCredentialIssuerConfigs{c, namespace} } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *FakeCrdV1alpha1) RESTClient() rest.Interface { +func (c *FakeConfigV1alpha1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret } diff --git a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_credentialissuerconfig.go b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/fake/fake_credentialissuerconfig.go similarity index 95% rename from generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_credentialissuerconfig.go rename to generated/1.19/client/clientset/versioned/typed/config/v1alpha1/fake/fake_credentialissuerconfig.go index 95b51a15..8921f050 100644 --- a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/fake_credentialissuerconfig.go +++ b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/fake/fake_credentialissuerconfig.go @@ -8,7 +8,7 @@ package fake import ( "context" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -19,13 +19,13 @@ import ( // FakeCredentialIssuerConfigs implements CredentialIssuerConfigInterface type FakeCredentialIssuerConfigs struct { - Fake *FakeCrdV1alpha1 + Fake *FakeConfigV1alpha1 ns string } -var credentialissuerconfigsResource = schema.GroupVersionResource{Group: "crd.pinniped.dev", Version: "v1alpha1", Resource: "credentialissuerconfigs"} +var credentialissuerconfigsResource = schema.GroupVersionResource{Group: "config.pinniped.dev", Version: "v1alpha1", Resource: "credentialissuerconfigs"} -var credentialissuerconfigsKind = schema.GroupVersionKind{Group: "crd.pinniped.dev", Version: "v1alpha1", Kind: "CredentialIssuerConfig"} +var credentialissuerconfigsKind = schema.GroupVersionKind{Group: "config.pinniped.dev", Version: "v1alpha1", Kind: "CredentialIssuerConfig"} // Get takes name of the credentialIssuerConfig, and returns the corresponding credentialIssuerConfig object, and an error if there is any. func (c *FakeCredentialIssuerConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CredentialIssuerConfig, err error) { diff --git a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/generated_expansion.go b/generated/1.19/client/clientset/versioned/typed/config/v1alpha1/generated_expansion.go similarity index 100% rename from generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/generated_expansion.go rename to generated/1.19/client/clientset/versioned/typed/config/v1alpha1/generated_expansion.go diff --git a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/doc.go b/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/doc.go deleted file mode 100644 index f75bf91f..00000000 --- a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/doc.go +++ /dev/null @@ -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 diff --git a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/doc.go b/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/doc.go deleted file mode 100644 index 7879170d..00000000 --- a/generated/1.19/client/clientset/versioned/typed/crdpinniped/v1alpha1/fake/doc.go +++ /dev/null @@ -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 diff --git a/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go b/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go index 07b69374..3181fd18 100644 --- a/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go +++ b/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_idp_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go b/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go index 79531ea1..3e31b6eb 100644 --- a/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go +++ b/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/fake/fake_webhookidentityprovider.go @@ -8,7 +8,7 @@ package fake import ( "context" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go b/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go index 3c731d3e..78af6a58 100644 --- a/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go +++ b/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/idp_client.go @@ -6,8 +6,8 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" - "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" + "go.pinniped.dev/generated/1.19/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go b/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go index e8918487..05948c7f 100644 --- a/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go +++ b/generated/1.19/client/clientset/versioned/typed/idp/v1alpha1/webhookidentityprovider.go @@ -9,8 +9,8 @@ import ( "context" "time" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/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" diff --git a/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go b/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go index a2cc8bae..e328216c 100644 --- a/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go +++ b/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake/fake_login_client.go @@ -6,7 +6,7 @@ package fake import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/typed/login/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/client/clientset/versioned/typed/login/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go b/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go index f5296758..454421cc 100644 --- a/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go +++ b/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/fake/fake_tokencredentialrequest.go @@ -8,7 +8,7 @@ package fake import ( "context" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/login_client.go b/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/login_client.go index d57cd281..267173ab 100644 --- a/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/login_client.go +++ b/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/login_client.go @@ -6,8 +6,8 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" - "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" + "go.pinniped.dev/generated/1.19/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) diff --git a/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go b/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go index c9b110af..ad2ca7a4 100644 --- a/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go +++ b/generated/1.19/client/clientset/versioned/typed/login/v1alpha1/tokencredentialrequest.go @@ -9,8 +9,8 @@ import ( "context" "time" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/scheme" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/login/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" diff --git a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/credentialrequest.go b/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/credentialrequest.go deleted file mode 100644 index 8133af94..00000000 --- a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" - scheme "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/doc.go b/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/doc.go deleted file mode 100644 index f75bf91f..00000000 --- a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/doc.go +++ /dev/null @@ -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 diff --git a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake/doc.go b/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake/doc.go deleted file mode 100644 index 7879170d..00000000 --- a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake/doc.go +++ /dev/null @@ -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 diff --git a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_credentialrequest.go b/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_credentialrequest.go deleted file mode 100644 index 19a99073..00000000 --- a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_pinniped_client.go b/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_pinniped_client.go deleted file mode 100644 index e11b09f1..00000000 --- a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/fake/fake_pinniped_client.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/generated_expansion.go b/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/generated_expansion.go deleted file mode 100644 index d6596a32..00000000 --- a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/generated_expansion.go +++ /dev/null @@ -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{} diff --git a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/pinniped_client.go b/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/pinniped_client.go deleted file mode 100644 index 8640a2d4..00000000 --- a/generated/1.19/client/clientset/versioned/typed/pinniped/v1alpha1/pinniped_client.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/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 -} diff --git a/generated/1.19/client/go.mod b/generated/1.19/client/go.mod index a9aa4cee..515c737c 100644 --- a/generated/1.19/client/go.mod +++ b/generated/1.19/client/go.mod @@ -1,14 +1,14 @@ // This go.mod file is generated by ./hack/codegen.sh. -module github.com/vmware-tanzu/pinniped/generated/1.19/client +module go.pinniped.dev/generated/1.19/client go 1.13 require ( github.com/go-openapi/spec v0.19.9 - github.com/vmware-tanzu/pinniped/generated/1.19/apis v0.0.0-00010101000000-000000000000 + go.pinniped.dev/generated/1.19/apis v0.0.0-00010101000000-000000000000 k8s.io/apimachinery v0.19.0 k8s.io/client-go v0.19.0 k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6 ) -replace github.com/vmware-tanzu/pinniped/generated/1.19/apis => ../apis +replace go.pinniped.dev/generated/1.19/apis => ../apis diff --git a/generated/1.19/client/informers/externalversions/pinniped/interface.go b/generated/1.19/client/informers/externalversions/config/interface.go similarity index 79% rename from generated/1.19/client/informers/externalversions/pinniped/interface.go rename to generated/1.19/client/informers/externalversions/config/interface.go index 90f87409..d9393a7f 100644 --- a/generated/1.19/client/informers/externalversions/pinniped/interface.go +++ b/generated/1.19/client/informers/externalversions/config/interface.go @@ -3,11 +3,11 @@ // Code generated by informer-gen. DO NOT EDIT. -package pinniped +package config import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/pinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/client/informers/externalversions/config/v1alpha1" + internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces" ) // Interface provides access to each of this group's versions. diff --git a/generated/1.18/client/informers/externalversions/crdpinniped/v1alpha1/credentialissuerconfig.go b/generated/1.19/client/informers/externalversions/config/v1alpha1/credentialissuerconfig.go similarity index 79% rename from generated/1.18/client/informers/externalversions/crdpinniped/v1alpha1/credentialissuerconfig.go rename to generated/1.19/client/informers/externalversions/config/v1alpha1/credentialissuerconfig.go index 000f547f..8376021b 100644 --- a/generated/1.18/client/informers/externalversions/crdpinniped/v1alpha1/credentialissuerconfig.go +++ b/generated/1.19/client/informers/externalversions/config/v1alpha1/credentialissuerconfig.go @@ -9,10 +9,10 @@ import ( "context" time "time" - crdpinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/apis/crdpinniped/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.18/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.18/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.18/client/listers/crdpinniped/v1alpha1" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + versioned "go.pinniped.dev/generated/1.19/client/clientset/versioned" + internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces" + v1alpha1 "go.pinniped.dev/generated/1.19/client/listers/config/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -49,16 +49,16 @@ func NewFilteredCredentialIssuerConfigInformer(client versioned.Interface, names if tweakListOptions != nil { tweakListOptions(&options) } - return client.CrdV1alpha1().CredentialIssuerConfigs(namespace).List(context.TODO(), options) + return client.ConfigV1alpha1().CredentialIssuerConfigs(namespace).List(context.TODO(), options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.CrdV1alpha1().CredentialIssuerConfigs(namespace).Watch(context.TODO(), options) + return client.ConfigV1alpha1().CredentialIssuerConfigs(namespace).Watch(context.TODO(), options) }, }, - &crdpinnipedv1alpha1.CredentialIssuerConfig{}, + &configv1alpha1.CredentialIssuerConfig{}, resyncPeriod, indexers, ) @@ -69,7 +69,7 @@ func (f *credentialIssuerConfigInformer) defaultInformer(client versioned.Interf } func (f *credentialIssuerConfigInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&crdpinnipedv1alpha1.CredentialIssuerConfig{}, f.defaultInformer) + return f.factory.InformerFor(&configv1alpha1.CredentialIssuerConfig{}, f.defaultInformer) } func (f *credentialIssuerConfigInformer) Lister() v1alpha1.CredentialIssuerConfigLister { diff --git a/generated/1.19/client/informers/externalversions/crdpinniped/v1alpha1/interface.go b/generated/1.19/client/informers/externalversions/config/v1alpha1/interface.go similarity index 90% rename from generated/1.19/client/informers/externalversions/crdpinniped/v1alpha1/interface.go rename to generated/1.19/client/informers/externalversions/config/v1alpha1/interface.go index c347b07d..65e3d109 100644 --- a/generated/1.19/client/informers/externalversions/crdpinniped/v1alpha1/interface.go +++ b/generated/1.19/client/informers/externalversions/config/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" + internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/generated/1.19/client/informers/externalversions/crdpinniped/interface.go b/generated/1.19/client/informers/externalversions/crdpinniped/interface.go deleted file mode 100644 index 68700a93..00000000 --- a/generated/1.19/client/informers/externalversions/crdpinniped/interface.go +++ /dev/null @@ -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 crdpinniped - -import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/crdpinniped/v1alpha1" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" -) - -// 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) -} diff --git a/generated/1.19/client/informers/externalversions/factory.go b/generated/1.19/client/informers/externalversions/factory.go index 374c2175..5f503b85 100644 --- a/generated/1.19/client/informers/externalversions/factory.go +++ b/generated/1.19/client/informers/externalversions/factory.go @@ -10,12 +10,11 @@ import ( sync "sync" time "time" - versioned "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - crdpinniped "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/crdpinniped" - idp "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/idp" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" - login "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/login" - pinniped "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/pinniped" + versioned "go.pinniped.dev/generated/1.19/client/clientset/versioned" + config "go.pinniped.dev/generated/1.19/client/informers/externalversions/config" + idp "go.pinniped.dev/generated/1.19/client/informers/externalversions/idp" + internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces" + login "go.pinniped.dev/generated/1.19/client/informers/externalversions/login" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -162,14 +161,13 @@ type SharedInformerFactory interface { ForResource(resource schema.GroupVersionResource) (GenericInformer, error) WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool - Crd() crdpinniped.Interface + Config() config.Interface IDP() idp.Interface Login() login.Interface - Pinniped() pinniped.Interface } -func (f *sharedInformerFactory) Crd() crdpinniped.Interface { - return crdpinniped.New(f, f.namespace, f.tweakListOptions) +func (f *sharedInformerFactory) Config() config.Interface { + return config.New(f, f.namespace, f.tweakListOptions) } func (f *sharedInformerFactory) IDP() idp.Interface { @@ -179,7 +177,3 @@ func (f *sharedInformerFactory) IDP() idp.Interface { func (f *sharedInformerFactory) Login() login.Interface { return login.New(f, f.namespace, f.tweakListOptions) } - -func (f *sharedInformerFactory) Pinniped() pinniped.Interface { - return pinniped.New(f, f.namespace, f.tweakListOptions) -} diff --git a/generated/1.19/client/informers/externalversions/generic.go b/generated/1.19/client/informers/externalversions/generic.go index 0822548c..6a761df3 100644 --- a/generated/1.19/client/informers/externalversions/generic.go +++ b/generated/1.19/client/informers/externalversions/generic.go @@ -8,10 +8,9 @@ package externalversions import ( "fmt" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" ) @@ -42,9 +41,9 @@ func (f *genericInformer) Lister() cache.GenericLister { // TODO extend this to unknown resources with a client pool func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) { switch resource { - // Group=crd.pinniped.dev, Version=v1alpha1 + // Group=config.pinniped.dev, Version=v1alpha1 case v1alpha1.SchemeGroupVersion.WithResource("credentialissuerconfigs"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Crd().V1alpha1().CredentialIssuerConfigs().Informer()}, nil + return &genericInformer{resource: resource.GroupResource(), informer: f.Config().V1alpha1().CredentialIssuerConfigs().Informer()}, nil // Group=idp.pinniped.dev, Version=v1alpha1 case idpv1alpha1.SchemeGroupVersion.WithResource("webhookidentityproviders"): @@ -54,10 +53,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource case loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests"): 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) diff --git a/generated/1.19/client/informers/externalversions/idp/interface.go b/generated/1.19/client/informers/externalversions/idp/interface.go index b733b37b..8094d853 100644 --- a/generated/1.19/client/informers/externalversions/idp/interface.go +++ b/generated/1.19/client/informers/externalversions/idp/interface.go @@ -6,8 +6,8 @@ package idp import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/idp/v1alpha1" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" + v1alpha1 "go.pinniped.dev/generated/1.19/client/informers/externalversions/idp/v1alpha1" + internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces" ) // Interface provides access to each of this group's versions. diff --git a/generated/1.19/client/informers/externalversions/idp/v1alpha1/interface.go b/generated/1.19/client/informers/externalversions/idp/v1alpha1/interface.go index fc01241c..bc3981a3 100644 --- a/generated/1.19/client/informers/externalversions/idp/v1alpha1/interface.go +++ b/generated/1.19/client/informers/externalversions/idp/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" + internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/generated/1.19/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go b/generated/1.19/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go index 9fc53a0a..5d8814a0 100644 --- a/generated/1.19/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go +++ b/generated/1.19/client/informers/externalversions/idp/v1alpha1/webhookidentityprovider.go @@ -9,10 +9,10 @@ import ( "context" time "time" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/listers/idp/v1alpha1" + idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" + versioned "go.pinniped.dev/generated/1.19/client/clientset/versioned" + internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces" + v1alpha1 "go.pinniped.dev/generated/1.19/client/listers/idp/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" diff --git a/generated/1.19/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/generated/1.19/client/informers/externalversions/internalinterfaces/factory_interfaces.go index ab068725..d61d2ae9 100644 --- a/generated/1.19/client/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/generated/1.19/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -8,7 +8,7 @@ package internalinterfaces import ( time "time" - versioned "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" + versioned "go.pinniped.dev/generated/1.19/client/clientset/versioned" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" diff --git a/generated/1.19/client/informers/externalversions/login/interface.go b/generated/1.19/client/informers/externalversions/login/interface.go index 66539ff8..bc2da52e 100644 --- a/generated/1.19/client/informers/externalversions/login/interface.go +++ b/generated/1.19/client/informers/externalversions/login/interface.go @@ -6,8 +6,8 @@ package login import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/login/v1alpha1" + internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces" + v1alpha1 "go.pinniped.dev/generated/1.19/client/informers/externalversions/login/v1alpha1" ) // Interface provides access to each of this group's versions. diff --git a/generated/1.19/client/informers/externalversions/login/v1alpha1/interface.go b/generated/1.19/client/informers/externalversions/login/v1alpha1/interface.go index bd257f1b..830a2743 100644 --- a/generated/1.19/client/informers/externalversions/login/v1alpha1/interface.go +++ b/generated/1.19/client/informers/externalversions/login/v1alpha1/interface.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" + internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces" ) // Interface provides access to all the informers in this group version. diff --git a/generated/1.19/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go b/generated/1.19/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go index 6c6a909c..ce50801d 100644 --- a/generated/1.19/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go +++ b/generated/1.19/client/informers/externalversions/login/v1alpha1/tokencredentialrequest.go @@ -9,10 +9,10 @@ import ( "context" time "time" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/client/listers/login/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" + versioned "go.pinniped.dev/generated/1.19/client/clientset/versioned" + internalinterfaces "go.pinniped.dev/generated/1.19/client/informers/externalversions/internalinterfaces" + v1alpha1 "go.pinniped.dev/generated/1.19/client/listers/login/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" diff --git a/generated/1.19/client/informers/externalversions/pinniped/v1alpha1/credentialrequest.go b/generated/1.19/client/informers/externalversions/pinniped/v1alpha1/credentialrequest.go deleted file mode 100644 index f2bcb3f6..00000000 --- a/generated/1.19/client/informers/externalversions/pinniped/v1alpha1/credentialrequest.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" - versioned "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - internalinterfaces "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/internalinterfaces" - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/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()) -} diff --git a/generated/1.19/client/informers/externalversions/pinniped/v1alpha1/interface.go b/generated/1.19/client/informers/externalversions/pinniped/v1alpha1/interface.go deleted file mode 100644 index fbd68cc2..00000000 --- a/generated/1.19/client/informers/externalversions/pinniped/v1alpha1/interface.go +++ /dev/null @@ -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 "github.com/vmware-tanzu/pinniped/generated/1.19/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} -} diff --git a/generated/1.19/client/listers/crdpinniped/v1alpha1/credentialissuerconfig.go b/generated/1.19/client/listers/config/v1alpha1/credentialissuerconfig.go similarity index 97% rename from generated/1.19/client/listers/crdpinniped/v1alpha1/credentialissuerconfig.go rename to generated/1.19/client/listers/config/v1alpha1/credentialissuerconfig.go index 1495567f..79d9060d 100644 --- a/generated/1.19/client/listers/crdpinniped/v1alpha1/credentialissuerconfig.go +++ b/generated/1.19/client/listers/config/v1alpha1/credentialissuerconfig.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/generated/1.19/client/listers/crdpinniped/v1alpha1/expansion_generated.go b/generated/1.19/client/listers/config/v1alpha1/expansion_generated.go similarity index 100% rename from generated/1.19/client/listers/crdpinniped/v1alpha1/expansion_generated.go rename to generated/1.19/client/listers/config/v1alpha1/expansion_generated.go diff --git a/generated/1.19/client/listers/idp/v1alpha1/webhookidentityprovider.go b/generated/1.19/client/listers/idp/v1alpha1/webhookidentityprovider.go index 2e69ad89..93c7de14 100644 --- a/generated/1.19/client/listers/idp/v1alpha1/webhookidentityprovider.go +++ b/generated/1.19/client/listers/idp/v1alpha1/webhookidentityprovider.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/generated/1.19/client/listers/login/v1alpha1/tokencredentialrequest.go b/generated/1.19/client/listers/login/v1alpha1/tokencredentialrequest.go index 5a9dba46..93425395 100644 --- a/generated/1.19/client/listers/login/v1alpha1/tokencredentialrequest.go +++ b/generated/1.19/client/listers/login/v1alpha1/tokencredentialrequest.go @@ -6,7 +6,7 @@ package v1alpha1 import ( - v1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" + v1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" diff --git a/generated/1.19/client/listers/pinniped/v1alpha1/credentialrequest.go b/generated/1.19/client/listers/pinniped/v1alpha1/credentialrequest.go deleted file mode 100644 index c3e435a1..00000000 --- a/generated/1.19/client/listers/pinniped/v1alpha1/credentialrequest.go +++ /dev/null @@ -1,55 +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 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" - "k8s.io/apimachinery/pkg/api/errors" - "k8s.io/apimachinery/pkg/labels" - "k8s.io/client-go/tools/cache" -) - -// CredentialRequestLister helps list CredentialRequests. -// All objects returned here must be treated as read-only. -type CredentialRequestLister interface { - // List lists all CredentialRequests in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha1.CredentialRequest, err error) - // Get retrieves the CredentialRequest from the index for a given name. - // Objects returned here must be treated as read-only. - 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 -} diff --git a/generated/1.19/client/listers/pinniped/v1alpha1/expansion_generated.go b/generated/1.19/client/listers/pinniped/v1alpha1/expansion_generated.go deleted file mode 100644 index e39b06ca..00000000 --- a/generated/1.19/client/listers/pinniped/v1alpha1/expansion_generated.go +++ /dev/null @@ -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{} diff --git a/generated/1.19/client/openapi/zz_generated.openapi.go b/generated/1.19/client/openapi/zz_generated.openapi.go index 1f243c61..5a4cef84 100644 --- a/generated/1.19/client/openapi/zz_generated.openapi.go +++ b/generated/1.19/client/openapi/zz_generated.openapi.go @@ -17,84 +17,78 @@ import ( func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfig": schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfigKubeConfigInfo": schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfigList": schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStatus": schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStrategy": schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStrategy(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.Condition": schema_119_apis_idp_v1alpha1_Condition(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.TLSSpec": schema_119_apis_idp_v1alpha1_TLSSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProvider": schema_119_apis_idp_v1alpha1_WebhookIdentityProvider(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderList": schema_119_apis_idp_v1alpha1_WebhookIdentityProviderList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderSpec": schema_119_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderStatus": schema_119_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.ClusterCredential": schema_119_apis_login_v1alpha1_ClusterCredential(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.TokenCredentialRequest": schema_119_apis_login_v1alpha1_TokenCredentialRequest(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestList": schema_119_apis_login_v1alpha1_TokenCredentialRequestList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestSpec": schema_119_apis_login_v1alpha1_TokenCredentialRequestSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestStatus": schema_119_apis_login_v1alpha1_TokenCredentialRequestStatus(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequest": schema_119_apis_pinniped_v1alpha1_CredentialRequest(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestCredential": schema_119_apis_pinniped_v1alpha1_CredentialRequestCredential(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestList": schema_119_apis_pinniped_v1alpha1_CredentialRequestList(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestSpec": schema_119_apis_pinniped_v1alpha1_CredentialRequestSpec(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestStatus": schema_119_apis_pinniped_v1alpha1_CredentialRequestStatus(ref), - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestTokenCredential": schema_119_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.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.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ExportOptions": schema_pkg_apis_meta_v1_ExportOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), - "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), - "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), - "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), - "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), - "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), + "go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfig": schema_119_apis_config_v1alpha1_CredentialIssuerConfig(ref), + "go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfigKubeConfigInfo": schema_119_apis_config_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref), + "go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfigList": schema_119_apis_config_v1alpha1_CredentialIssuerConfigList(ref), + "go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfigStatus": schema_119_apis_config_v1alpha1_CredentialIssuerConfigStatus(ref), + "go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfigStrategy": schema_119_apis_config_v1alpha1_CredentialIssuerConfigStrategy(ref), + "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.Condition": schema_119_apis_idp_v1alpha1_Condition(ref), + "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.TLSSpec": schema_119_apis_idp_v1alpha1_TLSSpec(ref), + "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProvider": schema_119_apis_idp_v1alpha1_WebhookIdentityProvider(ref), + "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderList": schema_119_apis_idp_v1alpha1_WebhookIdentityProviderList(ref), + "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderSpec": schema_119_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref), + "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderStatus": schema_119_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref), + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1.ClusterCredential": schema_119_apis_login_v1alpha1_ClusterCredential(ref), + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1.TokenCredentialRequest": schema_119_apis_login_v1alpha1_TokenCredentialRequest(ref), + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestList": schema_119_apis_login_v1alpha1_TokenCredentialRequestList(ref), + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestSpec": schema_119_apis_login_v1alpha1_TokenCredentialRequestSpec(ref), + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestStatus": schema_119_apis_login_v1alpha1_TokenCredentialRequestStatus(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.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ExportOptions": schema_pkg_apis_meta_v1_ExportOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), + "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), + "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), + "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), + "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), + "k8s.io/apimachinery/pkg/version.Info": schema_k8sio_apimachinery_pkg_version_Info(ref), } } -func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_119_apis_config_v1alpha1_CredentialIssuerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -122,7 +116,7 @@ func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref common.Refe "status": { SchemaProps: spec.SchemaProps{ Description: "Status of the credential issuer.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStatus"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfigStatus"), }, }, }, @@ -130,11 +124,11 @@ func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfig(ref common.Refe }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfigStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } -func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_119_apis_config_v1alpha1_CredentialIssuerConfigKubeConfigInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -162,7 +156,7 @@ func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigKubeConfigInfo(r } } -func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_119_apis_config_v1alpha1_CredentialIssuerConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -193,7 +187,7 @@ func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref common. Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfig"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfig"), }, }, }, @@ -204,11 +198,11 @@ func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigList(ref common. }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfig", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } -func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_119_apis_config_v1alpha1_CredentialIssuerConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -222,7 +216,7 @@ func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref commo Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStrategy"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfigStrategy"), }, }, }, @@ -231,7 +225,7 @@ func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref commo "kubeConfigInfo": { SchemaProps: spec.SchemaProps{ Description: "Information needed to form a valid Pinniped-based kubeconfig using this credential issuer.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfigKubeConfigInfo"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfigKubeConfigInfo"), }, }, }, @@ -239,11 +233,11 @@ func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStatus(ref commo }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfigKubeConfigInfo", "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1.CredentialIssuerConfigStrategy"}, + "go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfigKubeConfigInfo", "go.pinniped.dev/generated/1.19/apis/config/v1alpha1.CredentialIssuerConfigStrategy"}, } } -func schema_119_apis_crdpinniped_v1alpha1_CredentialIssuerConfigStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_119_apis_config_v1alpha1_CredentialIssuerConfigStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -399,13 +393,13 @@ func schema_119_apis_idp_v1alpha1_WebhookIdentityProvider(ref common.ReferenceCa "spec": { SchemaProps: spec.SchemaProps{ Description: "Spec for configuring the identity provider.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderSpec"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Description: "Status of the identity provider.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderStatus"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderStatus"), }, }, }, @@ -413,7 +407,7 @@ func schema_119_apis_idp_v1alpha1_WebhookIdentityProvider(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderSpec", "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderSpec", "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProviderStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -449,7 +443,7 @@ func schema_119_apis_idp_v1alpha1_WebhookIdentityProviderList(ref common.Referen Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProvider"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProvider"), }, }, }, @@ -460,7 +454,7 @@ func schema_119_apis_idp_v1alpha1_WebhookIdentityProviderList(ref common.Referen }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.WebhookIdentityProvider", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } @@ -481,7 +475,7 @@ func schema_119_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref common.Referen "tls": { SchemaProps: spec.SchemaProps{ Description: "TLS configuration.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.TLSSpec"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.TLSSpec"), }, }, }, @@ -489,7 +483,7 @@ func schema_119_apis_idp_v1alpha1_WebhookIdentityProviderSpec(ref common.Referen }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.TLSSpec"}, + "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.TLSSpec"}, } } @@ -517,7 +511,7 @@ func schema_119_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref common.Refer Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.Condition"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.Condition"), }, }, }, @@ -527,7 +521,7 @@ func schema_119_apis_idp_v1alpha1_WebhookIdentityProviderStatus(ref common.Refer }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1.Condition"}, + "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1.Condition"}, } } @@ -601,19 +595,19 @@ func schema_119_apis_login_v1alpha1_TokenCredentialRequest(ref common.ReferenceC }, "spec": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestSpec"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestStatus"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestSpec", "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestSpec", "go.pinniped.dev/generated/1.19/apis/login/v1alpha1.TokenCredentialRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, } } @@ -649,7 +643,7 @@ func schema_119_apis_login_v1alpha1_TokenCredentialRequestList(ref common.Refere Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.TokenCredentialRequest"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/login/v1alpha1.TokenCredentialRequest"), }, }, }, @@ -660,7 +654,7 @@ func schema_119_apis_login_v1alpha1_TokenCredentialRequestList(ref common.Refere }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.TokenCredentialRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1.TokenCredentialRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, } } @@ -694,7 +688,7 @@ func schema_119_apis_login_v1alpha1_TokenCredentialRequestStatus(ref common.Refe "credential": { SchemaProps: spec.SchemaProps{ Description: "A Credential will be returned for a successful credential request.", - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.ClusterCredential"), + Ref: ref("go.pinniped.dev/generated/1.19/apis/login/v1alpha1.ClusterCredential"), }, }, "message": { @@ -708,216 +702,7 @@ func schema_119_apis_login_v1alpha1_TokenCredentialRequestStatus(ref common.Refe }, }, Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1.ClusterCredential"}, - } -} - -func schema_119_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("github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestStatus"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestSpec", "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, - } -} - -func schema_119_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_119_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("github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequest"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequest", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, - } -} - -func schema_119_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("github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestTokenCredential"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestTokenCredential"}, - } -} - -func schema_119_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("github.com/vmware-tanzu/pinniped/generated/1.19/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{ - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1.CredentialRequestCredential"}, - } -} - -func schema_119_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: "", - }, - }, - }, - }, - }, + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1.ClusterCredential"}, } } diff --git a/generated/1.17/crds/crd.pinniped.dev_credentialissuerconfigs.yaml b/generated/1.19/crds/config.pinniped.dev_credentialissuerconfigs.yaml similarity index 97% rename from generated/1.17/crds/crd.pinniped.dev_credentialissuerconfigs.yaml rename to generated/1.19/crds/config.pinniped.dev_credentialissuerconfigs.yaml index e47f8e63..370df951 100644 --- a/generated/1.17/crds/crd.pinniped.dev_credentialissuerconfigs.yaml +++ b/generated/1.19/crds/config.pinniped.dev_credentialissuerconfigs.yaml @@ -6,9 +6,9 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.4.0 creationTimestamp: null - name: credentialissuerconfigs.crd.pinniped.dev + name: credentialissuerconfigs.config.pinniped.dev spec: - group: crd.pinniped.dev + group: config.pinniped.dev names: kind: CredentialIssuerConfig listKind: CredentialIssuerConfigList diff --git a/go.mod b/go.mod index adbfaba8..956767d2 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/vmware-tanzu/pinniped +module go.pinniped.dev go 1.14 @@ -15,8 +15,8 @@ require ( github.com/spf13/cobra v1.0.0 github.com/spf13/pflag v1.0.5 github.com/stretchr/testify v1.6.1 - github.com/vmware-tanzu/pinniped/generated/1.19/apis v0.0.0-00010101000000-000000000000 - github.com/vmware-tanzu/pinniped/generated/1.19/client v0.0.0-00010101000000-000000000000 + go.pinniped.dev/generated/1.19/apis v0.0.0-00010101000000-000000000000 + go.pinniped.dev/generated/1.19/client v0.0.0-00010101000000-000000000000 golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 k8s.io/api v0.19.0 k8s.io/apimachinery v0.19.0 @@ -30,6 +30,6 @@ require ( ) replace ( - github.com/vmware-tanzu/pinniped/generated/1.19/apis => ./generated/1.19/apis - github.com/vmware-tanzu/pinniped/generated/1.19/client => ./generated/1.19/client + go.pinniped.dev/generated/1.19/apis => ./generated/1.19/apis + go.pinniped.dev/generated/1.19/client => ./generated/1.19/client ) diff --git a/hack/lib/docs/config.yaml b/hack/lib/docs/config.yaml index ba696fbf..891093bf 100644 --- a/hack/lib/docs/config.yaml +++ b/hack/lib/docs/config.yaml @@ -3,9 +3,8 @@ processor: # Ignore internal API versions ignoreGroupVersions: - - "crd.pinniped.dev/crdpinniped" + - "config.pinniped.dev/config" - "idp.pinniped.dev/idp" - - "pinniped.dev/pinniped" - "login.pinniped.dev/login" ignoreFields: - "TypeMeta$" diff --git a/hack/lib/kube-versions.txt b/hack/lib/kube-versions.txt index 35e945d1..9ffdb3ab 100644 --- a/hack/lib/kube-versions.txt +++ b/hack/lib/kube-versions.txt @@ -1,3 +1,3 @@ -1.17.11 -1.18.2 1.19.0 +1.18.2 +1.17.11 diff --git a/hack/lib/update-codegen.sh b/hack/lib/update-codegen.sh index 0ec3f87b..57ef3d37 100755 --- a/hack/lib/update-codegen.sh +++ b/hack/lib/update-codegen.sh @@ -5,7 +5,7 @@ set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" KUBE_VERSIONS=("$@") -BASE_PKG="github.com/vmware-tanzu/pinniped" +BASE_PKG="go.pinniped.dev" export GO111MODULE="on" # If we're not running in a container, assume that we want to loop over and run each build @@ -109,7 +109,7 @@ echo "generating API-related code for our public API groups..." deepcopy \ "${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/apis" \ "${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/apis" \ - "pinniped:v1alpha1 crdpinniped:v1alpha1 idp:v1alpha1 login:v1alpha1" \ + "config:v1alpha1 idp:v1alpha1 login:v1alpha1" \ --go-header-file "${ROOT}/hack/boilerplate.go.txt" 2>&1 | sed "s|^|gen-api > |" ) @@ -121,7 +121,7 @@ echo "generating API-related code for our internal API groups..." "${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/client" \ "${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/apis" \ "${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/apis" \ - "pinniped:v1alpha1 crdpinniped:v1alpha1 idp:v1alpha1 login:v1alpha1" \ + "config:v1alpha1 idp:v1alpha1 login:v1alpha1" \ --go-header-file "${ROOT}/hack/boilerplate.go.txt" 2>&1 | sed "s|^|gen-int-api > |" ) @@ -136,7 +136,7 @@ echo "generating client code for our public API groups..." client,lister,informer \ "${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/client" \ "${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/apis" \ - "pinniped:v1alpha1 crdpinniped:v1alpha1 idp:v1alpha1 login:v1alpha1" \ + "config:v1alpha1 idp:v1alpha1 login:v1alpha1" \ --go-header-file "${ROOT}/hack/boilerplate.go.txt" 2>&1 | sed "s|^|gen-client > |" ) @@ -155,6 +155,6 @@ crd-ref-docs \ # Generate CRD YAML (cd apis && - controller-gen paths=./crdpinniped/v1alpha1 crd:trivialVersions=true output:crd:artifacts:config=../crds && + controller-gen paths=./config/v1alpha1 crd:trivialVersions=true output:crd:artifacts:config=../crds && controller-gen paths=./idp/v1alpha1 crd:trivialVersions=true output:crd:artifacts:config=../crds ) diff --git a/internal/apiserver/apiserver.go b/internal/apiserver/apiserver.go index b893e766..2cd3ce57 100644 --- a/internal/apiserver/apiserver.go +++ b/internal/apiserver/apiserver.go @@ -18,11 +18,9 @@ import ( "k8s.io/client-go/pkg/version" "k8s.io/klog/v2" - loginapi "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" - pinnipedapi "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/internal/registry/credentialrequest" + loginapi "go.pinniped.dev/generated/1.19/apis/login" + loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" + "go.pinniped.dev/internal/registry/credentialrequest" ) var ( @@ -34,8 +32,6 @@ var ( //nolint: gochecknoinits func init() { - utilruntime.Must(pinnipedv1alpha1.AddToScheme(scheme)) - utilruntime.Must(pinnipedapi.AddToScheme(scheme)) utilruntime.Must(loginv1alpha1.AddToScheme(scheme)) utilruntime.Must(loginapi.AddToScheme(scheme)) @@ -101,21 +97,17 @@ func (c completedConfig) New() (*PinnipedServer, error) { GenericAPIServer: genericServer, } - restHandler := credentialrequest.NewREST(c.ExtraConfig.TokenAuthenticator, c.ExtraConfig.Issuer) - for gvr, storage := range map[schema.GroupVersionResource]rest.Storage{ - pinnipedv1alpha1.SchemeGroupVersion.WithResource("credentialrequests"): restHandler.PinnipedV1alpha1Storage(), - loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests"): restHandler.LoginV1alpha1Storage(), - } { - if err := s.GenericAPIServer.InstallAPIGroup(&genericapiserver.APIGroupInfo{ - PrioritizedVersions: []schema.GroupVersion{gvr.GroupVersion()}, - VersionedResourcesStorageMap: map[string]map[string]rest.Storage{gvr.Version: {gvr.Resource: storage}}, - OptionsExternalVersion: &schema.GroupVersion{Version: "v1"}, - Scheme: scheme, - ParameterCodec: metav1.ParameterCodec, - NegotiatedSerializer: Codecs, - }); err != nil { - return nil, fmt.Errorf("could not install API group %s: %w", gvr.String(), err) - } + gvr := loginv1alpha1.SchemeGroupVersion.WithResource("tokencredentialrequests") + storage := credentialrequest.NewREST(c.ExtraConfig.TokenAuthenticator, c.ExtraConfig.Issuer) + if err := s.GenericAPIServer.InstallAPIGroup(&genericapiserver.APIGroupInfo{ + PrioritizedVersions: []schema.GroupVersion{gvr.GroupVersion()}, + VersionedResourcesStorageMap: map[string]map[string]rest.Storage{gvr.Version: {gvr.Resource: storage}}, + OptionsExternalVersion: &schema.GroupVersion{Version: "v1"}, + Scheme: scheme, + ParameterCodec: metav1.ParameterCodec, + NegotiatedSerializer: Codecs, + }); err != nil { + return nil, fmt.Errorf("could not install API group %s: %w", gvr.String(), err) } s.GenericAPIServer.AddPostStartHookOrDie("start-controllers", diff --git a/internal/certauthority/kubecertauthority/kubecertauthority.go b/internal/certauthority/kubecertauthority/kubecertauthority.go index 5b0e83a3..da30b506 100644 --- a/internal/certauthority/kubecertauthority/kubecertauthority.go +++ b/internal/certauthority/kubecertauthority/kubecertauthority.go @@ -22,8 +22,8 @@ import ( "k8s.io/client-go/tools/remotecommand" "k8s.io/klog/v2" - "github.com/vmware-tanzu/pinniped/internal/certauthority" - "github.com/vmware-tanzu/pinniped/internal/constable" + "go.pinniped.dev/internal/certauthority" + "go.pinniped.dev/internal/constable" ) // ErrNoKubeControllerManagerPod is returned when no kube-controller-manager pod is found on the cluster. diff --git a/internal/certauthority/kubecertauthority/kubecertauthority_test.go b/internal/certauthority/kubecertauthority/kubecertauthority_test.go index 9c6eb611..0c2dc0c7 100644 --- a/internal/certauthority/kubecertauthority/kubecertauthority_test.go +++ b/internal/certauthority/kubecertauthority/kubecertauthority_test.go @@ -21,7 +21,7 @@ import ( kubernetesfake "k8s.io/client-go/kubernetes/fake" "k8s.io/klog/v2" - "github.com/vmware-tanzu/pinniped/internal/testutil" + "go.pinniped.dev/internal/testutil" ) type fakePodExecutor struct { diff --git a/internal/client/client.go b/internal/client/client.go index 54412b4e..b88af506 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -14,8 +14,8 @@ import ( "k8s.io/client-go/tools/clientcmd" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" - "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" + "go.pinniped.dev/generated/1.19/client/clientset/versioned" ) // ErrLoginFailed is returned by ExchangeToken when the server rejects the login request. diff --git a/internal/client/client_test.go b/internal/client/client_test.go index 2955d216..8ba5ff66 100644 --- a/internal/client/client_test.go +++ b/internal/client/client_test.go @@ -15,8 +15,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" clientauthenticationv1beta1 "k8s.io/client-go/pkg/apis/clientauthentication/v1beta1" - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" - "github.com/vmware-tanzu/pinniped/internal/testutil" + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" + "go.pinniped.dev/internal/testutil" ) func TestExchangeToken(t *testing.T) { diff --git a/internal/controller/apicerts/apiservice_updater.go b/internal/controller/apicerts/apiservice_updater.go index 30b35256..5bed311c 100644 --- a/internal/controller/apicerts/apiservice_updater.go +++ b/internal/controller/apicerts/apiservice_updater.go @@ -11,8 +11,8 @@ import ( "k8s.io/klog/v2" aggregatorclient "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset" - pinnipedcontroller "github.com/vmware-tanzu/pinniped/internal/controller" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" + pinnipedcontroller "go.pinniped.dev/internal/controller" + "go.pinniped.dev/internal/controllerlib" ) type apiServiceUpdaterController struct { diff --git a/internal/controller/apicerts/apiservice_updater_test.go b/internal/controller/apicerts/apiservice_updater_test.go index 2c4ae134..40372192 100644 --- a/internal/controller/apicerts/apiservice_updater_test.go +++ b/internal/controller/apicerts/apiservice_updater_test.go @@ -22,9 +22,9 @@ import ( apiregistrationv1 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1" aggregatorfake "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/fake" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/testutil" + loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/testutil" ) func TestAPIServiceUpdaterControllerOptions(t *testing.T) { @@ -43,7 +43,7 @@ func TestAPIServiceUpdaterControllerOptions(t *testing.T) { _ = NewAPIServiceUpdaterController( installedInNamespace, certsSecretResourceName, - pinnipedv1alpha1.SchemeGroupVersion.Version+"."+pinnipedv1alpha1.GroupName, + loginv1alpha1.SchemeGroupVersion.Version+"."+loginv1alpha1.GroupName, nil, secretsInformer, observableWithInformerOption.WithInformer, // make it possible to observe the behavior of the Filters @@ -123,7 +123,7 @@ func TestAPIServiceUpdaterControllerSync(t *testing.T) { subject = NewAPIServiceUpdaterController( installedInNamespace, certsSecretResourceName, - pinnipedv1alpha1.SchemeGroupVersion.Version+"."+pinnipedv1alpha1.GroupName, + loginv1alpha1.SchemeGroupVersion.Version+"."+loginv1alpha1.GroupName, aggregatorAPIClient, kubeInformers.Core().V1().Secrets(), controllerlib.WithInformer, @@ -199,7 +199,7 @@ func TestAPIServiceUpdaterControllerSync(t *testing.T) { it.Before(func() { apiService := &apiregistrationv1.APIService{ ObjectMeta: metav1.ObjectMeta{ - Name: pinnipedv1alpha1.SchemeGroupVersion.Version + "." + pinnipedv1alpha1.GroupName, + Name: loginv1alpha1.SchemeGroupVersion.Version + "." + loginv1alpha1.GroupName, }, Spec: apiregistrationv1.APIServiceSpec{ CABundle: nil, @@ -218,7 +218,7 @@ func TestAPIServiceUpdaterControllerSync(t *testing.T) { // Make sure we updated the APIService caBundle and left it otherwise unchanged r.Len(aggregatorAPIClient.Actions(), 2) r.Equal("get", aggregatorAPIClient.Actions()[0].GetVerb()) - expectedAPIServiceName := pinnipedv1alpha1.SchemeGroupVersion.Version + "." + pinnipedv1alpha1.GroupName + expectedAPIServiceName := loginv1alpha1.SchemeGroupVersion.Version + "." + loginv1alpha1.GroupName expectedUpdateAction := coretesting.NewUpdateAction( schema.GroupVersionResource{ Group: apiregistrationv1.GroupName, diff --git a/internal/controller/apicerts/certs_expirer.go b/internal/controller/apicerts/certs_expirer.go index 08c62c6c..336f619f 100644 --- a/internal/controller/apicerts/certs_expirer.go +++ b/internal/controller/apicerts/certs_expirer.go @@ -16,9 +16,9 @@ import ( "k8s.io/client-go/kubernetes" "k8s.io/klog/v2" - "github.com/vmware-tanzu/pinniped/internal/constable" - pinnipedcontroller "github.com/vmware-tanzu/pinniped/internal/controller" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" + "go.pinniped.dev/internal/constable" + pinnipedcontroller "go.pinniped.dev/internal/controller" + "go.pinniped.dev/internal/controllerlib" ) type certsExpirerController struct { diff --git a/internal/controller/apicerts/certs_expirer_test.go b/internal/controller/apicerts/certs_expirer_test.go index cfdee06e..4def905e 100644 --- a/internal/controller/apicerts/certs_expirer_test.go +++ b/internal/controller/apicerts/certs_expirer_test.go @@ -22,8 +22,8 @@ import ( kubernetesfake "k8s.io/client-go/kubernetes/fake" kubetesting "k8s.io/client-go/testing" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/testutil" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/testutil" ) func TestExpirerControllerFilters(t *testing.T) { diff --git a/internal/controller/apicerts/certs_manager.go b/internal/controller/apicerts/certs_manager.go index af9e2dae..b8bc8313 100644 --- a/internal/controller/apicerts/certs_manager.go +++ b/internal/controller/apicerts/certs_manager.go @@ -15,9 +15,9 @@ import ( "k8s.io/client-go/kubernetes" "k8s.io/klog/v2" - "github.com/vmware-tanzu/pinniped/internal/certauthority" - pinnipedcontroller "github.com/vmware-tanzu/pinniped/internal/controller" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" + "go.pinniped.dev/internal/certauthority" + pinnipedcontroller "go.pinniped.dev/internal/controller" + "go.pinniped.dev/internal/controllerlib" ) const ( diff --git a/internal/controller/apicerts/certs_manager_test.go b/internal/controller/apicerts/certs_manager_test.go index 137fe910..f36268e5 100644 --- a/internal/controller/apicerts/certs_manager_test.go +++ b/internal/controller/apicerts/certs_manager_test.go @@ -20,8 +20,8 @@ import ( kubernetesfake "k8s.io/client-go/kubernetes/fake" coretesting "k8s.io/client-go/testing" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/testutil" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/testutil" ) func TestManagerControllerOptions(t *testing.T) { diff --git a/internal/controller/apicerts/certs_observer.go b/internal/controller/apicerts/certs_observer.go index 6d35f5d4..7a85fcb4 100644 --- a/internal/controller/apicerts/certs_observer.go +++ b/internal/controller/apicerts/certs_observer.go @@ -10,9 +10,9 @@ import ( corev1informers "k8s.io/client-go/informers/core/v1" "k8s.io/klog/v2" - pinnipedcontroller "github.com/vmware-tanzu/pinniped/internal/controller" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/provider" + pinnipedcontroller "go.pinniped.dev/internal/controller" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/provider" ) type certsObserverController struct { diff --git a/internal/controller/apicerts/certs_observer_test.go b/internal/controller/apicerts/certs_observer_test.go index b62e36bf..adf965fe 100644 --- a/internal/controller/apicerts/certs_observer_test.go +++ b/internal/controller/apicerts/certs_observer_test.go @@ -16,9 +16,9 @@ import ( kubeinformers "k8s.io/client-go/informers" kubernetesfake "k8s.io/client-go/kubernetes/fake" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/provider" - "github.com/vmware-tanzu/pinniped/internal/testutil" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/provider" + "go.pinniped.dev/internal/testutil" ) func TestObserverControllerInformerFilters(t *testing.T) { diff --git a/internal/controller/apicerts/update_api_service_test.go b/internal/controller/apicerts/update_api_service_test.go index 9ce83b03..1af26848 100644 --- a/internal/controller/apicerts/update_api_service_test.go +++ b/internal/controller/apicerts/update_api_service_test.go @@ -17,11 +17,11 @@ import ( apiregistrationv1 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1" aggregatorv1fake "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/fake" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" ) func TestUpdateAPIService(t *testing.T) { - const apiServiceName = "v1alpha1.pinniped.dev" + const apiServiceName = "v1alpha1.login.pinniped.dev" tests := []struct { name string @@ -181,7 +181,7 @@ func TestUpdateAPIService(t *testing.T) { tt.mocks(client) } - err := UpdateAPIService(ctx, client, pinnipedv1alpha1.SchemeGroupVersion.Version+"."+pinnipedv1alpha1.GroupName, tt.caInput) + err := UpdateAPIService(ctx, client, loginv1alpha1.SchemeGroupVersion.Version+"."+loginv1alpha1.GroupName, tt.caInput) if tt.wantErr != "" { require.EqualError(t, err, tt.wantErr) return diff --git a/internal/controller/identityprovider/idpcache/cache.go b/internal/controller/identityprovider/idpcache/cache.go index 11c710d8..fa2480f0 100644 --- a/internal/controller/identityprovider/idpcache/cache.go +++ b/internal/controller/identityprovider/idpcache/cache.go @@ -11,7 +11,7 @@ import ( "k8s.io/apiserver/pkg/authentication/authenticator" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" + "go.pinniped.dev/internal/controllerlib" ) var ( diff --git a/internal/controller/identityprovider/idpcache/cache_test.go b/internal/controller/identityprovider/idpcache/cache_test.go index c481b74a..65c1fd4e 100644 --- a/internal/controller/identityprovider/idpcache/cache_test.go +++ b/internal/controller/identityprovider/idpcache/cache_test.go @@ -12,8 +12,8 @@ import ( "k8s.io/apiserver/pkg/authentication/authenticator" "k8s.io/apiserver/pkg/authentication/user" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/mocks/mocktokenauthenticator" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/mocks/mocktokenauthenticator" ) func TestCache(t *testing.T) { diff --git a/internal/controller/identityprovider/webhookcachecleaner/webhookcachecleaner.go b/internal/controller/identityprovider/webhookcachecleaner/webhookcachecleaner.go index 920164ac..a4d71da6 100644 --- a/internal/controller/identityprovider/webhookcachecleaner/webhookcachecleaner.go +++ b/internal/controller/identityprovider/webhookcachecleaner/webhookcachecleaner.go @@ -11,11 +11,11 @@ import ( "k8s.io/apimachinery/pkg/labels" "k8s.io/klog/v2" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" - idpinformers "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/idp/v1alpha1" - pinnipedcontroller "github.com/vmware-tanzu/pinniped/internal/controller" - "github.com/vmware-tanzu/pinniped/internal/controller/identityprovider/idpcache" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" + idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" + idpinformers "go.pinniped.dev/generated/1.19/client/informers/externalversions/idp/v1alpha1" + pinnipedcontroller "go.pinniped.dev/internal/controller" + "go.pinniped.dev/internal/controller/identityprovider/idpcache" + "go.pinniped.dev/internal/controllerlib" ) // New instantiates a new controllerlib.Controller which will garbage collect webhooks from the provided Cache. diff --git a/internal/controller/identityprovider/webhookcachecleaner/webhookcachecleaner_test.go b/internal/controller/identityprovider/webhookcachecleaner/webhookcachecleaner_test.go index 609d1d85..94bc15fb 100644 --- a/internal/controller/identityprovider/webhookcachecleaner/webhookcachecleaner_test.go +++ b/internal/controller/identityprovider/webhookcachecleaner/webhookcachecleaner_test.go @@ -13,12 +13,12 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apiserver/pkg/authentication/authenticator" - idpv1alpha "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" - pinnipedfake "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/fake" - pinnipedinformers "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions" - "github.com/vmware-tanzu/pinniped/internal/controller/identityprovider/idpcache" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/testutil/testlogger" + idpv1alpha "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" + pinnipedfake "go.pinniped.dev/generated/1.19/client/clientset/versioned/fake" + pinnipedinformers "go.pinniped.dev/generated/1.19/client/informers/externalversions" + "go.pinniped.dev/internal/controller/identityprovider/idpcache" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/testutil/testlogger" ) func TestController(t *testing.T) { diff --git a/internal/controller/identityprovider/webhookcachefiller/webhookcachefiller.go b/internal/controller/identityprovider/webhookcachefiller/webhookcachefiller.go index a4b96b08..b0343c58 100644 --- a/internal/controller/identityprovider/webhookcachefiller/webhookcachefiller.go +++ b/internal/controller/identityprovider/webhookcachefiller/webhookcachefiller.go @@ -20,11 +20,11 @@ import ( clientcmdapi "k8s.io/client-go/tools/clientcmd/api" "k8s.io/klog/v2" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" - idpinformers "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/idp/v1alpha1" - pinnipedcontroller "github.com/vmware-tanzu/pinniped/internal/controller" - "github.com/vmware-tanzu/pinniped/internal/controller/identityprovider/idpcache" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" + idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" + idpinformers "go.pinniped.dev/generated/1.19/client/informers/externalversions/idp/v1alpha1" + pinnipedcontroller "go.pinniped.dev/internal/controller" + "go.pinniped.dev/internal/controller/identityprovider/idpcache" + "go.pinniped.dev/internal/controllerlib" ) // New instantiates a new controllerlib.Controller which will populate the provided idpcache.Cache. diff --git a/internal/controller/identityprovider/webhookcachefiller/webhookcachefiller_test.go b/internal/controller/identityprovider/webhookcachefiller/webhookcachefiller_test.go index 2ea5cbee..cde85216 100644 --- a/internal/controller/identityprovider/webhookcachefiller/webhookcachefiller_test.go +++ b/internal/controller/identityprovider/webhookcachefiller/webhookcachefiller_test.go @@ -19,13 +19,13 @@ import ( "k8s.io/client-go/tools/clientcmd" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" - idpv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/idp/v1alpha1" - pinnipedfake "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/fake" - pinnipedinformers "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions" - "github.com/vmware-tanzu/pinniped/internal/controller/identityprovider/idpcache" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/testutil" - "github.com/vmware-tanzu/pinniped/internal/testutil/testlogger" + idpv1alpha1 "go.pinniped.dev/generated/1.19/apis/idp/v1alpha1" + pinnipedfake "go.pinniped.dev/generated/1.19/client/clientset/versioned/fake" + pinnipedinformers "go.pinniped.dev/generated/1.19/client/informers/externalversions" + "go.pinniped.dev/internal/controller/identityprovider/idpcache" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/testutil" + "go.pinniped.dev/internal/testutil/testlogger" ) func TestController(t *testing.T) { diff --git a/internal/controller/issuerconfig/create_or_update_credential_issuer_config.go b/internal/controller/issuerconfig/create_or_update_credential_issuer_config.go index 7418a508..acaaa3d2 100644 --- a/internal/controller/issuerconfig/create_or_update_credential_issuer_config.go +++ b/internal/controller/issuerconfig/create_or_update_credential_issuer_config.go @@ -12,8 +12,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/util/retry" - crdpinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - pinnipedclientset "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + pinnipedclientset "go.pinniped.dev/generated/1.19/client/clientset/versioned" ) func CreateOrUpdateCredentialIssuerConfig( @@ -21,11 +21,11 @@ func CreateOrUpdateCredentialIssuerConfig( credentialIssuerConfigNamespace string, credentialIssuerConfigResourceName string, pinnipedClient pinnipedclientset.Interface, - applyUpdatesToCredentialIssuerConfigFunc func(configToUpdate *crdpinnipedv1alpha1.CredentialIssuerConfig), + applyUpdatesToCredentialIssuerConfigFunc func(configToUpdate *configv1alpha1.CredentialIssuerConfig), ) error { err := retry.RetryOnConflict(retry.DefaultRetry, func() error { existingCredentialIssuerConfig, err := pinnipedClient. - CrdV1alpha1(). + ConfigV1alpha1(). CredentialIssuerConfigs(credentialIssuerConfigNamespace). Get(ctx, credentialIssuerConfigResourceName, metav1.GetOptions{}) @@ -52,14 +52,14 @@ func CreateOrUpdateCredentialIssuerConfig( func createOrUpdateCredentialIssuerConfig( ctx context.Context, - existingCredentialIssuerConfig *crdpinnipedv1alpha1.CredentialIssuerConfig, + existingCredentialIssuerConfig *configv1alpha1.CredentialIssuerConfig, notFound bool, credentialIssuerConfigName string, credentialIssuerConfigNamespace string, pinnipedClient pinnipedclientset.Interface, - applyUpdatesToCredentialIssuerConfigFunc func(configToUpdate *crdpinnipedv1alpha1.CredentialIssuerConfig), + applyUpdatesToCredentialIssuerConfigFunc func(configToUpdate *configv1alpha1.CredentialIssuerConfig), ) error { - credentialIssuerConfigsClient := pinnipedClient.CrdV1alpha1().CredentialIssuerConfigs(credentialIssuerConfigNamespace) + credentialIssuerConfigsClient := pinnipedClient.ConfigV1alpha1().CredentialIssuerConfigs(credentialIssuerConfigNamespace) if notFound { // Create it @@ -90,15 +90,15 @@ func createOrUpdateCredentialIssuerConfig( func minimalValidCredentialIssuerConfig( credentialIssuerConfigName string, credentialIssuerConfigNamespace string, -) *crdpinnipedv1alpha1.CredentialIssuerConfig { - return &crdpinnipedv1alpha1.CredentialIssuerConfig{ +) *configv1alpha1.CredentialIssuerConfig { + return &configv1alpha1.CredentialIssuerConfig{ TypeMeta: metav1.TypeMeta{}, ObjectMeta: metav1.ObjectMeta{ Name: credentialIssuerConfigName, Namespace: credentialIssuerConfigNamespace, }, - Status: crdpinnipedv1alpha1.CredentialIssuerConfigStatus{ - Strategies: []crdpinnipedv1alpha1.CredentialIssuerConfigStrategy{}, + Status: configv1alpha1.CredentialIssuerConfigStatus{ + Strategies: []configv1alpha1.CredentialIssuerConfigStrategy{}, KubeConfigInfo: nil, }, } diff --git a/internal/controller/issuerconfig/create_or_update_credential_issuer_config_test.go b/internal/controller/issuerconfig/create_or_update_credential_issuer_config_test.go index 293b204e..13d1abc2 100644 --- a/internal/controller/issuerconfig/create_or_update_credential_issuer_config_test.go +++ b/internal/controller/issuerconfig/create_or_update_credential_issuer_config_test.go @@ -19,9 +19,8 @@ import ( coretesting "k8s.io/client-go/testing" apiregistrationv1 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1" - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - crdpinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - pinnipedfake "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/fake" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + pinnipedfake "go.pinniped.dev/generated/1.19/client/clientset/versioned/fake" ) func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { @@ -38,8 +37,8 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { ctx = context.Background() pinnipedAPIClient = pinnipedfake.NewSimpleClientset() credentialIssuerConfigGVR = schema.GroupVersionResource{ - Group: crdpinnipedv1alpha1.GroupName, - Version: crdpinnipedv1alpha1.SchemeGroupVersion.Version, + Group: configv1alpha1.GroupName, + Version: configv1alpha1.SchemeGroupVersion.Version, Resource: "credentialissuerconfigs", } }) @@ -47,8 +46,8 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { when("the config does not exist", func() { it("creates a new config which includes only the updates made by the func parameter", func() { err := CreateOrUpdateCredentialIssuerConfig(ctx, installationNamespace, credentialIssuerConfigResourceName, pinnipedAPIClient, - func(configToUpdate *v1alpha1.CredentialIssuerConfig) { - configToUpdate.Status.KubeConfigInfo = &crdpinnipedv1alpha1.CredentialIssuerConfigKubeConfigInfo{ + func(configToUpdate *configv1alpha1.CredentialIssuerConfig) { + configToUpdate.Status.KubeConfigInfo = &configv1alpha1.CredentialIssuerConfigKubeConfigInfo{ CertificateAuthorityData: "some-ca-value", } }, @@ -60,15 +59,15 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { expectedCreateAction := coretesting.NewCreateAction( credentialIssuerConfigGVR, installationNamespace, - &crdpinnipedv1alpha1.CredentialIssuerConfig{ + &configv1alpha1.CredentialIssuerConfig{ TypeMeta: metav1.TypeMeta{}, ObjectMeta: metav1.ObjectMeta{ Name: credentialIssuerConfigResourceName, Namespace: installationNamespace, }, - Status: crdpinnipedv1alpha1.CredentialIssuerConfigStatus{ - Strategies: []crdpinnipedv1alpha1.CredentialIssuerConfigStrategy{}, - KubeConfigInfo: &crdpinnipedv1alpha1.CredentialIssuerConfigKubeConfigInfo{ + Status: configv1alpha1.CredentialIssuerConfigStatus{ + Strategies: []configv1alpha1.CredentialIssuerConfigStrategy{}, + KubeConfigInfo: &configv1alpha1.CredentialIssuerConfigKubeConfigInfo{ Server: "", CertificateAuthorityData: "some-ca-value", }, @@ -88,7 +87,7 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { it("returns an error", func() { err := CreateOrUpdateCredentialIssuerConfig(ctx, installationNamespace, credentialIssuerConfigResourceName, pinnipedAPIClient, - func(configToUpdate *v1alpha1.CredentialIssuerConfig) {}, + func(configToUpdate *configv1alpha1.CredentialIssuerConfig) {}, ) r.EqualError(err, "could not create or update credentialissuerconfig: create failed: error on create") }) @@ -96,26 +95,26 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { }) when("the config already exists", func() { - var existingConfig *crdpinnipedv1alpha1.CredentialIssuerConfig + var existingConfig *configv1alpha1.CredentialIssuerConfig it.Before(func() { - existingConfig = &crdpinnipedv1alpha1.CredentialIssuerConfig{ + existingConfig = &configv1alpha1.CredentialIssuerConfig{ TypeMeta: metav1.TypeMeta{}, ObjectMeta: metav1.ObjectMeta{ Name: credentialIssuerConfigResourceName, Namespace: installationNamespace, }, - Status: crdpinnipedv1alpha1.CredentialIssuerConfigStatus{ - Strategies: []crdpinnipedv1alpha1.CredentialIssuerConfigStrategy{ + Status: configv1alpha1.CredentialIssuerConfigStatus{ + Strategies: []configv1alpha1.CredentialIssuerConfigStrategy{ { - Type: crdpinnipedv1alpha1.KubeClusterSigningCertificateStrategyType, - Status: crdpinnipedv1alpha1.SuccessStrategyStatus, - Reason: crdpinnipedv1alpha1.FetchedKeyStrategyReason, + Type: configv1alpha1.KubeClusterSigningCertificateStrategyType, + Status: configv1alpha1.SuccessStrategyStatus, + Reason: configv1alpha1.FetchedKeyStrategyReason, Message: "initial-message", LastUpdateTime: metav1.Now(), }, }, - KubeConfigInfo: &crdpinnipedv1alpha1.CredentialIssuerConfigKubeConfigInfo{ + KubeConfigInfo: &configv1alpha1.CredentialIssuerConfigKubeConfigInfo{ Server: "initial-server-value", CertificateAuthorityData: "initial-ca-value", }, @@ -126,7 +125,7 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { it("updates the existing config to only apply the updates made by the func parameter", func() { err := CreateOrUpdateCredentialIssuerConfig(ctx, installationNamespace, credentialIssuerConfigResourceName, pinnipedAPIClient, - func(configToUpdate *v1alpha1.CredentialIssuerConfig) { + func(configToUpdate *configv1alpha1.CredentialIssuerConfig) { configToUpdate.Status.KubeConfigInfo.CertificateAuthorityData = "new-ca-value" }, ) @@ -144,7 +143,7 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { it("avoids the cost of an update if the local updates made by the func parameter did not actually change anything", func() { err := CreateOrUpdateCredentialIssuerConfig(ctx, installationNamespace, credentialIssuerConfigResourceName, pinnipedAPIClient, - func(configToUpdate *v1alpha1.CredentialIssuerConfig) { + func(configToUpdate *configv1alpha1.CredentialIssuerConfig) { configToUpdate.Status.KubeConfigInfo.CertificateAuthorityData = "initial-ca-value" t := configToUpdate.Status.Strategies[0].LastUpdateTime @@ -168,7 +167,7 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { it("returns an error", func() { err := CreateOrUpdateCredentialIssuerConfig(ctx, installationNamespace, credentialIssuerConfigResourceName, pinnipedAPIClient, - func(configToUpdate *v1alpha1.CredentialIssuerConfig) {}, + func(configToUpdate *configv1alpha1.CredentialIssuerConfig) {}, ) r.EqualError(err, "could not create or update credentialissuerconfig: get failed: error on get") }) @@ -183,7 +182,7 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { it("returns an error", func() { err := CreateOrUpdateCredentialIssuerConfig(ctx, installationNamespace, credentialIssuerConfigResourceName, pinnipedAPIClient, - func(configToUpdate *v1alpha1.CredentialIssuerConfig) { + func(configToUpdate *configv1alpha1.CredentialIssuerConfig) { configToUpdate.Status.KubeConfigInfo.CertificateAuthorityData = "new-ca-value" }, ) @@ -192,7 +191,7 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { }) when("there is a conflict error while updating the existing object on the first try and the next try succeeds", func() { - var slightlyDifferentExistingConfig *crdpinnipedv1alpha1.CredentialIssuerConfig + var slightlyDifferentExistingConfig *configv1alpha1.CredentialIssuerConfig it.Before(func() { hit := false @@ -217,7 +216,7 @@ func TestCreateOrUpdateCredentialIssuerConfig(t *testing.T) { it("retries updates on conflict", func() { err := CreateOrUpdateCredentialIssuerConfig(ctx, installationNamespace, credentialIssuerConfigResourceName, pinnipedAPIClient, - func(configToUpdate *v1alpha1.CredentialIssuerConfig) { + func(configToUpdate *configv1alpha1.CredentialIssuerConfig) { configToUpdate.Status.KubeConfigInfo.CertificateAuthorityData = "new-ca-value" }, ) diff --git a/internal/controller/issuerconfig/publisher.go b/internal/controller/issuerconfig/publisher.go index 0f81f952..a8e087f6 100644 --- a/internal/controller/issuerconfig/publisher.go +++ b/internal/controller/issuerconfig/publisher.go @@ -12,11 +12,11 @@ import ( "k8s.io/client-go/tools/clientcmd" "k8s.io/klog/v2" - crdpinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - pinnipedclientset "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - crdpinnipedv1alpha1informers "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions/crdpinniped/v1alpha1" - pinnipedcontroller "github.com/vmware-tanzu/pinniped/internal/controller" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + pinnipedclientset "go.pinniped.dev/generated/1.19/client/clientset/versioned" + configv1alpha1informers "go.pinniped.dev/generated/1.19/client/informers/externalversions/config/v1alpha1" + pinnipedcontroller "go.pinniped.dev/internal/controller" + "go.pinniped.dev/internal/controllerlib" ) const ( @@ -31,7 +31,7 @@ type publisherController struct { serverOverride *string pinnipedClient pinnipedclientset.Interface configMapInformer corev1informers.ConfigMapInformer - credentialIssuerConfigInformer crdpinnipedv1alpha1informers.CredentialIssuerConfigInformer + credentialIssuerConfigInformer configv1alpha1informers.CredentialIssuerConfigInformer } func NewPublisherController(namespace string, @@ -39,7 +39,7 @@ func NewPublisherController(namespace string, serverOverride *string, pinnipedClient pinnipedclientset.Interface, configMapInformer corev1informers.ConfigMapInformer, - credentialIssuerConfigInformer crdpinnipedv1alpha1informers.CredentialIssuerConfigInformer, + credentialIssuerConfigInformer configv1alpha1informers.CredentialIssuerConfigInformer, withInformer pinnipedcontroller.WithInformerOptionFunc, ) controllerlib.Controller { return controllerlib.New( @@ -117,8 +117,8 @@ func (c *publisherController) Sync(ctx controllerlib.Context) error { return fmt.Errorf("could not get credentialissuerconfig: %w", err) } - updateServerAndCAFunc := func(c *crdpinnipedv1alpha1.CredentialIssuerConfig) { - c.Status.KubeConfigInfo = &crdpinnipedv1alpha1.CredentialIssuerConfigKubeConfigInfo{ + updateServerAndCAFunc := func(c *configv1alpha1.CredentialIssuerConfig) { + c.Status.KubeConfigInfo = &configv1alpha1.CredentialIssuerConfigKubeConfigInfo{ Server: server, CertificateAuthorityData: certificateAuthorityData, } diff --git a/internal/controller/issuerconfig/publisher_test.go b/internal/controller/issuerconfig/publisher_test.go index ffb12d61..267feae2 100644 --- a/internal/controller/issuerconfig/publisher_test.go +++ b/internal/controller/issuerconfig/publisher_test.go @@ -20,12 +20,12 @@ import ( kubernetesfake "k8s.io/client-go/kubernetes/fake" coretesting "k8s.io/client-go/testing" - crdpinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - pinnipedfake "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned/fake" - pinnipedinformers "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/here" - "github.com/vmware-tanzu/pinniped/internal/testutil" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + pinnipedfake "go.pinniped.dev/generated/1.19/client/clientset/versioned/fake" + pinnipedinformers "go.pinniped.dev/generated/1.19/client/informers/externalversions" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/here" + "go.pinniped.dev/internal/testutil" ) func TestInformerFilters(t *testing.T) { @@ -42,8 +42,16 @@ func TestInformerFilters(t *testing.T) { r = require.New(t) observableWithInformerOption = testutil.NewObservableWithInformerOption() configMapInformer := kubeinformers.NewSharedInformerFactory(nil, 0).Core().V1().ConfigMaps() - credentialIssuerConfigInformer := pinnipedinformers.NewSharedInformerFactory(nil, 0).Crd().V1alpha1().CredentialIssuerConfigs() - _ = NewPublisherController(installedInNamespace, credentialIssuerConfigResourceName, nil, nil, configMapInformer, credentialIssuerConfigInformer, observableWithInformerOption.WithInformer) + credentialIssuerConfigInformer := pinnipedinformers.NewSharedInformerFactory(nil, 0).Config().V1alpha1().CredentialIssuerConfigs() + _ = NewPublisherController( + installedInNamespace, + credentialIssuerConfigResourceName, + nil, + nil, + configMapInformer, + credentialIssuerConfigInformer, + observableWithInformerOption.WithInformer, // make it possible to observe the behavior of the Filters + ) configMapInformerFilter = observableWithInformerOption.GetFilterForInformer(configMapInformer) credentialIssuerConfigInformerFilter = observableWithInformerOption.GetFilterForInformer(credentialIssuerConfigInformer) }) @@ -98,20 +106,20 @@ func TestInformerFilters(t *testing.T) { when("watching CredentialIssuerConfig objects", func() { var subject controllerlib.Filter - var target, wrongNamespace, wrongName, unrelated *crdpinnipedv1alpha1.CredentialIssuerConfig + var target, wrongNamespace, wrongName, unrelated *configv1alpha1.CredentialIssuerConfig it.Before(func() { subject = credentialIssuerConfigInformerFilter - target = &crdpinnipedv1alpha1.CredentialIssuerConfig{ + target = &configv1alpha1.CredentialIssuerConfig{ ObjectMeta: metav1.ObjectMeta{Name: credentialIssuerConfigResourceName, Namespace: installedInNamespace}, } - wrongNamespace = &crdpinnipedv1alpha1.CredentialIssuerConfig{ + wrongNamespace = &configv1alpha1.CredentialIssuerConfig{ ObjectMeta: metav1.ObjectMeta{Name: credentialIssuerConfigResourceName, Namespace: "wrong-namespace"}, } - wrongName = &crdpinnipedv1alpha1.CredentialIssuerConfig{ + wrongName = &configv1alpha1.CredentialIssuerConfig{ ObjectMeta: metav1.ObjectMeta{Name: "wrong-name", Namespace: installedInNamespace}, } - unrelated = &crdpinnipedv1alpha1.CredentialIssuerConfig{ + unrelated = &configv1alpha1.CredentialIssuerConfig{ ObjectMeta: metav1.ObjectMeta{Name: "wrong-name", Namespace: "wrong-namespace"}, } }) @@ -172,20 +180,20 @@ func TestSync(t *testing.T) { var timeoutContextCancel context.CancelFunc var syncContext *controllerlib.Context - var expectedCredentialIssuerConfig = func(expectedNamespace, expectedServerURL, expectedCAData string) (schema.GroupVersionResource, *crdpinnipedv1alpha1.CredentialIssuerConfig) { + var expectedCredentialIssuerConfig = func(expectedNamespace, expectedServerURL, expectedCAData string) (schema.GroupVersionResource, *configv1alpha1.CredentialIssuerConfig) { expectedCredentialIssuerConfigGVR := schema.GroupVersionResource{ - Group: crdpinnipedv1alpha1.GroupName, + Group: configv1alpha1.GroupName, Version: "v1alpha1", Resource: "credentialissuerconfigs", } - expectedCredentialIssuerConfig := &crdpinnipedv1alpha1.CredentialIssuerConfig{ + expectedCredentialIssuerConfig := &configv1alpha1.CredentialIssuerConfig{ ObjectMeta: metav1.ObjectMeta{ Name: credentialIssuerConfigResourceName, Namespace: expectedNamespace, }, - Status: crdpinnipedv1alpha1.CredentialIssuerConfigStatus{ - Strategies: []crdpinnipedv1alpha1.CredentialIssuerConfigStrategy{}, - KubeConfigInfo: &crdpinnipedv1alpha1.CredentialIssuerConfigKubeConfigInfo{ + Status: configv1alpha1.CredentialIssuerConfigStatus{ + Strategies: []configv1alpha1.CredentialIssuerConfigStrategy{}, + KubeConfigInfo: &configv1alpha1.CredentialIssuerConfigKubeConfigInfo{ Server: expectedServerURL, CertificateAuthorityData: expectedCAData, }, @@ -204,7 +212,7 @@ func TestSync(t *testing.T) { serverOverride, pinnipedAPIClient, kubeInformers.Core().V1().ConfigMaps(), - pinnipedInformers.Crd().V1alpha1().CredentialIssuerConfigs(), + pinnipedInformers.Config().V1alpha1().CredentialIssuerConfigs(), controllerlib.WithInformer, ) diff --git a/internal/controller/utils.go b/internal/controller/utils.go index 0984efff..a0eecb9b 100644 --- a/internal/controller/utils.go +++ b/internal/controller/utils.go @@ -6,7 +6,7 @@ package controller import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" + "go.pinniped.dev/internal/controllerlib" ) func NameAndNamespaceExactMatchFilterFactory(name, namespace string) controllerlib.Filter { diff --git a/internal/controllerlib/test/integration/examplecontroller/controller/creating.go b/internal/controllerlib/test/integration/examplecontroller/controller/creating.go index fcdd48aa..418d0d4f 100644 --- a/internal/controllerlib/test/integration/examplecontroller/controller/creating.go +++ b/internal/controllerlib/test/integration/examplecontroller/controller/creating.go @@ -16,8 +16,8 @@ import ( "k8s.io/client-go/tools/events" "k8s.io/klog/v2" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/controllerlib/test/integration/examplecontroller/api" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/controllerlib/test/integration/examplecontroller/api" ) //nolint:funlen diff --git a/internal/controllerlib/test/integration/examplecontroller/controller/creating_test.go b/internal/controllerlib/test/integration/examplecontroller/controller/creating_test.go index b5b46ccb..74c61721 100644 --- a/internal/controllerlib/test/integration/examplecontroller/controller/creating_test.go +++ b/internal/controllerlib/test/integration/examplecontroller/controller/creating_test.go @@ -17,8 +17,8 @@ import ( coretesting "k8s.io/client-go/testing" "k8s.io/client-go/tools/events" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/controllerlib/test/integration/examplecontroller/api" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/controllerlib/test/integration/examplecontroller/api" ) func TestNewExampleCreatingController(t *testing.T) { diff --git a/internal/controllerlib/test/integration/examplecontroller/controller/updating.go b/internal/controllerlib/test/integration/examplecontroller/controller/updating.go index 237d2384..3bafdf88 100644 --- a/internal/controllerlib/test/integration/examplecontroller/controller/updating.go +++ b/internal/controllerlib/test/integration/examplecontroller/controller/updating.go @@ -16,8 +16,8 @@ import ( corev1client "k8s.io/client-go/kubernetes/typed/core/v1" "k8s.io/client-go/tools/events" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/controllerlib/test/integration/examplecontroller/api" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/controllerlib/test/integration/examplecontroller/api" ) func NewExampleUpdatingController( diff --git a/internal/controllerlib/test/integration/examplecontroller/starter/starter.go b/internal/controllerlib/test/integration/examplecontroller/starter/starter.go index f9219818..a482df47 100644 --- a/internal/controllerlib/test/integration/examplecontroller/starter/starter.go +++ b/internal/controllerlib/test/integration/examplecontroller/starter/starter.go @@ -13,8 +13,8 @@ import ( "k8s.io/client-go/rest" "k8s.io/client-go/tools/events" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - examplecontroller "github.com/vmware-tanzu/pinniped/internal/controllerlib/test/integration/examplecontroller/controller" + "go.pinniped.dev/internal/controllerlib" + examplecontroller "go.pinniped.dev/internal/controllerlib/test/integration/examplecontroller/controller" ) func StartExampleController(ctx context.Context, config *rest.Config, secretData string) error { diff --git a/internal/controllerlib/test/integration/examplecontroller_test.go b/internal/controllerlib/test/integration/examplecontroller_test.go index ff82474f..6d932eec 100644 --- a/internal/controllerlib/test/integration/examplecontroller_test.go +++ b/internal/controllerlib/test/integration/examplecontroller_test.go @@ -13,9 +13,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/watch" - "github.com/vmware-tanzu/pinniped/internal/controllerlib/test/integration/examplecontroller/api" - examplestart "github.com/vmware-tanzu/pinniped/internal/controllerlib/test/integration/examplecontroller/starter" - "github.com/vmware-tanzu/pinniped/test/library" + "go.pinniped.dev/internal/controllerlib/test/integration/examplecontroller/api" + examplestart "go.pinniped.dev/internal/controllerlib/test/integration/examplecontroller/starter" + "go.pinniped.dev/test/library" ) func TestExampleController(t *testing.T) { diff --git a/internal/controllermanager/prepare_controllers.go b/internal/controllermanager/prepare_controllers.go index 7cbc7831..4a1bc0df 100644 --- a/internal/controllermanager/prepare_controllers.go +++ b/internal/controllermanager/prepare_controllers.go @@ -15,18 +15,17 @@ import ( "k8s.io/klog/v2/klogr" aggregatorclient "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset" - loginv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" - pinnipedclientset "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - pinnipedinformers "github.com/vmware-tanzu/pinniped/generated/1.19/client/informers/externalversions" - "github.com/vmware-tanzu/pinniped/internal/controller/apicerts" - "github.com/vmware-tanzu/pinniped/internal/controller/identityprovider/idpcache" - "github.com/vmware-tanzu/pinniped/internal/controller/identityprovider/webhookcachecleaner" - "github.com/vmware-tanzu/pinniped/internal/controller/identityprovider/webhookcachefiller" - "github.com/vmware-tanzu/pinniped/internal/controller/issuerconfig" - "github.com/vmware-tanzu/pinniped/internal/controllerlib" - "github.com/vmware-tanzu/pinniped/internal/provider" - "github.com/vmware-tanzu/pinniped/pkg/config/api" + loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" + pinnipedclientset "go.pinniped.dev/generated/1.19/client/clientset/versioned" + pinnipedinformers "go.pinniped.dev/generated/1.19/client/informers/externalversions" + "go.pinniped.dev/internal/controller/apicerts" + "go.pinniped.dev/internal/controller/identityprovider/idpcache" + "go.pinniped.dev/internal/controller/identityprovider/webhookcachecleaner" + "go.pinniped.dev/internal/controller/identityprovider/webhookcachefiller" + "go.pinniped.dev/internal/controller/issuerconfig" + "go.pinniped.dev/internal/controllerlib" + "go.pinniped.dev/internal/provider" + "go.pinniped.dev/pkg/config/api" ) const ( @@ -63,7 +62,7 @@ func PrepareControllers( discoveryURLOverride, pinnipedClient, kubePublicNamespaceK8sInformers.Core().V1().ConfigMaps(), - installationNamespacePinnipedInformers.Crd().V1alpha1().CredentialIssuerConfigs(), + installationNamespacePinnipedInformers.Config().V1alpha1().CredentialIssuerConfigs(), controllerlib.WithInformer, ), singletonWorker, @@ -82,17 +81,6 @@ func PrepareControllers( ), singletonWorker, ). - WithController( - apicerts.NewAPIServiceUpdaterController( - serverInstallationNamespace, - namesConfig.ServingCertificateSecret, - pinnipedv1alpha1.SchemeGroupVersion.Version+"."+pinnipedv1alpha1.GroupName, - aggregatorClient, - installationNamespaceK8sInformers.Core().V1().Secrets(), - controllerlib.WithInformer, - ), - singletonWorker, - ). WithController( apicerts.NewAPIServiceUpdaterController( serverInstallationNamespace, diff --git a/internal/mocks/mockcertissuer/generate.go b/internal/mocks/mockcertissuer/generate.go index a527bca4..82e74840 100644 --- a/internal/mocks/mockcertissuer/generate.go +++ b/internal/mocks/mockcertissuer/generate.go @@ -3,4 +3,4 @@ package mockcertissuer -//go:generate go run -v github.com/golang/mock/mockgen -destination=mockcertissuer.go -package=mockcertissuer -copyright_file=../../../hack/header.txt github.com/vmware-tanzu/pinniped/internal/registry/credentialrequest CertIssuer +//go:generate go run -v github.com/golang/mock/mockgen -destination=mockcertissuer.go -package=mockcertissuer -copyright_file=../../../hack/header.txt go.pinniped.dev/internal/registry/credentialrequest CertIssuer diff --git a/internal/mocks/mockcertissuer/mockcertissuer.go b/internal/mocks/mockcertissuer/mockcertissuer.go index 8433a6f4..e68383c1 100644 --- a/internal/mocks/mockcertissuer/mockcertissuer.go +++ b/internal/mocks/mockcertissuer/mockcertissuer.go @@ -3,7 +3,7 @@ // // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/vmware-tanzu/pinniped/internal/registry/credentialrequest (interfaces: CertIssuer) +// Source: go.pinniped.dev/internal/registry/credentialrequest (interfaces: CertIssuer) // Package mockcertissuer is a generated GoMock package. package mockcertissuer diff --git a/internal/registry/credentialrequest/conversions.go b/internal/registry/credentialrequest/conversions.go deleted file mode 100644 index a15e6bcc..00000000 --- a/internal/registry/credentialrequest/conversions.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -package credentialrequest - -import ( - loginapi "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login" - pinnipedapi "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped" -) - -func convertToLoginAPI(input *pinnipedapi.CredentialRequest) *loginapi.TokenCredentialRequest { - if input == nil { - return nil - } - - result := loginapi.TokenCredentialRequest{} - result.ObjectMeta = input.ObjectMeta - if input.Spec.Token != nil { - result.Spec.Token = input.Spec.Token.Value - } - result.Status.Message = input.Status.Message - if input.Status.Credential != nil { - result.Status.Credential = &loginapi.ClusterCredential{ - ExpirationTimestamp: input.Status.Credential.ExpirationTimestamp, - Token: input.Status.Credential.Token, - ClientCertificateData: input.Status.Credential.ClientCertificateData, - ClientKeyData: input.Status.Credential.ClientKeyData, - } - } - return &result -} - -func convertFromLoginAPI(input *loginapi.TokenCredentialRequest) *pinnipedapi.CredentialRequest { - if input == nil { - return nil - } - - result := pinnipedapi.CredentialRequest{} - result.ObjectMeta = input.ObjectMeta - if input.Spec.Token != "" { - result.Spec.Type = pinnipedapi.TokenCredentialType - result.Spec.Token = &pinnipedapi.CredentialRequestTokenCredential{Value: input.Spec.Token} - } - result.Status.Message = input.Status.Message - if input.Status.Credential != nil { - result.Status.Credential = &pinnipedapi.CredentialRequestCredential{ - ExpirationTimestamp: input.Status.Credential.ExpirationTimestamp, - Token: input.Status.Credential.Token, - ClientCertificateData: input.Status.Credential.ClientCertificateData, - ClientKeyData: input.Status.Credential.ClientKeyData, - } - } - return &result -} diff --git a/internal/registry/credentialrequest/conversions_test.go b/internal/registry/credentialrequest/conversions_test.go deleted file mode 100644 index 1d0cfe79..00000000 --- a/internal/registry/credentialrequest/conversions_test.go +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2020 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -package credentialrequest - -import ( - "testing" - "time" - - "github.com/stretchr/testify/require" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - - loginapi "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login" - pinnipedapi "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped" -) - -func TestConversions(t *testing.T) { - now := time.Now() - errMsg := "some error message" - - tests := []struct { - name string - new *loginapi.TokenCredentialRequest - old *pinnipedapi.CredentialRequest - }{ - { - name: "nil input", - }, - { - name: "usual request", - new: &loginapi.TokenCredentialRequest{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test-object", - }, - Spec: loginapi.TokenCredentialRequestSpec{Token: "test-token"}, - }, - old: &pinnipedapi.CredentialRequest{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test-object", - }, - Spec: pinnipedapi.CredentialRequestSpec{ - Type: pinnipedapi.TokenCredentialType, - Token: &pinnipedapi.CredentialRequestTokenCredential{Value: "test-token"}, - }, - }, - }, - { - name: "usual response", - new: &loginapi.TokenCredentialRequest{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test-object", - }, - Status: loginapi.TokenCredentialRequestStatus{ - Credential: &loginapi.ClusterCredential{ - ExpirationTimestamp: metav1.NewTime(now), - Token: "test-cluster-token", - ClientCertificateData: "test-cluster-cert", - ClientKeyData: "test-cluster-key", - }, - }, - }, - old: &pinnipedapi.CredentialRequest{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test-object", - }, - Status: pinnipedapi.CredentialRequestStatus{ - Credential: &pinnipedapi.CredentialRequestCredential{ - ExpirationTimestamp: metav1.NewTime(now), - Token: "test-cluster-token", - ClientCertificateData: "test-cluster-cert", - ClientKeyData: "test-cluster-key", - }, - }, - }, - }, - { - name: "error response", - new: &loginapi.TokenCredentialRequest{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test-object", - }, - Status: loginapi.TokenCredentialRequestStatus{ - Message: &errMsg, - }, - }, - old: &pinnipedapi.CredentialRequest{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test-object", - }, - Status: pinnipedapi.CredentialRequestStatus{ - Message: &errMsg, - }, - }, - }, - } - for _, tt := range tests { - tt := tt - t.Run(tt.name, func(t *testing.T) { - t.Run("upgrade", func(t *testing.T) { - require.Equal(t, tt.new, convertToLoginAPI(tt.old)) - }) - t.Run("downgrade", func(t *testing.T) { - require.Equal(t, tt.old, convertFromLoginAPI(tt.new)) - }) - t.Run("roundtrip", func(t *testing.T) { - require.Equal(t, tt.old, convertFromLoginAPI(convertToLoginAPI(tt.old))) - require.Equal(t, tt.new, convertToLoginAPI(convertFromLoginAPI(tt.new))) - }) - }) - } -} diff --git a/internal/registry/credentialrequest/rest.go b/internal/registry/credentialrequest/rest.go index 6ee76cb4..f8ccafb0 100644 --- a/internal/registry/credentialrequest/rest.go +++ b/internal/registry/credentialrequest/rest.go @@ -18,8 +18,7 @@ import ( "k8s.io/apiserver/pkg/registry/rest" "k8s.io/utils/trace" - loginapi "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login" - pinnipedapi "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped" + loginapi "go.pinniped.dev/generated/1.19/apis/login" ) // clientCertificateTTL is the TTL for short-lived client certificates returned by this API. @@ -48,23 +47,13 @@ type REST struct { issuer CertIssuer } -// PinnipedV1alpha1Storage returns a wrapper of the REST which serves the pinniped.dev/v1alpha1 API. -func (r *REST) PinnipedV1alpha1Storage() Storage { return &oldAPIREST{r} } +func (*REST) New() runtime.Object { + return &loginapi.TokenCredentialRequest{} +} -type oldAPIREST struct{ *REST } - -func (*oldAPIREST) New() runtime.Object { return &pinnipedapi.CredentialRequest{} } - -func (*oldAPIREST) NamespaceScoped() bool { return false } - -// LoginV1alpha1Storage returns a wrapper of the REST which serves the login.pinniped.dev/v1alpha1 API. -func (r *REST) LoginV1alpha1Storage() Storage { return &newAPIREST{r} } - -type newAPIREST struct{ *REST } - -func (*newAPIREST) New() runtime.Object { return &loginapi.TokenCredentialRequest{} } - -func (*newAPIREST) NamespaceScoped() bool { return true } +func (*REST) NamespaceScoped() bool { + return true +} func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error) { t := trace.FromContext(ctx).Nest("create", trace.Field{ @@ -73,13 +62,6 @@ func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation }) defer t.Log() - // If the incoming request is from the newer version of the API, convert it into the older API and map the result back later. - convertResponse := func(in *pinnipedapi.CredentialRequest) runtime.Object { return in } - if req, ok := obj.(*loginapi.TokenCredentialRequest); ok { - obj = convertFromLoginAPI(req) - convertResponse = func(in *pinnipedapi.CredentialRequest) runtime.Object { return convertToLoginAPI(in) } - } - credentialRequest, err := validateRequest(ctx, obj, createValidation, options, t) if err != nil { return nil, err @@ -97,14 +79,14 @@ func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation } }() - authResponse, authenticated, err := r.tokenAuthenticator.AuthenticateToken(cancelCtx, credentialRequest.Spec.Token.Value) + authResponse, authenticated, err := r.tokenAuthenticator.AuthenticateToken(cancelCtx, credentialRequest.Spec.Token) if err != nil { traceFailureWithError(t, "webhook authentication", err) - return convertResponse(failureResponse()), nil + return failureResponse(), nil } if !authenticated || authResponse == nil || authResponse.User == nil || authResponse.User.GetName() == "" { traceSuccess(t, authResponse, authenticated, false) - return convertResponse(failureResponse()), nil + return failureResponse(), nil } username := authResponse.User.GetName() @@ -125,41 +107,28 @@ func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation traceSuccess(t, authResponse, authenticated, true) - return convertResponse(&pinnipedapi.CredentialRequest{ - Status: pinnipedapi.CredentialRequestStatus{ - Credential: &pinnipedapi.CredentialRequestCredential{ + return &loginapi.TokenCredentialRequest{ + Status: loginapi.TokenCredentialRequestStatus{ + Credential: &loginapi.ClusterCredential{ ExpirationTimestamp: metav1.NewTime(time.Now().UTC().Add(clientCertificateTTL)), ClientCertificateData: string(certPEM), ClientKeyData: string(keyPEM), }, }, - }), nil + }, nil } -func validateRequest(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions, t *trace.Trace) (*pinnipedapi.CredentialRequest, error) { - credentialRequest, ok := obj.(*pinnipedapi.CredentialRequest) +func validateRequest(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions, t *trace.Trace) (*loginapi.TokenCredentialRequest, error) { + credentialRequest, ok := obj.(*loginapi.TokenCredentialRequest) if !ok { traceValidationFailure(t, "not a CredentialRequest") return nil, apierrors.NewBadRequest(fmt.Sprintf("not a CredentialRequest: %#v", obj)) } - if len(credentialRequest.Spec.Type) == 0 { - traceValidationFailure(t, "type must be supplied") - errs := field.ErrorList{field.Required(field.NewPath("spec", "type"), "type must be supplied")} - return nil, apierrors.NewInvalid(pinnipedapi.Kind(credentialRequest.Kind), credentialRequest.Name, errs) - } - - if credentialRequest.Spec.Type != pinnipedapi.TokenCredentialType { - traceValidationFailure(t, "unrecognized type") - errs := field.ErrorList{field.Invalid(field.NewPath("spec", "type"), credentialRequest.Spec.Type, "unrecognized type")} - return nil, apierrors.NewInvalid(pinnipedapi.Kind(credentialRequest.Kind), credentialRequest.Name, errs) - } - - token := credentialRequest.Spec.Token - if token == nil || len(token.Value) == 0 { + if len(credentialRequest.Spec.Token) == 0 { traceValidationFailure(t, "token must be supplied") errs := field.ErrorList{field.Required(field.NewPath("spec", "token", "value"), "token must be supplied")} - return nil, apierrors.NewInvalid(pinnipedapi.Kind(credentialRequest.Kind), credentialRequest.Name, errs) + return nil, apierrors.NewInvalid(loginapi.Kind(credentialRequest.Kind), credentialRequest.Name, errs) } // just a sanity check, not sure how to honor a dry run on a virtual API @@ -167,7 +136,7 @@ func validateRequest(ctx context.Context, obj runtime.Object, createValidation r if len(options.DryRun) != 0 { traceValidationFailure(t, "dryRun not supported") errs := field.ErrorList{field.NotSupported(field.NewPath("dryRun"), options.DryRun, nil)} - return nil, apierrors.NewInvalid(pinnipedapi.Kind(credentialRequest.Kind), credentialRequest.Name, errs) + return nil, apierrors.NewInvalid(loginapi.Kind(credentialRequest.Kind), credentialRequest.Name, errs) } } @@ -178,8 +147,7 @@ func validateRequest(ctx context.Context, obj runtime.Object, createValidation r // they already got the token. if createValidation != nil { requestForValidation := obj.DeepCopyObject() - credentialRequestCopy, _ := requestForValidation.(*pinnipedapi.CredentialRequest) - credentialRequestCopy.Spec.Token.Value = "" + requestForValidation.(*loginapi.TokenCredentialRequest).Spec.Token = "" if err := createValidation(ctx, requestForValidation); err != nil { traceFailureWithError(t, "validation webhook", err) return nil, err @@ -215,10 +183,10 @@ func traceFailureWithError(t *trace.Trace, failureType string, err error) { ) } -func failureResponse() *pinnipedapi.CredentialRequest { +func failureResponse() *loginapi.TokenCredentialRequest { m := "authentication failed" - return &pinnipedapi.CredentialRequest{ - Status: pinnipedapi.CredentialRequestStatus{ + return &loginapi.TokenCredentialRequest{ + Status: loginapi.TokenCredentialRequestStatus{ Credential: nil, Message: &m, }, diff --git a/internal/registry/credentialrequest/rest_test.go b/internal/registry/credentialrequest/rest_test.go index 7a204129..efa3071a 100644 --- a/internal/registry/credentialrequest/rest_test.go +++ b/internal/registry/credentialrequest/rest_test.go @@ -23,10 +23,9 @@ import ( "k8s.io/apiserver/pkg/registry/rest" "k8s.io/klog/v2" - loginapi "github.com/vmware-tanzu/pinniped/generated/1.19/apis/login" - pinnipedapi "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped" - "github.com/vmware-tanzu/pinniped/internal/mocks/mockcertissuer" - "github.com/vmware-tanzu/pinniped/internal/testutil" + loginapi "go.pinniped.dev/generated/1.19/apis/login" + "go.pinniped.dev/internal/mocks/mockcertissuer" + "go.pinniped.dev/internal/testutil" ) type contextKey struct{} @@ -104,16 +103,16 @@ func TestCreate(t *testing.T) { response, err := callCreate(context.Background(), storage, validCredentialRequestWithToken(requestToken)) r.NoError(err) - r.IsType(&pinnipedapi.CredentialRequest{}, response) + r.IsType(&loginapi.TokenCredentialRequest{}, response) - expires := response.(*pinnipedapi.CredentialRequest).Status.Credential.ExpirationTimestamp + expires := response.(*loginapi.TokenCredentialRequest).Status.Credential.ExpirationTimestamp r.NotNil(expires) r.InDelta(time.Now().Add(1*time.Hour).Unix(), expires.Unix(), 5) - response.(*pinnipedapi.CredentialRequest).Status.Credential.ExpirationTimestamp = metav1.Time{} + response.(*loginapi.TokenCredentialRequest).Status.Credential.ExpirationTimestamp = metav1.Time{} - r.Equal(response, &pinnipedapi.CredentialRequest{ - Status: pinnipedapi.CredentialRequestStatus{ - Credential: &pinnipedapi.CredentialRequestCredential{ + r.Equal(response, &loginapi.TokenCredentialRequest{ + Status: loginapi.TokenCredentialRequestStatus{ + Credential: &loginapi.ClusterCredential{ ExpirationTimestamp: metav1.Time{}, ClientCertificateData: "test-cert", ClientKeyData: "test-key", @@ -315,47 +314,10 @@ func TestCreate(t *testing.T) { requireOneLogStatement(r, logger, `"failure" failureType:request validation,msg:not a CredentialRequest`) }) - it("CreateFailsWhenTokenIsNilInRequest", func() { - storage := NewREST(&FakeToken{}, nil) - response, err := callCreate(context.Background(), storage, credentialRequest(pinnipedapi.CredentialRequestSpec{ - Type: pinnipedapi.TokenCredentialType, - Token: nil, - })) - - requireAPIError(t, response, err, apierrors.IsInvalid, - `.pinniped.dev "request name" is invalid: spec.token.value: Required value: token must be supplied`) - requireOneLogStatement(r, logger, `"failure" failureType:request validation,msg:token must be supplied`) - }) - - it("CreateFailsWhenTypeInRequestIsMissing", func() { - storage := NewREST(&FakeToken{}, nil) - response, err := callCreate(context.Background(), storage, credentialRequest(pinnipedapi.CredentialRequestSpec{ - Type: "", - Token: &pinnipedapi.CredentialRequestTokenCredential{Value: "a token"}, - })) - - requireAPIError(t, response, err, apierrors.IsInvalid, - `.pinniped.dev "request name" is invalid: spec.type: Required value: type must be supplied`) - requireOneLogStatement(r, logger, `"failure" failureType:request validation,msg:type must be supplied`) - }) - - it("CreateFailsWhenTypeInRequestIsNotLegal", func() { - storage := NewREST(&FakeToken{}, nil) - response, err := callCreate(context.Background(), storage, credentialRequest(pinnipedapi.CredentialRequestSpec{ - Type: "this in an invalid type", - Token: &pinnipedapi.CredentialRequestTokenCredential{Value: "a token"}, - })) - - requireAPIError(t, response, err, apierrors.IsInvalid, - `.pinniped.dev "request name" is invalid: spec.type: Invalid value: "this in an invalid type": unrecognized type`) - requireOneLogStatement(r, logger, `"failure" failureType:request validation,msg:unrecognized type`) - }) - it("CreateFailsWhenTokenValueIsEmptyInRequest", func() { storage := NewREST(&FakeToken{}, nil) - response, err := callCreate(context.Background(), storage, credentialRequest(pinnipedapi.CredentialRequestSpec{ - Type: pinnipedapi.TokenCredentialType, - Token: &pinnipedapi.CredentialRequestTokenCredential{Value: ""}, + response, err := callCreate(context.Background(), storage, credentialRequest(loginapi.TokenCredentialRequestSpec{ + Token: "", })) requireAPIError(t, response, err, apierrors.IsInvalid, @@ -387,8 +349,8 @@ func TestCreate(t *testing.T) { context.Background(), validCredentialRequestWithToken(requestToken), func(ctx context.Context, obj runtime.Object) error { - credentialRequest, _ := obj.(*pinnipedapi.CredentialRequest) - credentialRequest.Spec.Token.Value = "foobaz" + credentialRequest, _ := obj.(*loginapi.TokenCredentialRequest) + credentialRequest.Spec.Token = "foobaz" return nil }, &metav1.CreateOptions{}) @@ -409,9 +371,9 @@ func TestCreate(t *testing.T) { context.Background(), validCredentialRequest(), func(ctx context.Context, obj runtime.Object) error { - credentialRequest, _ := obj.(*pinnipedapi.CredentialRequest) + credentialRequest, _ := obj.(*loginapi.TokenCredentialRequest) validationFunctionWasCalled = true - validationFunctionSawTokenValue = credentialRequest.Spec.Token.Value + validationFunctionSawTokenValue = credentialRequest.Spec.Token return nil }, &metav1.CreateOptions{}) @@ -508,19 +470,16 @@ func callCreate(ctx context.Context, storage *REST, obj runtime.Object) (runtime }) } -func validCredentialRequest() *pinnipedapi.CredentialRequest { +func validCredentialRequest() *loginapi.TokenCredentialRequest { return validCredentialRequestWithToken("some token") } -func validCredentialRequestWithToken(token string) *pinnipedapi.CredentialRequest { - return credentialRequest(pinnipedapi.CredentialRequestSpec{ - Type: pinnipedapi.TokenCredentialType, - Token: &pinnipedapi.CredentialRequestTokenCredential{Value: token}, - }) +func validCredentialRequestWithToken(token string) *loginapi.TokenCredentialRequest { + return credentialRequest(loginapi.TokenCredentialRequestSpec{Token: token}) } -func credentialRequest(spec pinnipedapi.CredentialRequestSpec) *pinnipedapi.CredentialRequest { - return &pinnipedapi.CredentialRequest{ +func credentialRequest(spec loginapi.TokenCredentialRequestSpec) *loginapi.TokenCredentialRequest { + return &loginapi.TokenCredentialRequest{ TypeMeta: metav1.TypeMeta{}, ObjectMeta: metav1.ObjectMeta{ Name: "request name", @@ -550,8 +509,8 @@ func requireAPIError(t *testing.T, response runtime.Object, err error, expectedE func requireSuccessfulResponseWithAuthenticationFailureMessage(t *testing.T, err error, response runtime.Object) { t.Helper() require.NoError(t, err) - require.Equal(t, response, &pinnipedapi.CredentialRequest{ - Status: pinnipedapi.CredentialRequestStatus{ + require.Equal(t, response, &loginapi.TokenCredentialRequest{ + Status: loginapi.TokenCredentialRequestStatus{ Credential: nil, Message: stringPtr("authentication failed"), }, diff --git a/internal/server/server.go b/internal/server/server.go index b25c752e..1420182d 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -19,19 +19,19 @@ import ( restclient "k8s.io/client-go/rest" "k8s.io/klog/v2" - crdpinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - pinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" - pinnipedclientset "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" - "github.com/vmware-tanzu/pinniped/internal/apiserver" - "github.com/vmware-tanzu/pinniped/internal/certauthority/kubecertauthority" - "github.com/vmware-tanzu/pinniped/internal/controller/identityprovider/idpcache" - "github.com/vmware-tanzu/pinniped/internal/controller/issuerconfig" - "github.com/vmware-tanzu/pinniped/internal/controllermanager" - "github.com/vmware-tanzu/pinniped/internal/downward" - "github.com/vmware-tanzu/pinniped/internal/here" - "github.com/vmware-tanzu/pinniped/internal/provider" - "github.com/vmware-tanzu/pinniped/internal/registry/credentialrequest" - "github.com/vmware-tanzu/pinniped/pkg/config" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" + pinnipedclientset "go.pinniped.dev/generated/1.19/client/clientset/versioned" + "go.pinniped.dev/internal/apiserver" + "go.pinniped.dev/internal/certauthority/kubecertauthority" + "go.pinniped.dev/internal/controller/identityprovider/idpcache" + "go.pinniped.dev/internal/controller/issuerconfig" + "go.pinniped.dev/internal/controllermanager" + "go.pinniped.dev/internal/downward" + "go.pinniped.dev/internal/here" + "go.pinniped.dev/internal/provider" + "go.pinniped.dev/internal/registry/credentialrequest" + "go.pinniped.dev/pkg/config" ) // App is an object that represents the pinniped-server application. @@ -45,7 +45,7 @@ type App struct { // This is ignored for now because we turn off etcd storage below, but this is // the right prefix in case we turn it back on. -const defaultEtcdPathPrefix = "/registry/" + pinnipedv1alpha1.GroupName +const defaultEtcdPathPrefix = "/registry/" + loginv1alpha1.GroupName // New constructs a new App with command line args, stdout and stderr. func New(ctx context.Context, args []string, stdout, stderr io.Writer) *App { @@ -201,12 +201,12 @@ func getClusterCASigner( serverInstallationNamespace, credentialIssuerConfigResourceName, pinnipedClient, - func(configToUpdate *crdpinnipedv1alpha1.CredentialIssuerConfig) { - configToUpdate.Status.Strategies = []crdpinnipedv1alpha1.CredentialIssuerConfigStrategy{ + func(configToUpdate *configv1alpha1.CredentialIssuerConfig) { + configToUpdate.Status.Strategies = []configv1alpha1.CredentialIssuerConfigStrategy{ { - Type: crdpinnipedv1alpha1.KubeClusterSigningCertificateStrategyType, - Status: crdpinnipedv1alpha1.SuccessStrategyStatus, - Reason: crdpinnipedv1alpha1.FetchedKeyStrategyReason, + Type: configv1alpha1.KubeClusterSigningCertificateStrategyType, + Status: configv1alpha1.SuccessStrategyStatus, + Reason: configv1alpha1.FetchedKeyStrategyReason, Message: "Key was fetched successfully", LastUpdateTime: metav1.Now(), }, @@ -223,12 +223,12 @@ func getClusterCASigner( serverInstallationNamespace, credentialIssuerConfigResourceName, pinnipedClient, - func(configToUpdate *crdpinnipedv1alpha1.CredentialIssuerConfig) { - configToUpdate.Status.Strategies = []crdpinnipedv1alpha1.CredentialIssuerConfigStrategy{ + func(configToUpdate *configv1alpha1.CredentialIssuerConfig) { + configToUpdate.Status.Strategies = []configv1alpha1.CredentialIssuerConfigStrategy{ { - Type: crdpinnipedv1alpha1.KubeClusterSigningCertificateStrategyType, - Status: crdpinnipedv1alpha1.ErrorStrategyStatus, - Reason: crdpinnipedv1alpha1.CouldNotFetchKeyStrategyReason, + Type: configv1alpha1.KubeClusterSigningCertificateStrategyType, + Status: configv1alpha1.ErrorStrategyStatus, + Reason: configv1alpha1.CouldNotFetchKeyStrategyReason, Message: err.Error(), LastUpdateTime: metav1.Now(), }, @@ -252,7 +252,7 @@ func getAggregatedAPIServerConfig( ) (*apiserver.Config, error) { recommendedOptions := genericoptions.NewRecommendedOptions( defaultEtcdPathPrefix, - apiserver.Codecs.LegacyCodec(pinnipedv1alpha1.SchemeGroupVersion), + apiserver.Codecs.LegacyCodec(loginv1alpha1.SchemeGroupVersion), // TODO we should check to see if all the other default settings are acceptable for us ) recommendedOptions.Etcd = nil // turn off etcd storage because we don't need it yet diff --git a/internal/testutil/observable_with_informer_option.go b/internal/testutil/observable_with_informer_option.go index 5195d515..fe632e03 100644 --- a/internal/testutil/observable_with_informer_option.go +++ b/internal/testutil/observable_with_informer_option.go @@ -3,7 +3,7 @@ package testutil -import "github.com/vmware-tanzu/pinniped/internal/controllerlib" +import "go.pinniped.dev/internal/controllerlib" type ObservableWithInformerOption struct { informerToFilterMap map[controllerlib.InformerGetter]controllerlib.Filter diff --git a/internal/testutil/observable_with_initial_event_option.go b/internal/testutil/observable_with_initial_event_option.go index 42837cbe..8cfb1e4d 100644 --- a/internal/testutil/observable_with_initial_event_option.go +++ b/internal/testutil/observable_with_initial_event_option.go @@ -3,7 +3,7 @@ package testutil -import "github.com/vmware-tanzu/pinniped/internal/controllerlib" +import "go.pinniped.dev/internal/controllerlib" type ObservableWithInitialEventOption struct { key controllerlib.Key diff --git a/pkg/config/config.go b/pkg/config/config.go index 9282d6c2..9cc6fdee 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -12,8 +12,8 @@ import ( "sigs.k8s.io/yaml" - "github.com/vmware-tanzu/pinniped/internal/constable" - "github.com/vmware-tanzu/pinniped/pkg/config/api" + "go.pinniped.dev/internal/constable" + "go.pinniped.dev/pkg/config/api" ) const ( diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 839952e9..fed1df9a 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/vmware-tanzu/pinniped/internal/here" - "github.com/vmware-tanzu/pinniped/pkg/config/api" + "go.pinniped.dev/internal/here" + "go.pinniped.dev/pkg/config/api" ) func TestFromPath(t *testing.T) { diff --git a/test/integration/api_discovery_test.go b/test/integration/api_discovery_test.go index 26f57420..d5eec031 100644 --- a/test/integration/api_discovery_test.go +++ b/test/integration/api_discovery_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/require" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/vmware-tanzu/pinniped/test/library" + "go.pinniped.dev/test/library" ) func TestGetAPIResourceList(t *testing.T) { @@ -26,25 +26,25 @@ func TestGetAPIResourceList(t *testing.T) { }{ { group: metav1.APIGroup{ - Name: "pinniped.dev", + Name: "login.pinniped.dev", Versions: []metav1.GroupVersionForDiscovery{ { - GroupVersion: "pinniped.dev/v1alpha1", + GroupVersion: "login.pinniped.dev/v1alpha1", Version: "v1alpha1", }, }, PreferredVersion: metav1.GroupVersionForDiscovery{ - GroupVersion: "pinniped.dev/v1alpha1", + GroupVersion: "login.pinniped.dev/v1alpha1", Version: "v1alpha1", }, }, resourceByVersion: map[string][]metav1.APIResource{ - "pinniped.dev/v1alpha1": { + "login.pinniped.dev/v1alpha1": { { - Name: "credentialrequests", - Kind: "CredentialRequest", + Name: "tokencredentialrequests", + Kind: "TokenCredentialRequest", Verbs: []string{"create"}, - Namespaced: false, + Namespaced: true, // This is currently an empty string in the response; maybe it should not be // empty? Seems like no harm in keeping it like this for now, but feel free @@ -56,20 +56,20 @@ func TestGetAPIResourceList(t *testing.T) { }, { group: metav1.APIGroup{ - Name: "crd.pinniped.dev", + Name: "config.pinniped.dev", Versions: []metav1.GroupVersionForDiscovery{ { - GroupVersion: "crd.pinniped.dev/v1alpha1", + GroupVersion: "config.pinniped.dev/v1alpha1", Version: "v1alpha1", }, }, PreferredVersion: metav1.GroupVersionForDiscovery{ - GroupVersion: "crd.pinniped.dev/v1alpha1", + GroupVersion: "config.pinniped.dev/v1alpha1", Version: "v1alpha1", }, }, resourceByVersion: map[string][]metav1.APIResource{ - "crd.pinniped.dev/v1alpha1": { + "config.pinniped.dev/v1alpha1": { { Name: "credentialissuerconfigs", SingularName: "credentialissuerconfig", diff --git a/test/integration/api_serving_certs_test.go b/test/integration/api_serving_certs_test.go index 75aa7cf7..7a1f8943 100644 --- a/test/integration/api_serving_certs_test.go +++ b/test/integration/api_serving_certs_test.go @@ -13,9 +13,9 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/internal/testutil" - "github.com/vmware-tanzu/pinniped/test/library" + loginv1alpha1 "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" + "go.pinniped.dev/internal/testutil" + "go.pinniped.dev/test/library" ) func TestAPIServingCertificateAutoCreationAndRotation(t *testing.T) { @@ -82,7 +82,7 @@ func TestAPIServingCertificateAutoCreationAndRotation(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute) defer cancel() - const apiServiceName = "v1alpha1.pinniped.dev" + const apiServiceName = "v1alpha1.login.pinniped.dev" // Get the initial auto-generated version of the Secret. secret, err := kubeClient.CoreV1().Secrets(namespaceName).Get(ctx, defaultServingCertResourceName, metav1.GetOptions{}) @@ -135,13 +135,10 @@ func TestAPIServingCertificateAutoCreationAndRotation(t *testing.T) { // pod has rotated their cert, but not the other ones sitting behind the service. aggregatedAPIWorking := func() bool { for i := 0; i < 10; i++ { - _, err = pinnipedClient.PinnipedV1alpha1().CredentialRequests().Create(ctx, &v1alpha1.CredentialRequest{ + _, err = pinnipedClient.LoginV1alpha1().TokenCredentialRequests(namespaceName).Create(ctx, &loginv1alpha1.TokenCredentialRequest{ TypeMeta: metav1.TypeMeta{}, ObjectMeta: metav1.ObjectMeta{}, - Spec: v1alpha1.CredentialRequestSpec{ - Type: v1alpha1.TokenCredentialType, - Token: &v1alpha1.CredentialRequestTokenCredential{Value: "not a good token"}, - }, + Spec: loginv1alpha1.TokenCredentialRequestSpec{Token: "not a good token"}, }, metav1.CreateOptions{}) if err != nil { break diff --git a/test/integration/app_availability_test.go b/test/integration/app_availability_test.go index b8ac29e1..0b1d2546 100644 --- a/test/integration/app_availability_test.go +++ b/test/integration/app_availability_test.go @@ -13,7 +13,7 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/vmware-tanzu/pinniped/test/library" + "go.pinniped.dev/test/library" ) func TestGetDeployment(t *testing.T) { diff --git a/test/integration/cli_test.go b/test/integration/cli_test.go index 5905efc7..065b71d2 100644 --- a/test/integration/cli_test.go +++ b/test/integration/cli_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/vmware-tanzu/pinniped/test/library" + "go.pinniped.dev/test/library" ) func TestCLI(t *testing.T) { @@ -93,7 +93,7 @@ func buildPinnipedCLI(t *testing.T) (string, func()) { "build", "-o", pinnipedExe, - "github.com/vmware-tanzu/pinniped/cmd/pinniped", + "go.pinniped.dev/cmd/pinniped", ).CombinedOutput() require.NoError(t, err, string(output)) diff --git a/test/integration/client_test.go b/test/integration/client_test.go index 1ad24fe4..9992126d 100644 --- a/test/integration/client_test.go +++ b/test/integration/client_test.go @@ -11,9 +11,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/vmware-tanzu/pinniped/internal/client" - "github.com/vmware-tanzu/pinniped/internal/here" - "github.com/vmware-tanzu/pinniped/test/library" + "go.pinniped.dev/internal/client" + "go.pinniped.dev/internal/here" + "go.pinniped.dev/test/library" ) // Test certificate and private key that should get an authentication error. Generated with cfssl [1], like this: diff --git a/test/integration/credentialissuerconfig_test.go b/test/integration/credentialissuerconfig_test.go index aa7f01e3..befec19d 100644 --- a/test/integration/credentialissuerconfig_test.go +++ b/test/integration/credentialissuerconfig_test.go @@ -14,8 +14,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/rest" - crdpinnipedv1alpha1 "github.com/vmware-tanzu/pinniped/generated/1.19/apis/crdpinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/test/library" + configv1alpha1 "go.pinniped.dev/generated/1.19/apis/config/v1alpha1" + "go.pinniped.dev/test/library" ) func TestCredentialIssuerConfig(t *testing.T) { @@ -30,7 +30,7 @@ func TestCredentialIssuerConfig(t *testing.T) { t.Run("test successful CredentialIssuerConfig", func(t *testing.T) { actualConfigList, err := client. - CrdV1alpha1(). + ConfigV1alpha1(). CredentialIssuerConfigs(namespaceName). List(ctx, metav1.ListOptions{}) require.NoError(t, err) @@ -43,17 +43,17 @@ func TestCredentialIssuerConfig(t *testing.T) { actualStatusStrategies := actualConfigList.Items[0].Status.Strategies require.Len(t, actualStatusStrategies, 1) actualStatusStrategy := actualStatusStrategies[0] - require.Equal(t, crdpinnipedv1alpha1.KubeClusterSigningCertificateStrategyType, actualStatusStrategy.Type) + require.Equal(t, configv1alpha1.KubeClusterSigningCertificateStrategyType, actualStatusStrategy.Type) if library.ClusterHasCapability(t, library.ClusterSigningKeyIsAvailable) { - require.Equal(t, crdpinnipedv1alpha1.SuccessStrategyStatus, actualStatusStrategy.Status) - require.Equal(t, crdpinnipedv1alpha1.FetchedKeyStrategyReason, actualStatusStrategy.Reason) + require.Equal(t, configv1alpha1.SuccessStrategyStatus, actualStatusStrategy.Status) + require.Equal(t, configv1alpha1.FetchedKeyStrategyReason, actualStatusStrategy.Reason) require.Equal(t, "Key was fetched successfully", actualStatusStrategy.Message) // Verify the published kube config info. require.Equal(t, expectedStatusKubeConfigInfo(config), actualStatusKubeConfigInfo) } else { - require.Equal(t, crdpinnipedv1alpha1.ErrorStrategyStatus, actualStatusStrategy.Status) - require.Equal(t, crdpinnipedv1alpha1.CouldNotFetchKeyStrategyReason, actualStatusStrategy.Reason) + require.Equal(t, configv1alpha1.ErrorStrategyStatus, actualStatusStrategy.Status) + require.Equal(t, configv1alpha1.CouldNotFetchKeyStrategyReason, actualStatusStrategy.Reason) require.Contains(t, actualStatusStrategy.Message, "did not find kube-controller-manager pod") // For now, don't verify the kube config info because its not available on GKE. We'll need to address // this somehow once we starting supporting those cluster types. @@ -68,7 +68,7 @@ func TestCredentialIssuerConfig(t *testing.T) { library.SkipUnlessClusterHasCapability(t, library.ClusterSigningKeyIsAvailable) existingConfig, err := client. - CrdV1alpha1(). + ConfigV1alpha1(). CredentialIssuerConfigs(namespaceName). Get(ctx, "pinniped-config", metav1.GetOptions{}) require.NoError(t, err) @@ -80,17 +80,17 @@ func TestCredentialIssuerConfig(t *testing.T) { updatedServerValue := "https://junk" existingConfig.Status.KubeConfigInfo.Server = updatedServerValue updatedConfig, err := client. - CrdV1alpha1(). + ConfigV1alpha1(). CredentialIssuerConfigs(namespaceName). Update(ctx, existingConfig, metav1.UpdateOptions{}) require.NoError(t, err) require.Equal(t, updatedServerValue, updatedConfig.Status.KubeConfigInfo.Server) // Expect that the object's mutated field is set back to what matches its source of truth by the controller. - var actualCredentialIssuerConfig *crdpinnipedv1alpha1.CredentialIssuerConfig + var actualCredentialIssuerConfig *configv1alpha1.CredentialIssuerConfig var configChangesServerField = func() bool { actualCredentialIssuerConfig, err = client. - CrdV1alpha1(). + ConfigV1alpha1(). CredentialIssuerConfigs(namespaceName). Get(ctx, "pinniped-config", metav1.GetOptions{}) return err == nil && actualCredentialIssuerConfig.Status.KubeConfigInfo.Server != updatedServerValue @@ -106,8 +106,8 @@ func TestCredentialIssuerConfig(t *testing.T) { }) } -func expectedStatusKubeConfigInfo(config *rest.Config) *crdpinnipedv1alpha1.CredentialIssuerConfigKubeConfigInfo { - return &crdpinnipedv1alpha1.CredentialIssuerConfigKubeConfigInfo{ +func expectedStatusKubeConfigInfo(config *rest.Config) *configv1alpha1.CredentialIssuerConfigKubeConfigInfo { + return &configv1alpha1.CredentialIssuerConfigKubeConfigInfo{ Server: config.Host, CertificateAuthorityData: base64.StdEncoding.EncodeToString(config.TLSClientConfig.CAData), } diff --git a/test/integration/credentialrequest_test.go b/test/integration/credentialrequest_test.go index 9e5ce7d1..fe321c54 100644 --- a/test/integration/credentialrequest_test.go +++ b/test/integration/credentialrequest_test.go @@ -18,8 +18,8 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" - "github.com/vmware-tanzu/pinniped/generated/1.19/apis/pinniped/v1alpha1" - "github.com/vmware-tanzu/pinniped/test/library" + "go.pinniped.dev/generated/1.19/apis/login/v1alpha1" + "go.pinniped.dev/test/library" ) func TestSuccessfulCredentialRequest(t *testing.T) { @@ -74,10 +74,7 @@ func TestFailedCredentialRequestWhenTheRequestIsValidButTheTokenDoesNotAuthentic library.SkipUnlessIntegration(t) library.SkipUnlessClusterHasCapability(t, library.ClusterSigningKeyIsAvailable) - response, err := makeRequest(t, v1alpha1.CredentialRequestSpec{ - Type: v1alpha1.TokenCredentialType, - Token: &v1alpha1.CredentialRequestTokenCredential{Value: "not a good token"}, - }) + response, err := makeRequest(t, v1alpha1.TokenCredentialRequestSpec{Token: "not a good token"}) require.NoError(t, err) @@ -90,10 +87,7 @@ func TestCredentialRequest_ShouldFailWhenRequestDoesNotIncludeToken(t *testing.T library.SkipUnlessIntegration(t) library.SkipUnlessClusterHasCapability(t, library.ClusterSigningKeyIsAvailable) - response, err := makeRequest(t, v1alpha1.CredentialRequestSpec{ - Type: v1alpha1.TokenCredentialType, - Token: nil, - }) + response, err := makeRequest(t, v1alpha1.TokenCredentialRequestSpec{Token: ""}) require.Error(t, err) statusError, isStatus := err.(*errors.StatusError) @@ -122,7 +116,7 @@ func TestCredentialRequest_OtherwiseValidRequestWithRealTokenShouldFailWhenTheCl require.Equal(t, stringPtr("authentication failed"), response.Status.Message) } -func makeRequest(t *testing.T, spec v1alpha1.CredentialRequestSpec) (*v1alpha1.CredentialRequest, error) { +func makeRequest(t *testing.T, spec v1alpha1.TokenCredentialRequestSpec) (*v1alpha1.TokenCredentialRequest, error) { t.Helper() client := library.NewAnonymousPinnipedClientset(t) @@ -130,19 +124,16 @@ func makeRequest(t *testing.T, spec v1alpha1.CredentialRequestSpec) (*v1alpha1.C ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() - return client.PinnipedV1alpha1().CredentialRequests().Create(ctx, &v1alpha1.CredentialRequest{ + ns := library.GetEnv(t, "PINNIPED_NAMESPACE") + return client.LoginV1alpha1().TokenCredentialRequests(ns).Create(ctx, &v1alpha1.TokenCredentialRequest{ TypeMeta: metav1.TypeMeta{}, ObjectMeta: metav1.ObjectMeta{}, Spec: spec, }, metav1.CreateOptions{}) } -func validCredentialRequestSpecWithRealToken(t *testing.T) v1alpha1.CredentialRequestSpec { - token := library.GetEnv(t, "PINNIPED_TEST_USER_TOKEN") - return v1alpha1.CredentialRequestSpec{ - Type: v1alpha1.TokenCredentialType, - Token: &v1alpha1.CredentialRequestTokenCredential{Value: token}, - } +func validCredentialRequestSpecWithRealToken(t *testing.T) v1alpha1.TokenCredentialRequestSpec { + return v1alpha1.TokenCredentialRequestSpec{Token: library.GetEnv(t, "PINNIPED_TEST_USER_TOKEN")} } func addTestClusterRoleBinding(ctx context.Context, t *testing.T, adminClient kubernetes.Interface, binding *rbacv1.ClusterRoleBinding) { diff --git a/test/integration/kubectl_test.go b/test/integration/kubectl_test.go index d82f6d80..62b63fe6 100644 --- a/test/integration/kubectl_test.go +++ b/test/integration/kubectl_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/vmware-tanzu/pinniped/test/library" + "go.pinniped.dev/test/library" ) // Smoke test to see if the kubeconfig works and the cluster is reachable. diff --git a/test/library/client.go b/test/library/client.go index e93a21b4..8249c647 100644 --- a/test/library/client.go +++ b/test/library/client.go @@ -15,7 +15,7 @@ import ( clientcmdapi "k8s.io/client-go/tools/clientcmd/api" aggregatorclient "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset" - pinnipedclientset "github.com/vmware-tanzu/pinniped/generated/1.19/client/clientset/versioned" + pinnipedclientset "go.pinniped.dev/generated/1.19/client/clientset/versioned" // Import to initialize client auth plugins - the kubeconfig that we use for // testing may use gcloud, az, oidc, etc.