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) { 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{}, ) }
func addKnownTypes(scheme *runtime.Scheme) error { if err := scheme.AddIgnoredConversionType(&unversioned.TypeMeta{}, &unversioned.TypeMeta{}); err != nil { return err } scheme.AddKnownTypes(SchemeGroupVersion, &Policy{}, ) return nil }
func addKnownTypes(scheme *runtime.Scheme) error { if err := scheme.AddIgnoredConversionType(&unversioned.TypeMeta{}, &unversioned.TypeMeta{}); err != nil { return err } scheme.AddKnownTypes(SchemeGroupVersion, &Pod{}, &PodList{}, &PodStatusResult{}, &PodTemplate{}, &PodTemplateList{}, &ReplicationControllerList{}, &ReplicationController{}, &ServiceList{}, &Service{}, &ServiceProxyOptions{}, &NodeList{}, &Node{}, &NodeProxyOptions{}, &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{}, ) return nil }