Webhook framework for cloud controller manager

Provides framework for CCMs to host webhooks.
This commit is contained in:
Nick Turner
2022-03-18 22:09:36 +00:00
parent fcfe5dfc21
commit 86f4136003
23 changed files with 1267 additions and 23 deletions

View File

@@ -16,6 +16,10 @@ limitations under the License.
package ports
import (
cpoptions "k8s.io/cloud-provider/options"
)
// In this file, we can see all default port of cluster.
// It's also an important documentation for us. So don't remove them easily.
const (
@@ -43,4 +47,8 @@ const (
// CloudControllerManagerPort is the default port for the cloud controller manager server.
// This value may be overridden by a flag at startup.
CloudControllerManagerPort = 10258
// CloudControllerManagerWebhookPort is the default port for the cloud
// controller manager webhook server. May be overridden by a flag at
// startup.
CloudControllerManagerWebhookPort = cpoptions.CloudControllerManagerWebhookPort
)