operator

package
v0.0.0-...-0aed4ba Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 59 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ClusterConfigName ... ibmcloud-cluster-info
	ClusterAddr          string = "cluster_address"
	ClusterEP            string = "cluster_endpoint"
	IMCrtAuthRouteName   string = "im-certauth-passthrough"
	IMCrtAuthRoutePrefix string = "passthrough"
	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 AnnotationSHA1Sum string = "authentication.operator.ibm.com/sha1sum"
View Source
const AuditTLSSecretName string = "audit-tls"

Name of Secret containing certificates for Common Audit Logging

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 FinalizerMigration string = "authentication.operator.ibm.com/migration"

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

View Source
const IMAuditTLSVolume string = "audit-volume"
View Source
const ImZenExtName = "iam-zen-extension"
View Source
const MigrationJobName string = "ibm-im-db-migration"
View Source
const PlatformAuthServiceName = "platform-auth-service"
View Source
const PlatformIdentityManagementServiceName = "platform-identity-management"
View Source
const PlatformIdentityProviderServiceName = "platform-identity-provider"
View Source
const RestartAnnotation string = "authentications.operator.ibm.com/restartedAt"
View Source
const SecretProviderClassAsVolumeLabel string = "authentication.operator.ibm.com/as-volume"
View Source
const URL_PREFIX = "URL_PREFIX"
View Source
const ZenProductConfigmapName = "product-configmap"

Variables

View Source
var ArchList = []string{
	"amd64",
	"ppc64le",
	"s390x",
}

Functions

func EnsureVolumeMountPresent

func EnsureVolumeMountPresent(volumeMounts []corev1.VolumeMount, newVolMount corev1.VolumeMount) []corev1.VolumeMount

EnsureVolumeMountPresent checks if a volumeMount exists If not, it appends the new volume and returns the updated slice.

func GetFunctionName

func GetFunctionName(fn any) string

func GetLdapBindPwdVolumeMount

func GetLdapBindPwdVolumeMount() corev1.VolumeMount

func IsEmptyMatchListError

func IsEmptyMatchListError(err error) bool

func IsFailingIMHasSAMLError

func IsFailingIMHasSAMLError(err error) bool

func IsJobMissingResultError

func IsJobMissingResultError(err error) bool

func IsLabelConflictError

func IsLabelConflictError(err error) (ok bool)

func IsMissingKeyError

func IsMissingKeyError(err error) bool

func IsRouteEqual

func IsRouteEqual(ctx context.Context, 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 NewIMHasSAMLError

func NewIMHasSAMLError(rc int32, objKey client.ObjectKey) *failedJobError

func NewInvalidMatchListError

func NewInvalidMatchListError(length int, gvk schema.GroupVersionKind) *invalidMatchListError

func ReturnCodeForError

func ReturnCodeForError(err error) int32

func ReturnNameForError

func ReturnNameForError(err error) string

func ReturnNamespaceForError

func ReturnNamespaceForError(err error) string

Types

type AuthenticationReconciler

type AuthenticationReconciler struct {
	client.Client
	Scheme          *k8sRuntime.Scheme
	DiscoveryClient discovery.DiscoveryClient
	Mutex           sync.Mutex

	common.ByteGenerator
	// contains filtered or unexported fields
}

AuthenticationReconciler reconciles a Authentication object

func (*AuthenticationReconciler) Reconcile

func (r *AuthenticationReconciler) Reconcile(rootCtx 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.

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.

func (*AuthenticationReconciler) UpdateDeploymentReplicas

func (r *AuthenticationReconciler) UpdateDeploymentReplicas(ctx context.Context, deploymentName, namespace string, fixedReplicas int32) error

type Keyed

type Keyed interface {
	GetKey() string
}

type LabelConflictError

type LabelConflictError struct {
	// contains filtered or unexported fields
}

func (*LabelConflictError) Error

func (e *LabelConflictError) Error() string

func (*LabelConflictError) GetLabel

func (e *LabelConflictError) GetLabel() string

func (*LabelConflictError) GetObjects

func (e *LabelConflictError) GetObjects() []client.Object

func (*LabelConflictError) GetValue

func (e *LabelConflictError) GetValue() string

type Lengthed

type Lengthed interface {
	Length() int
	IsEmpty() bool
}

type ReturnCoded

type ReturnCoded interface {
	GetRC() int32
}

type ZenExtensionWithSpec

type ZenExtensionWithSpec struct {
	metav1.ObjectMeta
	metav1.TypeMeta
	Status zenv1.ZenExtensionStatus
	Spec   map[string]any
}

func (*ZenExtensionWithSpec) ToUnstructured

func (zs *ZenExtensionWithSpec) ToUnstructured(s *runtime.Scheme) (u *unstructured.Unstructured, err error)

Jump to

Keyboard shortcuts

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