v1beta1

package
v0.0.0-...-a9f80de Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the access v1beta1 API group +kubebuilder:object:generate=true +groupName=access.govsvc.uk

Index

Constants

View Source
const (
	IAMRoleResourceName                 = "IAMRole"
	IAMRoleName                         = "IAMRoleName"
	IAMRoleArnOutputName                = "IAMRoleArn"
	IAMPermissionsBoundaryParameterName = "IAMPermissionsBoundary"
	ServiceOperatorIAMRoleArn           = "ServiceOperatorIAMRoleArn"
	SharedPolicyResourceName            = "ECRSharedPolicy"
	IAMOIDCProviderARNParameterName     = "IAMOIDCProviderARN"
	IAMOIDCProviderURLParameterName     = "IAMOIDCProviderURL"
)

Variables

View Source
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

func (in *Principal) DeepCopy() *Principal

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

func (*Principal) DeepCopyInto

func (in *Principal) DeepCopyInto(out *Principal)

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

func (*Principal) DeepCopyObject

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

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

func (*Principal) GetRoleName

func (s *Principal) GetRoleName() string

GetRoleName returns a generated unique name suitable for use as a role name

func (*Principal) GetSecretName

func (s *Principal) GetSecretName() string

func (*Principal) GetStackName

func (s *Principal) GetStackName() string

GetStackName generates a unique name for the stack

func (*Principal) GetStackOutputWhitelist

func (s *Principal) GetStackOutputWhitelist() []string

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

func (*Principal) GetTemplateSecrets

func (s *Principal) GetTemplateSecrets(ctx context.Context, client sdk.Client, outputs cloudformation.Outputs) (map[string]string, error)

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.

Jump to

Keyboard shortcuts

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