authentication

package
v0.0.0-...-0533826 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 47 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 PlatformAuthServiceName = "platform-auth-service"
View Source
const PlatformIdentityManagementServiceName = "platform-identity-management"
View Source
const PlatformIdentityProviderServiceName = "platform-identity-provider"

Variables

View Source
var (
	ConfigMapSchemeGroupVersion = schema.GroupVersion{Group: "", Version: "v1"}
	ConfigSchemeGroupVersion    = schema.GroupVersion{Group: "config.openshift.io", Version: "v1"}
)
View Source
var ArchList = []string{
	"amd64",
	"ppc64le",
	"s390x",
}

Functions

func Add

func Add(mgr manager.Manager) error

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

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 ReconcileAuthentication

type ReconcileAuthentication struct {
	Mutex sync.Mutex
	// contains filtered or unexported fields
}

ReconcileAuthentication reconciles a Authentication object

func (*ReconcileAuthentication) DeleteIngress

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

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

Jump to

Keyboard shortcuts

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