Documentation
¶
Overview ¶
+kubebuilder:object:generate=true +groupName=role.keycloak.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Role
- func (in *Role) DeepCopy() *Role
- func (in *Role) DeepCopyInto(out *Role)
- func (in *Role) DeepCopyObject() runtime.Object
- func (mg *Role) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Role) GetConnectionDetailsMapping() map[string]string
- func (mg *Role) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Role) GetID() string
- func (tr *Role) GetInitParameters() (map[string]any, error)
- func (mg *Role) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Role) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Role) GetObservation() (map[string]any, error)
- func (tr *Role) GetParameters() (map[string]any, error)
- func (mg *Role) GetProviderConfigReference() *xpv1.Reference
- func (mg *Role) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Role) GetTerraformResourceType() string
- func (tr *Role) GetTerraformSchemaVersion() int
- func (mg *Role) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Role) Hub()
- func (tr *Role) LateInitialize(attrs []byte) (bool, error)
- func (mg *Role) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Role) SetConditions(c ...xpv1.Condition)
- func (mg *Role) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Role) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Role) SetObservation(obs map[string]any) error
- func (tr *Role) SetParameters(params map[string]any) error
- func (mg *Role) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Role) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Role) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type RoleInitParameters
- type RoleList
- type RoleObservation
- type RoleParameters
- type RoleSpec
- type RoleStatus
Constants ¶
const ( CRDGroup = "role.keycloak.crossplane.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // CRDGroupVersion is the API Group Version used to register the objects CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( Role_Kind = "Role" Role_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Role_Kind}.String() Role_KindAPIVersion = Role_Kind + "." + CRDGroupVersion.String() Role_GroupVersionKind = CRDGroupVersion.WithKind(Role_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Role ¶
type Role struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter" Spec RoleSpec `json:"spec"` Status RoleStatus `json:"status,omitempty"` }
Role is the Schema for the Roles API. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,keycloak}
func (*Role) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Role.
func (*Role) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Role) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Role) GetCondition ¶
func (mg *Role) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Role.
func (*Role) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Role
func (*Role) GetDeletionPolicy ¶
func (mg *Role) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Role.
func (*Role) GetInitParameters ¶ added in v0.5.0
GetInitParameters of this Role
func (*Role) GetManagementPolicies ¶
func (mg *Role) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Role.
func (*Role) GetMergedParameters ¶ added in v0.6.0
GetInitParameters of this Role
func (*Role) GetObservation ¶
GetObservation of this Role
func (*Role) GetParameters ¶
GetParameters of this Role
func (*Role) GetProviderConfigReference ¶
GetProviderConfigReference of this Role.
func (*Role) GetPublishConnectionDetailsTo ¶
func (mg *Role) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Role.
func (*Role) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Role
func (*Role) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Role) GetWriteConnectionSecretToReference ¶
func (mg *Role) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Role.
func (*Role) LateInitialize ¶
LateInitialize this Role using its observed tfState. returns True if there are any spec changes for the resource.
func (*Role) ResolveReferences ¶
func (*Role) SetConditions ¶
SetConditions of this Role.
func (*Role) SetDeletionPolicy ¶
func (mg *Role) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Role.
func (*Role) SetManagementPolicies ¶
func (mg *Role) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Role.
func (*Role) SetObservation ¶
SetObservation for this Role
func (*Role) SetParameters ¶
SetParameters for this Role
func (*Role) SetProviderConfigReference ¶
SetProviderConfigReference of this Role.
func (*Role) SetPublishConnectionDetailsTo ¶
func (mg *Role) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Role.
func (*Role) SetWriteConnectionSecretToReference ¶
func (mg *Role) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Role.
type RoleInitParameters ¶ added in v0.5.0
type RoleInitParameters struct { // A map representing attributes for the role. In order to add multivalue attributes, use ## to seperate the values. Max length for each value is 255 chars // +mapType=granular Attributes map[string]*string `json:"attributes,omitempty" tf:"attributes,omitempty"` // When specified, this role will be created as a client role attached to the client with the provided ID // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-keycloak/apis/openidclient/v1alpha1.Client // +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-keycloak/config/common.UUIDExtractor() ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"` // Reference to a Client in openidclient to populate clientId. // +kubebuilder:validation:Optional ClientIDRef *v1.Reference `json:"clientIdRef,omitempty" tf:"-"` // Selector for a Client in openidclient to populate clientId. // +kubebuilder:validation:Optional ClientIDSelector *v1.Selector `json:"clientIdSelector,omitempty" tf:"-"` // When specified, this role will be a composite role, composed of all roles that have an ID present within this list. // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-keycloak/apis/role/v1alpha1.Role // +listType=set CompositeRoles []*string `json:"compositeRoles,omitempty" tf:"composite_roles,omitempty"` // References to Role in role to populate compositeRoles. // +kubebuilder:validation:Optional CompositeRolesRefs []v1.Reference `json:"compositeRolesRefs,omitempty" tf:"-"` // Selector for a list of Role in role to populate compositeRoles. // +kubebuilder:validation:Optional CompositeRolesSelector *v1.Selector `json:"compositeRolesSelector,omitempty" tf:"-"` // The description of the role Description *string `json:"description,omitempty" tf:"description,omitempty"` // When true, the role with the specified name is assumed to already exist, and it will be imported into state instead of being created. This attribute is useful when dealing with roles that Keycloak creates automatically during realm creation, such as the client roles create-client, view-realm, ... for the client realm-management created per realm. Note, that the role will not be removed during destruction if import is true. Import *bool `json:"import,omitempty" tf:"import,omitempty"` // The name of the role Name *string `json:"name,omitempty" tf:"name,omitempty"` // The realm this role exists within. // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-keycloak/apis/realm/v1alpha1.Realm RealmID *string `json:"realmId,omitempty" tf:"realm_id,omitempty"` // Reference to a Realm in realm to populate realmId. // +kubebuilder:validation:Optional RealmIDRef *v1.Reference `json:"realmIdRef,omitempty" tf:"-"` // Selector for a Realm in realm to populate realmId. // +kubebuilder:validation:Optional RealmIDSelector *v1.Selector `json:"realmIdSelector,omitempty" tf:"-"` }
func (*RoleInitParameters) DeepCopy ¶ added in v0.5.0
func (in *RoleInitParameters) DeepCopy() *RoleInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleInitParameters.
func (*RoleInitParameters) DeepCopyInto ¶ added in v0.5.0
func (in *RoleInitParameters) DeepCopyInto(out *RoleInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleList ¶
type RoleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Role `json:"items"` }
RoleList contains a list of Roles
func (*RoleList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleList.
func (*RoleList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RoleList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RoleObservation ¶
type RoleObservation struct { // A map representing attributes for the role. In order to add multivalue attributes, use ## to seperate the values. Max length for each value is 255 chars // +mapType=granular Attributes map[string]*string `json:"attributes,omitempty" tf:"attributes,omitempty"` // When specified, this role will be created as a client role attached to the client with the provided ID ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"` // When specified, this role will be a composite role, composed of all roles that have an ID present within this list. // +listType=set CompositeRoles []*string `json:"compositeRoles,omitempty" tf:"composite_roles,omitempty"` // The description of the role Description *string `json:"description,omitempty" tf:"description,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` // When true, the role with the specified name is assumed to already exist, and it will be imported into state instead of being created. This attribute is useful when dealing with roles that Keycloak creates automatically during realm creation, such as the client roles create-client, view-realm, ... for the client realm-management created per realm. Note, that the role will not be removed during destruction if import is true. Import *bool `json:"import,omitempty" tf:"import,omitempty"` // The name of the role Name *string `json:"name,omitempty" tf:"name,omitempty"` // The realm this role exists within. RealmID *string `json:"realmId,omitempty" tf:"realm_id,omitempty"` }
func (*RoleObservation) DeepCopy ¶
func (in *RoleObservation) DeepCopy() *RoleObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleObservation.
func (*RoleObservation) DeepCopyInto ¶
func (in *RoleObservation) DeepCopyInto(out *RoleObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleParameters ¶
type RoleParameters struct { // A map representing attributes for the role. In order to add multivalue attributes, use ## to seperate the values. Max length for each value is 255 chars // +kubebuilder:validation:Optional // +mapType=granular Attributes map[string]*string `json:"attributes,omitempty" tf:"attributes,omitempty"` // When specified, this role will be created as a client role attached to the client with the provided ID // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-keycloak/apis/openidclient/v1alpha1.Client // +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-keycloak/config/common.UUIDExtractor() // +kubebuilder:validation:Optional ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"` // Reference to a Client in openidclient to populate clientId. // +kubebuilder:validation:Optional ClientIDRef *v1.Reference `json:"clientIdRef,omitempty" tf:"-"` // Selector for a Client in openidclient to populate clientId. // +kubebuilder:validation:Optional ClientIDSelector *v1.Selector `json:"clientIdSelector,omitempty" tf:"-"` // When specified, this role will be a composite role, composed of all roles that have an ID present within this list. // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-keycloak/apis/role/v1alpha1.Role // +kubebuilder:validation:Optional // +listType=set CompositeRoles []*string `json:"compositeRoles,omitempty" tf:"composite_roles,omitempty"` // References to Role in role to populate compositeRoles. // +kubebuilder:validation:Optional CompositeRolesRefs []v1.Reference `json:"compositeRolesRefs,omitempty" tf:"-"` // Selector for a list of Role in role to populate compositeRoles. // +kubebuilder:validation:Optional CompositeRolesSelector *v1.Selector `json:"compositeRolesSelector,omitempty" tf:"-"` // The description of the role // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` // When true, the role with the specified name is assumed to already exist, and it will be imported into state instead of being created. This attribute is useful when dealing with roles that Keycloak creates automatically during realm creation, such as the client roles create-client, view-realm, ... for the client realm-management created per realm. Note, that the role will not be removed during destruction if import is true. // +kubebuilder:validation:Optional Import *bool `json:"import,omitempty" tf:"import,omitempty"` // The name of the role // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // The realm this role exists within. // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-keycloak/apis/realm/v1alpha1.Realm // +kubebuilder:validation:Optional RealmID *string `json:"realmId,omitempty" tf:"realm_id,omitempty"` // Reference to a Realm in realm to populate realmId. // +kubebuilder:validation:Optional RealmIDRef *v1.Reference `json:"realmIdRef,omitempty" tf:"-"` // Selector for a Realm in realm to populate realmId. // +kubebuilder:validation:Optional RealmIDSelector *v1.Selector `json:"realmIdSelector,omitempty" tf:"-"` }
func (*RoleParameters) DeepCopy ¶
func (in *RoleParameters) DeepCopy() *RoleParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleParameters.
func (*RoleParameters) DeepCopyInto ¶
func (in *RoleParameters) DeepCopyInto(out *RoleParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleSpec ¶
type RoleSpec struct { v1.ResourceSpec `json:",inline"` ForProvider RoleParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception // of Identifier and other resource reference fields. The fields that are // in InitProvider are merged into ForProvider when the resource is created. // The same fields are also added to the terraform ignore_changes hook, to // avoid updating them after creation. This is useful for fields that are // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. InitProvider RoleInitParameters `json:"initProvider,omitempty"` }
RoleSpec defines the desired state of Role
func (*RoleSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleSpec.
func (*RoleSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleStatus ¶
type RoleStatus struct { v1.ResourceStatus `json:",inline"` AtProvider RoleObservation `json:"atProvider,omitempty"` }
RoleStatus defines the observed state of Role.
func (*RoleStatus) DeepCopy ¶
func (in *RoleStatus) DeepCopy() *RoleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleStatus.
func (*RoleStatus) DeepCopyInto ¶
func (in *RoleStatus) DeepCopyInto(out *RoleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.