Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the access v1beta1 API group +kubebuilder:object:generate=true +groupName=access.govsvc.uk
Index ¶
- Constants
- Variables
- type Principal
- func (in *Principal) DeepCopy() *Principal
- func (in *Principal) DeepCopyInto(out *Principal)
- func (in *Principal) DeepCopyObject() runtime.Object
- func (s *Principal) GetRoleName() string
- func (s *Principal) GetSecretName() string
- func (s *Principal) GetStackName() string
- func (s *Principal) GetStackOutputWhitelist() []string
- func (s *Principal) GetStackTemplate() (*cloudformation.Template, error)
- func (s *Principal) GetTemplateSecrets(ctx context.Context, client sdk.Client, outputs cloudformation.Outputs) (map[string]string, error)
- type PrincipalList
- type PrincipalSpec
Constants ¶
const ( IAMRoleResourceName = "IAMRole" IAMRoleName = "IAMRoleName" IAMRoleArnOutputName = "IAMRoleArn" IAMPermissionsBoundaryParameterName = "IAMPermissionsBoundary" ServiceOperatorIAMRoleArn = "ServiceOperatorIAMRoleArn" IAMOIDCProviderARNParameterName = "IAMOIDCProviderARN" IAMOIDCProviderURLParameterName = "IAMOIDCProviderURL" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "access.govsvc.uk", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Principal ¶
type Principal struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PrincipalSpec `json:"spec,omitempty"` object.Status `json:"status,omitempty"` }
Principal is the Schema for the Principal API
func (*Principal) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Principal.
func (*Principal) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Principal) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Principal) GetRoleName ¶
GetRoleName returns a generated unique name suitable for use as a role name
func (*Principal) GetSecretName ¶
func (*Principal) GetStackName ¶
GetStackName generates a unique name for the stack
func (*Principal) GetStackOutputWhitelist ¶
GetStackOutputWhitelist will whitelist any output keys from template that can be shown in resource Status
func (*Principal) GetStackTemplate ¶
func (s *Principal) GetStackTemplate() (*cloudformation.Template, error)
GetStackTemplate returns cloudformation to create an IAM role
type PrincipalList ¶
type PrincipalList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Principal `json:"items"` }
PrincipalList contains a list of Principal
func (*PrincipalList) DeepCopy ¶
func (in *PrincipalList) DeepCopy() *PrincipalList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrincipalList.
func (*PrincipalList) DeepCopyInto ¶
func (in *PrincipalList) DeepCopyInto(out *PrincipalList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PrincipalList) DeepCopyObject ¶
func (in *PrincipalList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PrincipalList) GetPrincipals ¶
func (p *PrincipalList) GetPrincipals() []object.Principal
GetPrincipals implements object.PrincipalLister
type PrincipalSpec ¶
type PrincipalSpec struct { // Secret name to be used for storing relevant instance secrets for further use. Secret string `json:"secret,omitempty"` // Name of a service account to trust with access to this Principal, if any. TrustServiceAccount string `json:"trustServiceAccount,omitempty"` }
PrincipalSpec defines the desired state of Principal
func (*PrincipalSpec) DeepCopy ¶
func (in *PrincipalSpec) DeepCopy() *PrincipalSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrincipalSpec.
func (*PrincipalSpec) DeepCopyInto ¶
func (in *PrincipalSpec) DeepCopyInto(out *PrincipalSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.