v1alpha1

package
v0.0.0-...-ecd0e23 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 16

Documentation

Overview

+kubebuilder:object:generate=true +groupName=identityconfig.identitatem.io

Index

Constants

View Source
const (
	//Applied when the authrealm was correct applied,
	//it does not guaranty that the OAuth gets updated on the managedcluster
	//for that you will have to check the cluster status
	AuthRealmApplied string = "Applied"
)
View Source
const (
	//Applied when the ClusterOAuth was correct applied,
	//it does not guaranty that the OAuth gets updated on the managedcluster
	//for that you will have to check the cluster status
	ClusterOAuthApplied string = "Applied"
)
View Source
const GroupName = "identityconfig.identitatem.io"

GroupName specifies the group name used to register the objects.

View Source
const (
	//Applied when the IDPConfig was correct applied,
	//it does not guaranty that the OAuth gets updated on the managedcluster
	//for that you will have to check the cluster status
	IDPConfigApplied string = "Applied"
)
View Source
const (
	//Applied when the StratagyApplied was correct applied,
	StrategyApplied string = "Applied"
)

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	// Depreciated: use Install instead
	AddToScheme = localSchemeBuilder.AddToScheme
	Install     = localSchemeBuilder.AddToScheme
)
View Source
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}

GroupVersion specifies the group and the version used to register the objects.

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AuthProxyType

type AuthProxyType string
const (
	AuthProxyDex AuthProxyType = "dex"
)

type AuthRealm

type AuthRealm struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AuthRealmSpec   `json:"spec,omitempty"`
	Status AuthRealmStatus `json:"status,omitempty"`
}

AuthRealm is the Schema for the authrealms API

func (*AuthRealm) DeepCopy

func (in *AuthRealm) DeepCopy() *AuthRealm

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthRealm.

func (*AuthRealm) DeepCopyInto

func (in *AuthRealm) DeepCopyInto(out *AuthRealm)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AuthRealm) DeepCopyObject

func (in *AuthRealm) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AuthRealmClusterOAuthStatus

type AuthRealmClusterOAuthStatus struct {
	//ClusterOAuth name
	Name string `json:"name"`
	//ClusterOAuth status
	ClusterOAuthStatus `json:",inline"`
}

func (*AuthRealmClusterOAuthStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthRealmClusterOAuthStatus.

func (*AuthRealmClusterOAuthStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AuthRealmClusterStatus

type AuthRealmClusterStatus struct {
	//ClusterName
	Name string `json:"name"`
	//ClusterOAuth status, only 1 as a authrealm has only one clusterOAuth per cluster
	ClusterOAuth AuthRealmClusterOAuthStatus `json:"clusterOAuth"`
	//ManifestWork status
	ManifestWork AuthRealmManifestWorkStatus `json:"manifestWork"`
	//HypershiftDeployment status
	HypershiftDeployment AuthRealmHypershiftDeploymentStatus `json:"hypershiftDeployment"`
}

func (*AuthRealmClusterStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthRealmClusterStatus.

func (*AuthRealmClusterStatus) DeepCopyInto

func (in *AuthRealmClusterStatus) DeepCopyInto(out *AuthRealmClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AuthRealmHypershiftDeploymentStatus

type AuthRealmHypershiftDeploymentStatus struct {
	//HypershiftDeployment name
	Name string `json:"name"`
	//HypershiftDeployment status
	hypershiftdeploymentv1alpha1.HypershiftDeploymentStatus `json:",inline"`
}

func (*AuthRealmHypershiftDeploymentStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthRealmHypershiftDeploymentStatus.

func (*AuthRealmHypershiftDeploymentStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AuthRealmList

type AuthRealmList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of AuthRealm.
	// +listType=set
	Items []AuthRealm `json:"items"`
}

AuthRealmList contains a list of AuthRealm

func (*AuthRealmList) DeepCopy

func (in *AuthRealmList) DeepCopy() *AuthRealmList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthRealmList.

func (*AuthRealmList) DeepCopyInto

func (in *AuthRealmList) DeepCopyInto(out *AuthRealmList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AuthRealmList) DeepCopyObject

func (in *AuthRealmList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AuthRealmManifestWorkStatus

type AuthRealmManifestWorkStatus struct {
	//Manifestwork name
	Name string `json:"name"`
	//Manifestwork status
	workv1.ManifestWorkStatus `json:",inline"`
}

func (*AuthRealmManifestWorkStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthRealmManifestWorkStatus.

func (*AuthRealmManifestWorkStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AuthRealmSpec

type AuthRealmSpec struct {

	// RouteSubDomain defines a string that will be used for building the redirect URI callback.
	// The value must be a valid DNS-1123 subdomain. This field is immutable.
	// +required
	// +kubebuilder:validation:MinLength:=1
	// +kubebuilder:validation:MaxLength:=63
	RouteSubDomain string `json:"routeSubDomain"`

	// Placement defines a rule to select a set of ManagedClusters from the ManagedClusterSets bound
	// to the placement namespace.
	PlacementRef corev1.LocalObjectReference `json:"placementRef,omitempty"`

	//RemediateAction defines the remediation action to apply to the idp policy
	//For possible values check the policyv1 project (ie: Inform and inform are accepted)
	// +required
	RemediateAction policyv1.RemediationAction `json:"remediateAction,omitempty"`

	// +kubebuilder:validation:Enum=dex;rhsso
	// +optional
	Type AuthProxyType `json:"type,omitempty"`
	//Host defines the url of the proxy
	// +required
	Host string `json:"host,omitempty"`
	//Certificates references a secret containing `ca.crt`, `tls.crt`, and `tls.key`
	CertificatesSecretRef corev1.LocalObjectReference `json:"certificatesSecretRef,omitempty"`
	// IdentityProviders reference an identity provider
	// +optional
	IdentityProviders []openshiftconfigv1.IdentityProvider `json:"identityProviders,omitempty"`

	// LDAPExtraConfigs extra server configuration setting for LDAP,
	// the key being the idp.name
	// +optional
	LDAPExtraConfigs map[string]LDAPExtraConfig `json:"ldapExtraConfigs,omitempty"`

	GitHubExtraConfigs map[string]GitHubExtraConfig `json:"githubExtraConfigs,omitempty"`
}

AuthRealmSpec defines the desired state of AuthRealm

func (*AuthRealmSpec) DeepCopy

func (in *AuthRealmSpec) DeepCopy() *AuthRealmSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthRealmSpec.

func (*AuthRealmSpec) DeepCopyInto

func (in *AuthRealmSpec) DeepCopyInto(out *AuthRealmSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AuthRealmStatus

type AuthRealmStatus struct {

	// Conditions contains the different condition statuses for this AuthRealm.
	// +optional
	Conditions []metav1.Condition `json:"conditions"`
	// +optional
	Strategies []AuthRealmStrategyStatus `json:"strategies,omitempty"`
}

AuthRealmStatus defines the observed state of AuthRealm

func (*AuthRealmStatus) DeepCopy

func (in *AuthRealmStatus) DeepCopy() *AuthRealmStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthRealmStatus.

func (*AuthRealmStatus) DeepCopyInto

func (in *AuthRealmStatus) DeepCopyInto(out *AuthRealmStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AuthRealmStrategyStatus

type AuthRealmStrategyStatus struct {
	// The name of the strategy
	Name string `json:"name"`
	// Conditions contains the different condition statuses for each cluster for this AuthRealm.
	// +optional
	StrategyStatus `json:",inline"`
	//Placement
	// +optional
	Placement Placement `json:"placement"`
	//Clusters status, one status per cluster
	// +optional
	Clusters []AuthRealmClusterStatus `json:"clusters"`
}

AuthRealmClusterStatus defines the status for each cluster

func (*AuthRealmStrategyStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthRealmStrategyStatus.

func (*AuthRealmStrategyStatus) DeepCopyInto

func (in *AuthRealmStrategyStatus) DeepCopyInto(out *AuthRealmStrategyStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterOAuth

type ClusterOAuth struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ClusterOAuthSpec   `json:"spec,omitempty"`
	Status ClusterOAuthStatus `json:"status,omitempty"`
}

ClusterOAuth is the Schema for the authrealms API

func (*ClusterOAuth) DeepCopy

func (in *ClusterOAuth) DeepCopy() *ClusterOAuth

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterOAuth.

func (*ClusterOAuth) DeepCopyInto

func (in *ClusterOAuth) DeepCopyInto(out *ClusterOAuth)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterOAuth) DeepCopyObject

func (in *ClusterOAuth) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterOAuthList

type ClusterOAuthList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of ClusterOAuth.
	// +listType=set
	Items []ClusterOAuth `json:"items"`
}

ClusterOAuthList contains a list of ClusterOAuth

func (*ClusterOAuthList) DeepCopy

func (in *ClusterOAuthList) DeepCopy() *ClusterOAuthList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterOAuthList.

func (*ClusterOAuthList) DeepCopyInto

func (in *ClusterOAuthList) DeepCopyInto(out *ClusterOAuthList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterOAuthList) DeepCopyObject

func (in *ClusterOAuthList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterOAuthSpec

type ClusterOAuthSpec struct {
	OAuth              *openshiftconfigv1.OAuth `json:"oauth,omitempty"`
	AuthRealmReference RelatedObjectReference   `json:"authRealmReference,omitempty"`
	StrategyReference  RelatedObjectReference   `json:"strategyReference,omitempty"`
	DexClientReference RelatedObjectReference   `json:"dexClientReference,omitempty"`
}

ClusterOAuthSpec defines the desired state of ClusterOAuth

func (*ClusterOAuthSpec) DeepCopy

func (in *ClusterOAuthSpec) DeepCopy() *ClusterOAuthSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterOAuthSpec.

func (*ClusterOAuthSpec) DeepCopyInto

func (in *ClusterOAuthSpec) DeepCopyInto(out *ClusterOAuthSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterOAuthStatus

type ClusterOAuthStatus struct {

	// Conditions contains the different condition statuses for this ClusterOAuth.
	// +optional
	Conditions []metav1.Condition `json:"conditions"`
}

ClusterOAuthStatus defines the observed state of ClusterOAuth

func (*ClusterOAuthStatus) DeepCopy

func (in *ClusterOAuthStatus) DeepCopy() *ClusterOAuthStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterOAuthStatus.

func (*ClusterOAuthStatus) DeepCopyInto

func (in *ClusterOAuthStatus) DeepCopyInto(out *ClusterOAuthStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GitHubExtraConfig

type GitHubExtraConfig struct {
	// LoadAllGroups if true the groups import will be enabled
	LoadAllGroups bool `json:"loadAllGroups,omitempty"`
}

func (*GitHubExtraConfig) DeepCopy

func (in *GitHubExtraConfig) DeepCopy() *GitHubExtraConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubExtraConfig.

func (*GitHubExtraConfig) DeepCopyInto

func (in *GitHubExtraConfig) DeepCopyInto(out *GitHubExtraConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IDPConfig

type IDPConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   IDPConfigSpec   `json:"spec,omitempty"`
	Status IDPConfigStatus `json:"status,omitempty"`
}

IDPConfig is the Schema for the idpconfigs API

func (*IDPConfig) DeepCopy

func (in *IDPConfig) DeepCopy() *IDPConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IDPConfig.

func (*IDPConfig) DeepCopyInto

func (in *IDPConfig) DeepCopyInto(out *IDPConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IDPConfig) DeepCopyObject

func (in *IDPConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IDPConfigList

type IDPConfigList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of IDPConfig.
	// +listType=set
	Items []IDPConfig `json:"items"`
}

IDPConfigList contains a list of IDPConfig

func (*IDPConfigList) DeepCopy

func (in *IDPConfigList) DeepCopy() *IDPConfigList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IDPConfigList.

func (*IDPConfigList) DeepCopyInto

func (in *IDPConfigList) DeepCopyInto(out *IDPConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IDPConfigList) DeepCopyObject

func (in *IDPConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IDPConfigSpec

type IDPConfigSpec struct {
}

IDPConfigSpec defines the desired state of IDPConfig

func (*IDPConfigSpec) DeepCopy

func (in *IDPConfigSpec) DeepCopy() *IDPConfigSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IDPConfigSpec.

func (*IDPConfigSpec) DeepCopyInto

func (in *IDPConfigSpec) DeepCopyInto(out *IDPConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IDPConfigStatus

type IDPConfigStatus struct {

	// Conditions contains the different condition statuses for this IDPConfig.
	// +optional
	Conditions []metav1.Condition `json:"conditions"`
}

IDPConfigStatus defines the observed state of IDPConfig

func (*IDPConfigStatus) DeepCopy

func (in *IDPConfigStatus) DeepCopy() *IDPConfigStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IDPConfigStatus.

func (*IDPConfigStatus) DeepCopyInto

func (in *IDPConfigStatus) DeepCopyInto(out *IDPConfigStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LDAPExtraConfig

type LDAPExtraConfig struct {
	//Optional The groupSearch to apply to find the groups of the user
	// +optional
	GroupSearch dexoperatorv1alpha1.GroupSearchSpec `json:"groupSearch,omitempty"`
}

func (*LDAPExtraConfig) DeepCopy

func (in *LDAPExtraConfig) DeepCopy() *LDAPExtraConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LDAPExtraConfig.

func (*LDAPExtraConfig) DeepCopyInto

func (in *LDAPExtraConfig) DeepCopyInto(out *LDAPExtraConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Placement

type Placement struct {
	//Name of the placement
	Name string `json:"name"`
	//Placement Status
	clusterv1alpha1.PlacementStatus `json:",inline"`
}

func (*Placement) DeepCopy

func (in *Placement) DeepCopy() *Placement

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Placement.

func (*Placement) DeepCopyInto

func (in *Placement) DeepCopyInto(out *Placement)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RelatedObjectReference

type RelatedObjectReference struct {
	// the Kind of the referenced resource
	Kind string `json:"kind,omitempty"`
	// The name of the referenced object
	Name string `json:"name,omitempty"`
	// The namespace of the referenced object
	Namespace string `json:"namespace,omitempty"`
}

func (*RelatedObjectReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelatedObjectReference.

func (*RelatedObjectReference) DeepCopyInto

func (in *RelatedObjectReference) DeepCopyInto(out *RelatedObjectReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Strategy

type Strategy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   StrategySpec   `json:"spec,omitempty"`
	Status StrategyStatus `json:"status,omitempty"`
}

Strategy is the Schema for the strategies API

func (*Strategy) DeepCopy

func (in *Strategy) DeepCopy() *Strategy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Strategy.

func (*Strategy) DeepCopyInto

func (in *Strategy) DeepCopyInto(out *Strategy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Strategy) DeepCopyObject

func (in *Strategy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type StrategyList

type StrategyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Strategy `json:"items"`
}

StrategyList contains a list of Strategy

func (*StrategyList) DeepCopy

func (in *StrategyList) DeepCopy() *StrategyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategyList.

func (*StrategyList) DeepCopyInto

func (in *StrategyList) DeepCopyInto(out *StrategyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StrategyList) DeepCopyObject

func (in *StrategyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type StrategySpec

type StrategySpec struct {

	// Strategy to use for applying the AuthRealm to the managed clusters
	// +kubebuilder:validation:Enum=backplane;grc;hypershift
	// +required
	Type StrategyType `json:"type"`

	// Reference to a Placement CR created by the Strategy operator
	// reference to a Placement CR created by the strategy operator that is a copy of the placement (Placement)
	//   referenced in the ownerReference (AuthRealm) object's placement property,
	//   patched with additional predicates to filter managed clusters by supported strategy type.
	PlacementRef corev1.LocalObjectReference `json:"placementRef,omitempty"`
}

StrategySpec defines the desired state of Strategy

func (*StrategySpec) DeepCopy

func (in *StrategySpec) DeepCopy() *StrategySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategySpec.

func (*StrategySpec) DeepCopyInto

func (in *StrategySpec) DeepCopyInto(out *StrategySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StrategyStatus

type StrategyStatus struct {

	// Conditions contains the different condition statuses for this Strategy.
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

StrategyStatus defines the observed state of Strategy

func (*StrategyStatus) DeepCopy

func (in *StrategyStatus) DeepCopy() *StrategyStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategyStatus.

func (*StrategyStatus) DeepCopyInto

func (in *StrategyStatus) DeepCopyInto(out *StrategyStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StrategyType

type StrategyType string
const (
	BackplaneStrategyType StrategyType = "backplane"
	// GrcStrategyType       StrategyType = "grc"
	HypershiftStrategyType StrategyType = "hypershift"
)

Jump to

Keyboard shortcuts

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