// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &PodDisruptionBudget{}, ) // Add the watch version that applies versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) }
func AddToScheme(scheme *runtime.Scheme) { if err := Scheme.AddIgnoredConversionType(&unversioned.TypeMeta{}, &unversioned.TypeMeta{}); err != nil { panic(err) } scheme.AddKnownTypes(SchemeGroupVersion, &Pod{}, &PodList{}, &PodStatusResult{}, &PodTemplate{}, &PodTemplateList{}, &ReplicationControllerList{}, &ReplicationController{}, &ServiceList{}, &Service{}, &NodeList{}, &Node{}, &Endpoints{}, &EndpointsList{}, &Binding{}, &Event{}, &EventList{}, &List{}, &LimitRange{}, &LimitRangeList{}, &ResourceQuota{}, &ResourceQuotaList{}, &Namespace{}, &NamespaceList{}, &ServiceAccount{}, &ServiceAccountList{}, &Secret{}, &SecretList{}, &PersistentVolume{}, &PersistentVolumeList{}, &PersistentVolumeClaim{}, &PersistentVolumeClaimList{}, &DeleteOptions{}, &ListOptions{}, &PodAttachOptions{}, &PodLogOptions{}, &PodExecOptions{}, &PodProxyOptions{}, &ComponentStatus{}, &ComponentStatusList{}, &SerializedReference{}, &RangeAllocation{}, &ConfigMap{}, &ConfigMapList{}, ) // Register Unversioned types under their own special group Scheme.AddUnversionedTypes(Unversioned, &unversioned.ExportOptions{}, &unversioned.Status{}, &unversioned.APIVersions{}, &unversioned.APIGroupList{}, &unversioned.APIGroup{}, &unversioned.APIResourceList{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &extensions.Job{}, &extensions.JobList{}, &api.ListOptions{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { // TODO this gets cleaned up when the types are fixed scheme.AddKnownTypes(SchemeGroupVersion, &Deployment{}, &DeploymentList{}, &DeploymentRollback{}, &autoscaling.HorizontalPodAutoscaler{}, &autoscaling.HorizontalPodAutoscalerList{}, &ReplicationControllerDummy{}, &Scale{}, &ThirdPartyResource{}, &ThirdPartyResourceList{}, &DaemonSetList{}, &DaemonSet{}, &ThirdPartyResourceData{}, &ThirdPartyResourceDataList{}, &Ingress{}, &IngressList{}, &api.ListOptions{}, &api.DeleteOptions{}, &ReplicaSet{}, &ReplicaSetList{}, &metav1.ExportOptions{}, &metav1.GetOptions{}, &PodSecurityPolicy{}, &PodSecurityPolicyList{}, &NetworkPolicy{}, &NetworkPolicyList{}, ) return nil }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { if err := scheme.AddIgnoredConversionType(&unversioned.TypeMeta{}, &unversioned.TypeMeta{}); err != nil { panic(err) } scheme.AddKnownTypes(SchemeGroupVersion, &MasterConfig{}, &NodeConfig{}, &SessionSecrets{}, &BasicAuthPasswordIdentityProvider{}, &AllowAllPasswordIdentityProvider{}, &DenyAllPasswordIdentityProvider{}, &HTPasswdPasswordIdentityProvider{}, &LDAPPasswordIdentityProvider{}, &KeystonePasswordIdentityProvider{}, &RequestHeaderIdentityProvider{}, &GitHubIdentityProvider{}, &GitLabIdentityProvider{}, &GoogleIdentityProvider{}, &OpenIDIdentityProvider{}, &LDAPSyncConfig{}, &DefaultAdmissionConfig{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { // TODO this gets cleaned up when the types are fixed scheme.AddKnownTypes(SchemeGroupVersion, &Deployment{}, &DeploymentList{}, &DeploymentRollback{}, &HorizontalPodAutoscaler{}, &HorizontalPodAutoscalerList{}, &batch.Job{}, &batch.JobList{}, &ReplicationControllerDummy{}, &Scale{}, &ThirdPartyResource{}, &ThirdPartyResourceList{}, &DaemonSetList{}, &DaemonSet{}, &ThirdPartyResourceData{}, &ThirdPartyResourceDataList{}, &Ingress{}, &IngressList{}, &api.ListOptions{}, &ReplicaSet{}, &ReplicaSetList{}, &api.ExportOptions{}, &PodSecurityPolicy{}, &PodSecurityPolicyList{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &SelfSubjectAccessReview{}, &SubjectAccessReview{}, &LocalSubjectAccessReview{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &Job{}, &JobList{}, &v1.ListOptions{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &BackingServiceInstance{}, &BackingServiceInstanceList{}, &BindingRequestOptions{}, ) }
func AddToScheme(scheme *runtime.Scheme) { if err := Scheme.AddIgnoredConversionType(&unversioned.TypeMeta{}, &unversioned.TypeMeta{}); err != nil { panic(err) } scheme.AddKnownTypes(SchemeGroupVersion, &api.ServiceList{}, &api.Service{}, &api.ListOptions{}, &api.DeleteOptions{}, ) // Register Unversioned types under their own special group Scheme.AddUnversionedTypes(Unversioned, &unversioned.ExportOptions{}, &unversioned.Status{}, &unversioned.APIVersions{}, &unversioned.APIGroupList{}, &unversioned.APIGroup{}, &unversioned.APIResourceList{}, ) addDeepCopyFuncs(scheme) addDefaultingFuncs(scheme) addConversionFuncs(scheme) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &kapi.ListOptions{}, &ClusterResourceQuota{}, &ClusterResourceQuotaList{}, ) }
func addKnownTypes(scheme *runtime.Scheme) error { if err := scheme.AddIgnoredConversionType(&unversioned.TypeMeta{}, &unversioned.TypeMeta{}); err != nil { return err } scheme.AddKnownTypes(SchemeGroupVersion, &api.ServiceList{}, &api.Service{}, &api.Namespace{}, &api.NamespaceList{}, &api.ListOptions{}, &api.DeleteOptions{}, &api.Secret{}, &api.SecretList{}, &api.Event{}, &api.EventList{}, &api.ConfigMap{}, &api.ConfigMapList{}, ) // Register Unversioned types under their own special group scheme.AddUnversionedTypes(Unversioned, &unversioned.ExportOptions{}, &unversioned.Status{}, &unversioned.APIVersions{}, &unversioned.APIGroupList{}, &unversioned.APIGroup{}, &unversioned.APIResourceList{}, ) return nil }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &extensions.HorizontalPodAutoscaler{}, &extensions.HorizontalPodAutoscalerList{}, &api.ListOptions{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &PodSecurityPolicySubjectReview{}, &PodSecurityPolicySelfSubjectReview{}, &PodSecurityPolicyReview{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Route{}, &RouteList{}, ) return nil }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Pod{}, &PodList{}, &PodStatusResult{}, &PodTemplate{}, &PodTemplateList{}, &ReplicationController{}, &ReplicationControllerList{}, &Service{}, &ServiceProxyOptions{}, &ServiceList{}, &Endpoints{}, &EndpointsList{}, &Node{}, &NodeList{}, &NodeProxyOptions{}, &Binding{}, &Event{}, &EventList{}, &List{}, &LimitRange{}, &LimitRangeList{}, &ResourceQuota{}, &ResourceQuotaList{}, &Namespace{}, &NamespaceList{}, &Secret{}, &SecretList{}, &ServiceAccount{}, &ServiceAccountList{}, &PersistentVolume{}, &PersistentVolumeList{}, &PersistentVolumeClaim{}, &PersistentVolumeClaimList{}, &DeleteOptions{}, &ExportOptions{}, &ListOptions{}, &PodAttachOptions{}, &PodLogOptions{}, &PodExecOptions{}, &PodProxyOptions{}, &ComponentStatus{}, &ComponentStatusList{}, &SerializedReference{}, &RangeAllocation{}, &ConfigMap{}, &ConfigMapList{}, &SecurityContextConstraints{}, &SecurityContextConstraintsList{}, ) // Add common types scheme.AddKnownTypes(SchemeGroupVersion, &unversioned.Status{}) // Add the watch version that applies versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) return nil }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &Project{}, &ProjectList{}, &ProjectRequest{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &Role{}, &RoleBinding{}, &Policy{}, &PolicyBinding{}, &PolicyList{}, &PolicyBindingList{}, &RoleBindingList{}, &RoleList{}, &SelfSubjectRulesReview{}, &ResourceAccessReview{}, &SubjectAccessReview{}, &LocalResourceAccessReview{}, &LocalSubjectAccessReview{}, &ResourceAccessReviewResponse{}, &SubjectAccessReviewResponse{}, &IsPersonalSubjectAccessReview{}, &ClusterRole{}, &ClusterRoleBinding{}, &ClusterPolicy{}, &ClusterPolicyBinding{}, &ClusterPolicyList{}, &ClusterPolicyBindingList{}, &ClusterRoleBindingList{}, &ClusterRoleList{}, ) }
func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &KubeProxyConfiguration{}, &KubeSchedulerConfiguration{}, &KubeletConfiguration{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &ClusterAutoscaler{}, &ClusterAutoscalerList{}, &Deployment{}, &DeploymentList{}, &HorizontalPodAutoscaler{}, &HorizontalPodAutoscalerList{}, &Job{}, &JobList{}, &ReplicationControllerDummy{}, &Scale{}, &ThirdPartyResource{}, &ThirdPartyResourceList{}, &DaemonSetList{}, &DaemonSet{}, &ThirdPartyResourceData{}, &ThirdPartyResourceDataList{}, &Ingress{}, &IngressList{}, &ListOptions{}, &ConfigMap{}, &ConfigMapList{}, &v1.DeleteOptions{}, &ReplicaSet{}, &ReplicaSetList{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { // TODO this will get cleaned up with the scheme types are fixed scheme.AddKnownTypes(SchemeGroupVersion, &RawNode{}, &RawPod{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &RawNode{}, &RawPod{}, &v1.DeleteOptions{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { // TODO this gets cleaned up when the types are fixed scheme.AddKnownTypes(SchemeGroupVersion, &PodDisruptionBudget{}, &PodDisruptionBudgetList{}, ) }
func addKnownTypes(scheme *runtime.Scheme) { // TODO this will get cleaned up with the scheme types are fixed scheme.AddKnownTypes(SchemeGroupVersion, &KubeProxyConfiguration{}, &KubeSchedulerConfiguration{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Deployment{}, &DeploymentList{}, &DeploymentRollback{}, &HorizontalPodAutoscaler{}, &HorizontalPodAutoscalerList{}, &Job{}, &JobList{}, &ReplicationControllerDummy{}, &Scale{}, &ThirdPartyResource{}, &ThirdPartyResourceList{}, &DaemonSetList{}, &DaemonSet{}, &ThirdPartyResourceData{}, &ThirdPartyResourceDataList{}, &Ingress{}, &IngressList{}, &v1.ListOptions{}, &v1.DeleteOptions{}, &metav1.ExportOptions{}, &metav1.GetOptions{}, &ReplicaSet{}, &ReplicaSetList{}, &PodSecurityPolicy{}, &PodSecurityPolicyList{}, &NetworkPolicy{}, &NetworkPolicyList{}, ) // Add the watch version that applies versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) return nil }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { // TODO this will get cleaned up with the scheme types are fixed scheme.AddKnownTypes(SchemeGroupVersion, &PetSet{}, &PetSetList{}, &api.ListOptions{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &ClusterResourceQuota{}, &ClusterResourceQuotaList{}, &AppliedClusterResourceQuota{}, &AppliedClusterResourceQuotaList{}, ) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) { scheme.AddKnownTypes(SchemeGroupVersion, &Job{}, &JobList{}, &v1.ListOptions{}, ) versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion) }
// Adds the list of known types to api.Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Project{}, &ProjectList{}, &ProjectRequest{}, ) return nil }
func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &MasterConfiguration{}, &NodeConfiguration{}, &ClusterInfo{}, ) return nil }