Documentation ¶
Index ¶
- Constants
- Variables
- func IsRouteEqual(oldRoute, newRoute *routev1.Route) bool
- func WaitForTimeout(timeout time.Duration) <-chan struct{}
- type AuthenticationReconciler
- func (r *AuthenticationReconciler) DeleteIngress(ctx context.Context, ingressName string, ingressNS string, needToRequeue *bool) error
- func (r *AuthenticationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
- func (r *AuthenticationReconciler) ReconcileRemoveIngresses(ctx context.Context, instance *operatorv1alpha1.Authentication, ...)
- func (r *AuthenticationReconciler) RunningOnCNCFCluster() bool
- func (r *AuthenticationReconciler) RunningOnOpenShiftCluster() bool
- func (r *AuthenticationReconciler) RunningOnUnknownCluster() bool
- func (r *AuthenticationReconciler) SetupWithManager(mgr ctrl.Manager) error
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 Extensions = "extensions"
const FinalizerMigration string = "authentication.operator.ibm.com/migration"
FinalizerMigration is the finalizer appended to resources that are being retained during migration
const ImZenExtName = "iam-zen-extension"
const NginxConf = "bedrock-iam-locations.conf"
const PlatformAuthServiceName = "platform-auth-service"
const PlatformIdentityManagementServiceName = "platform-identity-management"
const PlatformIdentityProviderServiceName = "platform-identity-provider"
const URL_PREFIX = "URL_PREFIX"
const ZenProductConfigmapName = "product-configmap"
Variables ¶
var ( OpenShiftConfigScheme = runtime.NewScheme() ConfigMapSchemeGroupVersion = schema.GroupVersion{Group: "", Version: "v1"} ConfigSchemeGroupVersion = schema.GroupVersion{Group: "config.openshift.io", Version: "v1"} )
var ArchList = []string{
"amd64",
"ppc64le",
"s390x",
}
var IamNginxConfig = `` /* 2131-byte string literal not displayed */
var IamNginxExtensions = `` /* 178-byte string literal not displayed */
Functions ¶
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 AuthenticationReconciler ¶
type AuthenticationReconciler struct { client.Client Scheme *runtime.Scheme DiscoveryClient discovery.DiscoveryClient Mutex sync.Mutex // contains filtered or unexported fields }
AuthenticationReconciler reconciles a Authentication object
func (*AuthenticationReconciler) DeleteIngress ¶
func (*AuthenticationReconciler) Reconcile ¶
func (r *AuthenticationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Authentication object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*AuthenticationReconciler) ReconcileRemoveIngresses ¶
func (r *AuthenticationReconciler) ReconcileRemoveIngresses(ctx context.Context, instance *operatorv1alpha1.Authentication, needToRequeue *bool)
func (*AuthenticationReconciler) RunningOnCNCFCluster ¶
func (r *AuthenticationReconciler) RunningOnCNCFCluster() bool
RunningOnCNCFCluster returns whether the Operator is running on a CNCF cluster
func (*AuthenticationReconciler) RunningOnOpenShiftCluster ¶
func (r *AuthenticationReconciler) RunningOnOpenShiftCluster() bool
RunningOnOpenShiftCluster returns whether the Operator is running on an OpenShift cluster
func (*AuthenticationReconciler) RunningOnUnknownCluster ¶
func (r *AuthenticationReconciler) RunningOnUnknownCluster() bool
RunningOnUnknownCluster returns whether the Operator is running on an unknown cluster type
func (*AuthenticationReconciler) SetupWithManager ¶
func (r *AuthenticationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.