Documentation ¶
Index ¶
- Constants
- Variables
- func Add(mgr manager.Manager) error
- func IsRouteEqual(oldRoute, newRoute *routev1.Route) bool
- func WaitForTimeout(timeout time.Duration) <-chan struct{}
- type ReconcileAuthentication
- func (r *ReconcileAuthentication) DeleteIngress(ctx context.Context, ingressName string, ingressNS string, needToRequeue *bool) error
- func (r *ReconcileAuthentication) Reconcile(ctx context.Context, request reconcile.Request) (result reconcile.Result, err error)
- func (r *ReconcileAuthentication) ReconcileRemoveIngresses(ctx context.Context, instance *operatorv1alpha1.Authentication, ...)
- func (r *ReconcileAuthentication) RunningOnCNCFCluster() bool
- func (r *ReconcileAuthentication) RunningOnOpenShiftCluster() bool
- func (r *ReconcileAuthentication) RunningOnUnknownCluster() bool
Constants ¶
const ( // ClusterConfigName ... ibmcloud-cluster-info ClusterAddr string = "cluster_address" ClusterEP string = "cluster_endpoint" RouteHTTPPort string = "cluster_router_http_port" RouteHTTPSPort string = "cluster_router_https_port" RouteHTTPPortValue string = "80" RouteHTTPSPortValue string = "443" ClusterName string = "cluster_name" ClusterNameValue string = "mycluster" ClusterAPIServerHost string = "cluster_kube_apiserver_host" ClusterAPIServerPort string = "cluster_kube_apiserver_port" ClusterSecretName string = "ibmcloud-cluster-ca-cert" ProxyAddress string = "proxy_address" ProviderSVC string = "im_idprovider_endpoint" IDMgmtSVC string = "im_idmgmt_endpoint" )
const ( UnknownAPIVersion string = "Unknown" ResourceReadyState string = "Ready" ResourceNotReadyState string = "NotReady" )
const Certv1alpha1APIVersion = "certmanager.k8s.io/v1alpha1"
const ClusterInfoConfigmapName = "ibmcloud-cluster-info"
const DefaultClusterIssuer = "cs-ca-issuer"
const DefaultHTTPBackendServiceName = "default-http-backend"
const PlatformAuthServiceName = "platform-auth-service"
const PlatformIdentityManagementServiceName = "platform-identity-management"
const PlatformIdentityProviderServiceName = "platform-identity-provider"
Variables ¶
var ( ConfigMapSchemeGroupVersion = schema.GroupVersion{Group: "", Version: "v1"} ConfigSchemeGroupVersion = schema.GroupVersion{Group: "config.openshift.io", Version: "v1"} )
var ArchList = []string{
"amd64",
"ppc64le",
"s390x",
}
Functions ¶
func Add ¶
Add creates a new Authentication Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func IsRouteEqual ¶
Use DeepEqual to determine if 2 routes are equal. Check annotations and Spec. If there are any differences, return false. Otherwise, return true.
func WaitForTimeout ¶
waitForTimeout returns a stop channel that closes when the specified timeout is reached
Types ¶
type ReconcileAuthentication ¶
ReconcileAuthentication reconciles a Authentication object
func (*ReconcileAuthentication) DeleteIngress ¶
func (*ReconcileAuthentication) Reconcile ¶
func (r *ReconcileAuthentication) Reconcile(ctx context.Context, request reconcile.Request) (result reconcile.Result, err error)
Reconcile reads that state of the cluster for a Authentication object and makes changes based on the state read and what is in the Authentication.Spec TODO(user): Modify this Reconcile function to implement your Controller logic. This example creates a Pod as an example Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*ReconcileAuthentication) ReconcileRemoveIngresses ¶
func (r *ReconcileAuthentication) ReconcileRemoveIngresses(ctx context.Context, instance *operatorv1alpha1.Authentication, needToRequeue *bool)
func (*ReconcileAuthentication) RunningOnCNCFCluster ¶
func (r *ReconcileAuthentication) RunningOnCNCFCluster() bool
RunningOnCNCFCluster returns whether the Operator is running on a CNCF cluster
func (*ReconcileAuthentication) RunningOnOpenShiftCluster ¶
func (r *ReconcileAuthentication) RunningOnOpenShiftCluster() bool
RunningOnOpenShiftCluster returns whether the Operator is running on an OpenShift cluster
func (*ReconcileAuthentication) RunningOnUnknownCluster ¶
func (r *ReconcileAuthentication) RunningOnUnknownCluster() bool
RunningOnUnknownCluster returns whether the Operator is running on an unknown cluster type