operator

package
v0.0.0-...-445d492 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	UnknownAPIVersion     string = "Unknown"
	ResourceReadyState    string = "Ready"
	ResourceNotReadyState string = "NotReady"
)
View Source
const Certv1alpha1APIVersion = "certmanager.k8s.io/v1alpha1"
View Source
const ClusterInfoConfigmapName = "ibmcloud-cluster-info"
View Source
const DefaultClusterIssuer = "cs-ca-issuer"
View Source
const DefaultHTTPBackendServiceName = "default-http-backend"
View Source
const Extensions = "extensions"
View Source
const FinalizerMigration string = "authentication.operator.ibm.com/migration"

FinalizerMigration is the finalizer appended to resources that are being retained during migration

View Source
const ImZenExtName = "iam-zen-extension"
View Source
const NginxConf = "bedrock-iam-locations.conf"
View Source
const PlatformAuthServiceName = "platform-auth-service"
View Source
const PlatformIdentityManagementServiceName = "platform-identity-management"
View Source
const PlatformIdentityProviderServiceName = "platform-identity-provider"
View Source
const URL_PREFIX = "URL_PREFIX"
View Source
const ZenProductConfigmapName = "product-configmap"

Variables

View Source
var (
	OpenShiftConfigScheme       = runtime.NewScheme()
	ConfigMapSchemeGroupVersion = schema.GroupVersion{Group: "", Version: "v1"}
	ConfigSchemeGroupVersion    = schema.GroupVersion{Group: "config.openshift.io", Version: "v1"}
)
View Source
var ArchList = []string{
	"amd64",
	"ppc64le",
	"s390x",
}
View Source
var IamNginxConfig = `` /* 2144-byte string literal not displayed */
View Source
var IamNginxExtensions = `` /* 178-byte string literal not displayed */

Functions

func IsRouteEqual

func IsRouteEqual(oldRoute, newRoute *routev1.Route) bool

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

func WaitForTimeout(timeout time.Duration) <-chan struct{}

waitForTimeout returns a stop channel that closes when the specified timeout is reached

Types

type AuthenticationReconciler

type AuthenticationReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Mutex  sync.Mutex
	// contains filtered or unexported fields
}

AuthenticationReconciler reconciles a Authentication object

func (*AuthenticationReconciler) DeleteIngress

func (r *AuthenticationReconciler) DeleteIngress(ctx context.Context, ingressName string, ingressNS string, needToRequeue *bool) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL