Skip to content

Commit

Permalink
update code for kubernetes v1.30.2
Browse files Browse the repository at this point in the history
Signed-off-by: Iceber Gu <caiwei95@hotmail.com>
  • Loading branch information
Iceber committed Jun 13, 2024
1 parent e6c5c1c commit 33febe6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cmd/apiserver/app/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,26 +128,27 @@ func (o *ClusterPediaServerOptions) genericOptionsApplyTo(config *genericapiserv
config.MaxRequestsInFlight = o.MaxRequestsInFlight
config.MaxMutatingRequestsInFlight = o.MaxMutatingRequestsInFlight

if err := o.SecureServing.ApplyTo(&config.SecureServing, &config.LoopbackClientConfig); err != nil {
if err := o.CoreAPI.ApplyTo(config); err != nil {
return err
}
if err := o.Authentication.ApplyTo(&config.Authentication, config.SecureServing, config.OpenAPIConfig); err != nil {
client, err := kubernetes.NewForConfig(config.ClientConfig)
if err != nil {
return err
}
if err := o.Authorization.ApplyTo(&config.Authorization); err != nil {

if err := o.SecureServing.ApplyTo(&config.SecureServing, &config.LoopbackClientConfig); err != nil {
return err
}
if err := o.Audit.ApplyTo(&config.Config); err != nil {
if err := o.Authentication.ApplyTo(&config.Authentication, config.SecureServing, config.OpenAPIConfig); err != nil {
return err
}
if err := o.Features.ApplyTo(&config.Config); err != nil {
if err := o.Authorization.ApplyTo(&config.Authorization); err != nil {
return err
}
if err := o.CoreAPI.ApplyTo(config); err != nil {
if err := o.Audit.ApplyTo(&config.Config); err != nil {
return err
}
client, err := kubernetes.NewForConfig(config.ClientConfig)
if err != nil {
if err := o.Features.ApplyTo(&config.Config, client, config.SharedInformerFactory); err != nil {
return err
}
dynamicClient := dynamic.NewForConfigOrDie(config.ClientConfig)
Expand Down

0 comments on commit 33febe6

Please sign in to comment.