From 7e86c0ed2ab950f1ba7590bbf228afae84e7a97c Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Wed, 21 Oct 2020 14:21:44 +0200 Subject: [PATCH] make update --- hack/openapi-violation.list | 3 + .../apis/oauth/v1/zz_generated.conversion.go | 80 ++++ pkg/oauth/apis/oauth/zz_generated.deepcopy.go | 64 +++ pkg/openapi/zz_generated.openapi.go | 398 +++++++++++++++++- 4 files changed, 543 insertions(+), 2 deletions(-) diff --git a/hack/openapi-violation.list b/hack/openapi-violation.list index 851d9ed05..79e85da36 100644 --- a/hack/openapi-violation.list +++ b/hack/openapi-violation.list @@ -95,6 +95,7 @@ API rule violation: list_type_missing,github.com/openshift/api/oauth/v1,OAuthCli API rule violation: list_type_missing,github.com/openshift/api/oauth/v1,OAuthClient,ScopeRestrictions API rule violation: list_type_missing,github.com/openshift/api/oauth/v1,OAuthClientAuthorization,Scopes API rule violation: list_type_missing,github.com/openshift/api/oauth/v1,ScopeRestriction,ExactValues +API rule violation: list_type_missing,github.com/openshift/api/oauth/v1,UserOAuthAccessToken,Scopes API rule violation: list_type_missing,github.com/openshift/api/openshiftcontrolplane/v1,BuildDefaultsConfig,Env API rule violation: list_type_missing,github.com/openshift/api/openshiftcontrolplane/v1,BuildDefaultsConfig,ImageLabels API rule violation: list_type_missing,github.com/openshift/api/openshiftcontrolplane/v1,BuildOverridesConfig,ImageLabels @@ -126,6 +127,8 @@ API rule violation: list_type_missing,github.com/openshift/api/osin/v1,RequestHe API rule violation: list_type_missing,github.com/openshift/api/osin/v1,RequestHeaderIdentityProvider,NameHeaders API rule violation: list_type_missing,github.com/openshift/api/osin/v1,RequestHeaderIdentityProvider,PreferredUsernameHeaders API rule violation: list_type_missing,github.com/openshift/api/osin/v1,SessionSecrets,Secrets +API rule violation: list_type_missing,github.com/openshift/api/project/v1,ProjectSpec,Finalizers +API rule violation: list_type_missing,github.com/openshift/api/project/v1,ProjectStatus,Conditions API rule violation: list_type_missing,github.com/openshift/api/route/v1,RouteIngress,Conditions API rule violation: list_type_missing,github.com/openshift/api/route/v1,RouteSpec,AlternateBackends API rule violation: list_type_missing,github.com/openshift/api/route/v1,RouteStatus,Ingress diff --git a/pkg/oauth/apis/oauth/v1/zz_generated.conversion.go b/pkg/oauth/apis/oauth/v1/zz_generated.conversion.go index f154146f9..5a9a82ae8 100644 --- a/pkg/oauth/apis/oauth/v1/zz_generated.conversion.go +++ b/pkg/oauth/apis/oauth/v1/zz_generated.conversion.go @@ -140,6 +140,26 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } + if err := s.AddGeneratedConversionFunc((*v1.UserOAuthAccessToken)(nil), (*oauth.UserOAuthAccessToken)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserOAuthAccessToken_To_oauth_UserOAuthAccessToken(a.(*v1.UserOAuthAccessToken), b.(*oauth.UserOAuthAccessToken), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*oauth.UserOAuthAccessToken)(nil), (*v1.UserOAuthAccessToken)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_oauth_UserOAuthAccessToken_To_v1_UserOAuthAccessToken(a.(*oauth.UserOAuthAccessToken), b.(*v1.UserOAuthAccessToken), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*v1.UserOAuthAccessTokenList)(nil), (*oauth.UserOAuthAccessTokenList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_UserOAuthAccessTokenList_To_oauth_UserOAuthAccessTokenList(a.(*v1.UserOAuthAccessTokenList), b.(*oauth.UserOAuthAccessTokenList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*oauth.UserOAuthAccessTokenList)(nil), (*v1.UserOAuthAccessTokenList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_oauth_UserOAuthAccessTokenList_To_v1_UserOAuthAccessTokenList(a.(*oauth.UserOAuthAccessTokenList), b.(*v1.UserOAuthAccessTokenList), scope) + }); err != nil { + return err + } return nil } @@ -466,3 +486,63 @@ func autoConvert_oauth_ScopeRestriction_To_v1_ScopeRestriction(in *oauth.ScopeRe func Convert_oauth_ScopeRestriction_To_v1_ScopeRestriction(in *oauth.ScopeRestriction, out *v1.ScopeRestriction, s conversion.Scope) error { return autoConvert_oauth_ScopeRestriction_To_v1_ScopeRestriction(in, out, s) } + +func autoConvert_v1_UserOAuthAccessToken_To_oauth_UserOAuthAccessToken(in *v1.UserOAuthAccessToken, out *oauth.UserOAuthAccessToken, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ClientName = in.ClientName + out.ExpiresIn = in.ExpiresIn + out.Scopes = *(*[]string)(unsafe.Pointer(&in.Scopes)) + out.RedirectURI = in.RedirectURI + out.UserName = in.UserName + out.UserUID = in.UserUID + out.AuthorizeToken = in.AuthorizeToken + out.RefreshToken = in.RefreshToken + out.InactivityTimeoutSeconds = in.InactivityTimeoutSeconds + return nil +} + +// Convert_v1_UserOAuthAccessToken_To_oauth_UserOAuthAccessToken is an autogenerated conversion function. +func Convert_v1_UserOAuthAccessToken_To_oauth_UserOAuthAccessToken(in *v1.UserOAuthAccessToken, out *oauth.UserOAuthAccessToken, s conversion.Scope) error { + return autoConvert_v1_UserOAuthAccessToken_To_oauth_UserOAuthAccessToken(in, out, s) +} + +func autoConvert_oauth_UserOAuthAccessToken_To_v1_UserOAuthAccessToken(in *oauth.UserOAuthAccessToken, out *v1.UserOAuthAccessToken, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + out.ClientName = in.ClientName + out.ExpiresIn = in.ExpiresIn + out.Scopes = *(*[]string)(unsafe.Pointer(&in.Scopes)) + out.RedirectURI = in.RedirectURI + out.UserName = in.UserName + out.UserUID = in.UserUID + out.AuthorizeToken = in.AuthorizeToken + out.RefreshToken = in.RefreshToken + out.InactivityTimeoutSeconds = in.InactivityTimeoutSeconds + return nil +} + +// Convert_oauth_UserOAuthAccessToken_To_v1_UserOAuthAccessToken is an autogenerated conversion function. +func Convert_oauth_UserOAuthAccessToken_To_v1_UserOAuthAccessToken(in *oauth.UserOAuthAccessToken, out *v1.UserOAuthAccessToken, s conversion.Scope) error { + return autoConvert_oauth_UserOAuthAccessToken_To_v1_UserOAuthAccessToken(in, out, s) +} + +func autoConvert_v1_UserOAuthAccessTokenList_To_oauth_UserOAuthAccessTokenList(in *v1.UserOAuthAccessTokenList, out *oauth.UserOAuthAccessTokenList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]oauth.UserOAuthAccessToken)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_UserOAuthAccessTokenList_To_oauth_UserOAuthAccessTokenList is an autogenerated conversion function. +func Convert_v1_UserOAuthAccessTokenList_To_oauth_UserOAuthAccessTokenList(in *v1.UserOAuthAccessTokenList, out *oauth.UserOAuthAccessTokenList, s conversion.Scope) error { + return autoConvert_v1_UserOAuthAccessTokenList_To_oauth_UserOAuthAccessTokenList(in, out, s) +} + +func autoConvert_oauth_UserOAuthAccessTokenList_To_v1_UserOAuthAccessTokenList(in *oauth.UserOAuthAccessTokenList, out *v1.UserOAuthAccessTokenList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]v1.UserOAuthAccessToken)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_oauth_UserOAuthAccessTokenList_To_v1_UserOAuthAccessTokenList is an autogenerated conversion function. +func Convert_oauth_UserOAuthAccessTokenList_To_v1_UserOAuthAccessTokenList(in *oauth.UserOAuthAccessTokenList, out *v1.UserOAuthAccessTokenList, s conversion.Scope) error { + return autoConvert_oauth_UserOAuthAccessTokenList_To_v1_UserOAuthAccessTokenList(in, out, s) +} diff --git a/pkg/oauth/apis/oauth/zz_generated.deepcopy.go b/pkg/oauth/apis/oauth/zz_generated.deepcopy.go index d36736222..c8af14117 100644 --- a/pkg/oauth/apis/oauth/zz_generated.deepcopy.go +++ b/pkg/oauth/apis/oauth/zz_generated.deepcopy.go @@ -380,3 +380,67 @@ func (in *ScopeRestriction) DeepCopy() *ScopeRestriction { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *UserOAuthAccessToken) DeepCopyInto(out *UserOAuthAccessToken) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + if in.Scopes != nil { + in, out := &in.Scopes, &out.Scopes + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserOAuthAccessToken. +func (in *UserOAuthAccessToken) DeepCopy() *UserOAuthAccessToken { + if in == nil { + return nil + } + out := new(UserOAuthAccessToken) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserOAuthAccessToken) 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 *UserOAuthAccessTokenList) DeepCopyInto(out *UserOAuthAccessTokenList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]UserOAuthAccessToken, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserOAuthAccessTokenList. +func (in *UserOAuthAccessTokenList) DeepCopy() *UserOAuthAccessTokenList { + if in == nil { + return nil + } + out := new(UserOAuthAccessTokenList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *UserOAuthAccessTokenList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index 78092401d..b662eef7b 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -246,6 +246,8 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/openshift/api/oauth/v1.OAuthRedirectReference": schema_openshift_api_oauth_v1_OAuthRedirectReference(ref), "github.com/openshift/api/oauth/v1.RedirectReference": schema_openshift_api_oauth_v1_RedirectReference(ref), "github.com/openshift/api/oauth/v1.ScopeRestriction": schema_openshift_api_oauth_v1_ScopeRestriction(ref), + "github.com/openshift/api/oauth/v1.UserOAuthAccessToken": schema_openshift_api_oauth_v1_UserOAuthAccessToken(ref), + "github.com/openshift/api/oauth/v1.UserOAuthAccessTokenList": schema_openshift_api_oauth_v1_UserOAuthAccessTokenList(ref), "github.com/openshift/api/openshiftcontrolplane/v1.BuildControllerConfig": schema_openshift_api_openshiftcontrolplane_v1_BuildControllerConfig(ref), "github.com/openshift/api/openshiftcontrolplane/v1.BuildDefaultsConfig": schema_openshift_api_openshiftcontrolplane_v1_BuildDefaultsConfig(ref), "github.com/openshift/api/openshiftcontrolplane/v1.BuildOverridesConfig": schema_openshift_api_openshiftcontrolplane_v1_BuildOverridesConfig(ref), @@ -292,6 +294,11 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/openshift/api/osin/v1.SessionSecret": schema_openshift_api_osin_v1_SessionSecret(ref), "github.com/openshift/api/osin/v1.SessionSecrets": schema_openshift_api_osin_v1_SessionSecrets(ref), "github.com/openshift/api/osin/v1.TokenConfig": schema_openshift_api_osin_v1_TokenConfig(ref), + "github.com/openshift/api/project/v1.Project": schema_openshift_api_project_v1_Project(ref), + "github.com/openshift/api/project/v1.ProjectList": schema_openshift_api_project_v1_ProjectList(ref), + "github.com/openshift/api/project/v1.ProjectRequest": schema_openshift_api_project_v1_ProjectRequest(ref), + "github.com/openshift/api/project/v1.ProjectSpec": schema_openshift_api_project_v1_ProjectSpec(ref), + "github.com/openshift/api/project/v1.ProjectStatus": schema_openshift_api_project_v1_ProjectStatus(ref), "github.com/openshift/api/route/v1.Route": schema_openshift_api_route_v1_Route(ref), "github.com/openshift/api/route/v1.RouteIngress": schema_openshift_api_route_v1_RouteIngress(ref), "github.com/openshift/api/route/v1.RouteIngressCondition": schema_openshift_api_route_v1_RouteIngressCondition(ref), @@ -7368,7 +7375,7 @@ func schema_openshift_api_config_v1_InfrastructureStatus(ref common.ReferenceCal }, "etcdDiscoveryDomain": { SchemaProps: spec.SchemaProps{ - Description: "etcdDiscoveryDomain is the domain used to fetch the SRV records for discovering etcd servers and clients. For more info: https://github.com/etcd-io/etcd/blob/329be66e8b3f9e2e6af83c123ff89297e49ebd15/Documentation/op-guide/clustering.md#dns-discovery", + Description: "etcdDiscoveryDomain is the domain used to fetch the SRV records for discovering etcd servers and clients. For more info: https://github.com/etcd-io/etcd/blob/329be66e8b3f9e2e6af83c123ff89297e49ebd15/Documentation/op-guide/clustering.md#dns-discovery deprecated: as of 4.7, this field is no longer set or honored. It will be removed in a future release.", Type: []string{"string"}, Format: "", }, @@ -7502,6 +7509,13 @@ func schema_openshift_api_config_v1_IngressSpec(ref common.ReferenceCallback) co Format: "", }, }, + "appsDomain": { + SchemaProps: spec.SchemaProps{ + Description: "appsDomain is an optional domain to use instead of the one specified in the domain field when a Route is created without specifying an explicit host. If appsDomain is nonempty, this value is used to generate default host values for Route. Unlike domain, appsDomain may be modified after installation. This assumes a new ingresscontroller has been setup with a wildcard certificate.", + Type: []string{"string"}, + Format: "", + }, + }, }, Required: []string{"domain"}, }, @@ -9317,6 +9331,25 @@ func schema_openshift_api_config_v1_RegistrySources(ref common.ReferenceCallback }, }, }, + "containerRuntimeSearchRegistries": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "containerRuntimeSearchRegistries are registries that will be searched when pulling images that do not have fully qualified domains in their pull specs. Registries will be searched in the order provided in the list. Note: this search list only works with the container runtime, i.e CRI-O. Will NOT work with builds or imagestream imports.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, }, }, }, @@ -9621,7 +9654,7 @@ func schema_openshift_api_config_v1_SchedulerSpec(ref common.ReferenceCallback) Properties: map[string]spec.Schema{ "policy": { SchemaProps: spec.SchemaProps{ - Description: "policy is a reference to a ConfigMap containing scheduler policy which has user specified predicates and priorities. If this ConfigMap is not available scheduler will default to use DefaultAlgorithmProvider. The namespace for this configmap is openshift-config.", + Description: "DEPRECATED: the scheduler Policy API has been deprecated and will be removed in a future release. policy is a reference to a ConfigMap containing scheduler policy which has user specified predicates and priorities. If this ConfigMap is not available scheduler will default to use DefaultAlgorithmProvider. The namespace for this configmap is openshift-config.", Ref: ref("github.com/openshift/api/config/v1.ConfigMapNameReference"), }, }, @@ -10938,6 +10971,157 @@ func schema_openshift_api_oauth_v1_ScopeRestriction(ref common.ReferenceCallback } } +func schema_openshift_api_oauth_v1_UserOAuthAccessToken(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "UserOAuthAccessToken is a virtual resource to mirror OAuthAccessTokens to the user the access token was issued for", + 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"), + }, + }, + "clientName": { + SchemaProps: spec.SchemaProps{ + Description: "ClientName references the client that created this token.", + Type: []string{"string"}, + Format: "", + }, + }, + "expiresIn": { + SchemaProps: spec.SchemaProps{ + Description: "ExpiresIn is the seconds from CreationTime before this token expires.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "scopes": { + SchemaProps: spec.SchemaProps{ + Description: "Scopes is an array of the requested scopes.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "redirectURI": { + SchemaProps: spec.SchemaProps{ + Description: "RedirectURI is the redirection associated with the token.", + Type: []string{"string"}, + Format: "", + }, + }, + "userName": { + SchemaProps: spec.SchemaProps{ + Description: "UserName is the user name associated with this token", + Type: []string{"string"}, + Format: "", + }, + }, + "userUID": { + SchemaProps: spec.SchemaProps{ + Description: "UserUID is the unique UID associated with this token", + Type: []string{"string"}, + Format: "", + }, + }, + "authorizeToken": { + SchemaProps: spec.SchemaProps{ + Description: "AuthorizeToken contains the token that authorized this token", + Type: []string{"string"}, + Format: "", + }, + }, + "refreshToken": { + SchemaProps: spec.SchemaProps{ + Description: "RefreshToken is the value by which this token can be renewed. Can be blank.", + Type: []string{"string"}, + Format: "", + }, + }, + "inactivityTimeoutSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "InactivityTimeoutSeconds is the value in seconds, from the CreationTimestamp, after which this token can no longer be used. The value is automatically incremented when the token is used.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_openshift_api_oauth_v1_UserOAuthAccessTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "UserOAuthAccessTokenList is a collection of access tokens issued on behalf of the requesting user", + 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/openshift/api/oauth/v1.UserOAuthAccessToken"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/openshift/api/oauth/v1.UserOAuthAccessToken", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + func schema_openshift_api_openshiftcontrolplane_v1_BuildControllerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -13360,6 +13544,216 @@ func schema_openshift_api_osin_v1_TokenConfig(ref common.ReferenceCallback) comm } } +func schema_openshift_api_project_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Projects are the unit of isolation and collaboration in OpenShift. A project has one or more members, a quota on the resources that the project may consume, and the security controls on the resources in the project. Within a project, members may have different roles - project administrators can set membership, editors can create and manage the resources, and viewers can see but not access running containers. In a normal cluster project administrators are not able to alter their quotas - that is restricted to cluster administrators.\n\nListing or watching projects will return only projects the user has the reader role on.\n\nAn OpenShift project is an alternative representation of a Kubernetes namespace. Projects are exposed as editable to end users while namespaces are not. Direct creation of a project is typically restricted to administrators, while end users should use the requestproject resource.", + 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{ + Description: "Spec defines the behavior of the Namespace.", + Ref: ref("github.com/openshift/api/project/v1.ProjectSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "Status describes the current status of a Namespace", + Ref: ref("github.com/openshift/api/project/v1.ProjectStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/openshift/api/project/v1.ProjectSpec", "github.com/openshift/api/project/v1.ProjectStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_openshift_api_project_v1_ProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ProjectList is a list of Project 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{ + Description: "Items is the list of projects", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/openshift/api/project/v1.Project"), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/openshift/api/project/v1.Project", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, + } +} + +func schema_openshift_api_project_v1_ProjectRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ProjecRequest is the set of options necessary to fully qualify a project request", + 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"), + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the display name to apply to a project", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description is the description to apply to a project", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, + } +} + +func schema_openshift_api_project_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ProjectSpec describes the attributes on a Project", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "finalizers": { + SchemaProps: spec.SchemaProps{ + Description: "Finalizers is an opaque list of values that must be empty to permanently remove object from storage", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_openshift_api_project_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ProjectStatus is information about the current status of a Project", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Phase is the current lifecycle phase of the project", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Represents the latest available observations of the project current state.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.NamespaceCondition"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.NamespaceCondition"}, + } +} + func schema_openshift_api_route_v1_Route(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{