Skip to content

Commit

Permalink
update api to v1.29 (#1482)
Browse files Browse the repository at this point in the history
* update swagger

* fix test
  • Loading branch information
tg123 authored Jan 9, 2024
1 parent f32cf9e commit 1cae561
Show file tree
Hide file tree
Showing 4 changed files with 1,903 additions and 693 deletions.
2 changes: 1 addition & 1 deletion csharp.settings
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export KUBERNETES_BRANCH=v1.28.0
export KUBERNETES_BRANCH=v1.29.0
export CLIENT_VERSION=0.0.1
export PACKAGE_NAME=k8s
16 changes: 2 additions & 14 deletions src/KubernetesClient.ModelConverter/AutoMapper/VersionConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,6 @@ private static void ManualConfigurations(IMapperConfigurationExpression cfg)
});
});

cfg.CreateMap<V1Subject, V1beta2Subject>()
.ForMember(dest => dest.Group, opt => opt.Ignore())
.ForMember(dest => dest.ServiceAccount, opt => opt.Ignore())
.ForMember(dest => dest.User, opt => opt.Ignore())
.ReverseMap();

cfg.CreateMap<V1Subject, V1beta3Subject>()
.ForMember(dest => dest.Group, opt => opt.Ignore())
.ForMember(dest => dest.ServiceAccount, opt => opt.Ignore())
.ForMember(dest => dest.User, opt => opt.Ignore())
.ReverseMap();

cfg.CreateMap<V1HorizontalPodAutoscalerSpec, V2HorizontalPodAutoscalerSpec>()
.ForMember(dest => dest.Metrics, opt => opt.Ignore())
.ForMember(dest => dest.Behavior, opt => opt.Ignore())
Expand All @@ -179,8 +167,8 @@ private static void ManualConfigurations(IMapperConfigurationExpression cfg)
.ForMember(dest => dest.Name, opt => opt.Ignore())
.ReverseMap();

cfg.CreateMap<V1beta2LimitedPriorityLevelConfiguration, V1beta3LimitedPriorityLevelConfiguration>()
.ForMember(dest => dest.NominalConcurrencyShares, opt => opt.Ignore())
cfg.CreateMap<V1beta3PolicyRulesWithSubjects, V1PolicyRulesWithSubjects>()
.ForMember(dest => dest.Subjects, opt => opt.Ignore())
.ReverseMap();
}
}
Loading

0 comments on commit 1cae561

Please sign in to comment.