-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove "k8s.io/kubernetes/pkg/controller/apis/config" dependency for …
…yurt-controller-manager (#664)
- Loading branch information
Showing
4 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
Copyright 2018 The Kubernetes Authors. | ||
Copyright 2021 The OpenYurt Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package config | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
componentbaseconfig "k8s.io/component-base/config" | ||
) | ||
|
||
// GenericControllerManagerConfiguration holds configuration for a generic controller-manager | ||
type GenericControllerManagerConfiguration struct { | ||
// port is the port that the controller-manager's http service runs on. | ||
Port int32 | ||
// address is the IP address to serve on (set to 0.0.0.0 for all interfaces). | ||
Address string | ||
// minResyncPeriod is the resync period in reflectors; will be random between | ||
// minResyncPeriod and 2*minResyncPeriod. | ||
MinResyncPeriod metav1.Duration | ||
// ClientConnection specifies the kubeconfig file and client connection | ||
// settings for the proxy server to use when communicating with the apiserver. | ||
ClientConnection componentbaseconfig.ClientConnectionConfiguration | ||
// How long to wait between starting controller managers | ||
ControllerStartInterval metav1.Duration | ||
// leaderElection defines the configuration of leader election client. | ||
LeaderElection componentbaseconfig.LeaderElectionConfiguration | ||
// Controllers is the list of controllers to enable or disable | ||
// '*' means "all enabled by default controllers" | ||
// 'foo' means "enable 'foo'" | ||
// '-foo' means "disable 'foo'" | ||
// first item for a particular name wins | ||
Controllers []string | ||
// DebuggingConfiguration holds configuration for Debugging related features. | ||
Debugging componentbaseconfig.DebuggingConfiguration | ||
} |