forked from kubernetes/kubernetes
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPSTREAM: <carry>: allows for switching KCM to talk to Kube API over …
…localhost to force KCM to use localhost set the following flag in kubecontrollermanager (oc edit kubecontrollermanager cluster) unsupportedConfigOverrides: extendedArguments: unsupported-kube-api-over-localhost: - "true"
- Loading branch information
1 parent
c48a497
commit 64bc44d
Showing
4 changed files
with
87 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
package config | ||
|
||
import ( | ||
"k8s.io/client-go/transport" | ||
|
||
"github.com/openshift/library-go/pkg/monitor/health" | ||
) | ||
|
||
// OpenShiftContext is additional context that we need to launch the kube-controller-manager for openshift. | ||
// Basically, this holds our additional config information. | ||
type OpenShiftContext struct { | ||
OpenShiftConfig string | ||
OpenShiftDefaultProjectNodeSelector string | ||
KubeDefaultProjectNodeSelector string | ||
UnsupportedKubeAPIOverPreferredHost bool | ||
PreferredHostRoundTripperWrapperFn transport.WrapperFunc | ||
PreferredHostHealthMonitor *health.Prober | ||
} |
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