v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the security v1alpha1 API group +kubebuilder:object:generate=true +groupName=security.nirmata.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "security.nirmata.io", Version: "v1alpha1"}

	// 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 AWSAdapterConfig

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

	Spec   AWSAdapterConfigSpec   `json:"spec,omitempty"`
	Status AWSAdapterConfigStatus `json:"status,omitempty"`
}

AWSAdapterConfig is the Schema for the awsadapterconfigs API

func (*AWSAdapterConfig) DeepCopy

func (in *AWSAdapterConfig) DeepCopy() *AWSAdapterConfig

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

func (*AWSAdapterConfig) DeepCopyInto

func (in *AWSAdapterConfig) DeepCopyInto(out *AWSAdapterConfig)

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

func (*AWSAdapterConfig) DeepCopyObject

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

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

type AWSAdapterConfigList

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

AWSAdapterConfigList contains a list of AWSAdapterConfig

func (*AWSAdapterConfigList) DeepCopy

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

func (*AWSAdapterConfigList) DeepCopyInto

func (in *AWSAdapterConfigList) DeepCopyInto(out *AWSAdapterConfigList)

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

func (*AWSAdapterConfigList) DeepCopyObject

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

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

type AWSAdapterConfigSpec

type AWSAdapterConfigSpec struct {
	// EKS cluster's name
	Name *string `json:"name"`
	// EKS cluster's region
	Region *string `json:"region"`
}

AWSAdapterConfigSpec defines the desired state of AWSAdapterConfig

func (*AWSAdapterConfigSpec) DeepCopy

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

func (*AWSAdapterConfigSpec) DeepCopyInto

func (in *AWSAdapterConfigSpec) DeepCopyInto(out *AWSAdapterConfigSpec)

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

type AWSAdapterConfigStatus

type AWSAdapterConfigStatus struct {
	// Timestamp when the Status was last updated
	LastUpdatedTimestamp *metav1.Time `json:"lastUpdatedTimestamp,omitempty"`
	// Information on when the adapter last tried to fetch the EKS cluster details
	LastPollInfo LastPollInfo `json:"lastPollInfo"`
	AccountData  *AccountData `json:"accountData,omitempty"`
	// EKS cluster details fetched from AWS
	// For details of individual fields, refer to AWS SDK docs:
	// https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/eks@v1.22.1/types#Cluster
	EKSCluster      *EKSCluster      `json:"eksCluster,omitempty"`
	ECRRepositories []*ECRRepository `json:"ecrRepositories,omitempty"`
}

AWSAdapterConfigStatus defines the observed state of AWSAdapterConfig

func (*AWSAdapterConfigStatus) DeepCopy

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

func (*AWSAdapterConfigStatus) DeepCopyInto

func (in *AWSAdapterConfigStatus) DeepCopyInto(out *AWSAdapterConfigStatus)

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

type AccountData added in v0.1.2

type AccountData struct {
	ID                  *string `json:"id,omitempty"`
	InspectorEnabledEC2 *bool   `json:"inspectorEnabledEC2,omitempty"`
	InspectorEnabledECR *bool   `json:"inspectorEnabledECR,omitempty"`
}

AccountData contains the AWS Account details

func (*AccountData) DeepCopy added in v0.1.2

func (in *AccountData) DeepCopy() *AccountData

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

func (*AccountData) DeepCopyInto added in v0.1.2

func (in *AccountData) DeepCopyInto(out *AccountData)

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

type AmazonMachineImage added in v0.3.0

type AmazonMachineImage struct {
	Id              *string `json:"id,omitempty"`
	Name            *string `json:"name,omitempty"`
	InstanceType    string  `json:"instanceType,omitempty"`
	Location        *string `json:"location,omitempty"`
	Type            string  `json:"type,omitempty"`
	Architecture    string  `json:"architecture,omitempty"`
	Public          *bool   `json:"public,omitempty"`
	PlatformDetails *string `json:"platformDetails,omitempty"`
	Ownerid         *string `json:"ownerId,omitempty"`
	CreationTime    *string `json:"creationTime,omitempty"`
	DeprecationTime *string `json:"deprecationTime,omitempty"`
	State           string  `json:"state,omitempty"`
}

func (*AmazonMachineImage) DeepCopy added in v0.3.0

func (in *AmazonMachineImage) DeepCopy() *AmazonMachineImage

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

func (*AmazonMachineImage) DeepCopyInto added in v0.3.0

func (in *AmazonMachineImage) DeepCopyInto(out *AmazonMachineImage)

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

type EC2LaunchTemplate

type EC2LaunchTemplate struct {
	ID      *string `json:"id,omitempty"`
	Name    *string `json:"name,omitempty"`
	Version *string `json:"version,omitempty"`
}

EC2LaunchTemplate contains launch template info the EKS cluster's node group

func (*EC2LaunchTemplate) DeepCopy

func (in *EC2LaunchTemplate) DeepCopy() *EC2LaunchTemplate

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

func (*EC2LaunchTemplate) DeepCopyInto

func (in *EC2LaunchTemplate) DeepCopyInto(out *EC2LaunchTemplate)

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

type ECRRepository added in v0.1.2

type ECRRepository struct {
	RepositoryName  *string `json:"repositoryName,omitempty"`
	RepositoryUri   *string `json:"repositoryUri,omitempty"`
	ImageTagMutable *bool   `json:"imageTagMutable,omitempty"`
}

ECRRepository contains container repository details

func (*ECRRepository) DeepCopy added in v0.1.2

func (in *ECRRepository) DeepCopy() *ECRRepository

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

func (*ECRRepository) DeepCopyInto added in v0.1.2

func (in *ECRRepository) DeepCopyInto(out *ECRRepository)

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

type EKSCluster

type EKSCluster struct {
	ID                      *string                `json:"id,omitempty"`
	KubernetesVersion       *string                `json:"kubernetesVersion,omitempty"`
	Name                    *string                `json:"name"`
	Status                  string                 `json:"status"`
	Region                  *string                `json:"region"`
	Endpoint                *string                `json:"endpoint,omitempty"`
	OIDCProvider            *string                `json:"oidcProvider,omitempty"`
	Certificate             *string                `json:"certificate,omitempty"`
	Arn                     *string                `json:"arn,omitempty"`
	PlatformVersion         *string                `json:"platformVersion,omitempty"`
	RoleArn                 *string                `json:"roleArn,omitempty"`
	CreatedAt               string                 `json:"createdAt,omitempty"`
	EncryptionConfig        []*EKSEncryptionConfig `json:"encryptionConfig,omitempty"`
	Compute                 *EKSCompute            `json:"compute,omitempty"`
	Networking              *EKSNetworking         `json:"networking,omitempty"`
	Logging                 *EKSLogging            `json:"logging,omitempty"`
	Addons                  []string               `json:"addons,omitempty"`
	IdentityProviderConfigs []*string              `json:"identityProviderConfigs,omitempty"`
	Tags                    map[string]string      `json:"tags,omitempty"`
}

EKSCluster contains the EKS cluster's details

func (*EKSCluster) DeepCopy

func (in *EKSCluster) DeepCopy() *EKSCluster

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

func (*EKSCluster) DeepCopyInto

func (in *EKSCluster) DeepCopyInto(out *EKSCluster)

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

type EKSCompute

type EKSCompute struct {
	NodeGroups      []*EKSNodeGroup `json:"nodeGroups,omitempty"`
	FargateProfiles []string        `json:"fargateProfiles,omitempty"`
	Reservations    []*Reservation  `json:"reservations,omitempty"`
}

EKSCompute contains node groups and fargate profiles of the EKS cluster

func (*EKSCompute) DeepCopy

func (in *EKSCompute) DeepCopy() *EKSCompute

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

func (*EKSCompute) DeepCopyInto

func (in *EKSCompute) DeepCopyInto(out *EKSCompute)

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

type EKSEncryptionConfig

type EKSEncryptionConfig struct {
	KeyARN    *string  `json:"keyARN,omitempty"`
	Resources []string `json:"resources,omitempty"`
}

EKSEncryptionConfig contains encryption configuration of the EKS cluster

func (*EKSEncryptionConfig) DeepCopy

func (in *EKSEncryptionConfig) DeepCopy() *EKSEncryptionConfig

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

func (*EKSEncryptionConfig) DeepCopyInto

func (in *EKSEncryptionConfig) DeepCopyInto(out *EKSEncryptionConfig)

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

type EKSLogging

type EKSLogging struct {
	APIServer         *bool `json:"apiServer,omitempty"`
	Audit             *bool `json:"audit,omitempty"`
	Authenticator     *bool `json:"authenticator,omitempty"`
	ControllerManager *bool `json:"controllerManager,omitempty"`
	Scheduler         *bool `json:"scheduler,omitempty"`
}

EKSLogging contains info of which logs are enabled

func (*EKSLogging) DeepCopy

func (in *EKSLogging) DeepCopy() *EKSLogging

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

func (*EKSLogging) DeepCopyInto

func (in *EKSLogging) DeepCopyInto(out *EKSLogging)

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

type EKSNetworking

type EKSNetworking struct {
	VPC             *EKSVpcConfig `json:"vpc,omitempty"`
	IPFamily        string        `json:"ipFamily,omitempty"`
	ServiceIPv4CIDR *string       `json:"serviceIPv4CIDR,omitempty"`
	ServiceIPv6CIDR *string       `json:"serviceIPv6CIDR,omitempty"`
}

EKSNetworking contains networking configuration of the EKS cluster

func (*EKSNetworking) DeepCopy

func (in *EKSNetworking) DeepCopy() *EKSNetworking

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

func (*EKSNetworking) DeepCopyInto

func (in *EKSNetworking) DeepCopyInto(out *EKSNetworking)

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

type EKSNodeGroup

type EKSNodeGroup struct {
	Name               string                          `json:"name,omitempty"`
	NodegroupArn       *string                         `json:"nodeGroupArn,omitempty"`
	NodeRole           *string                         `json:"nodeRole,omitempty"`
	CreatedAt          string                          `json:"createdAt,omitempty"`
	Status             string                          `json:"status,omitempty"`
	DiskSize           *int32                          `json:"diskSize,omitempty"`
	AMIType            string                          `json:"amiType,omitempty"`
	CapacityType       string                          `json:"capacityType,omitempty"`
	AMIReleaseVersion  *string                         `json:"amiReleaseVersion,omitempty"`
	Subnets            []string                        `json:"subnets,omitempty"`
	AmazonMachineImage AmazonMachineImage              `json:"amazonMachineImage,omitempty"`
	UpdateConfig       *EKSNodeGroupUpdateConfig       `json:"updateConfig,omitempty"`
	ScalingConfig      *EKSNodeGroupScalingConfig      `json:"scalingConfig,omitempty"`
	LaunchTemplate     *EC2LaunchTemplate              `json:"launchTemplate,omitempty"`
	RemoteAccessConfig *EKSNodeGroupRemoteAccessConfig `json:"remoteAccessConfig,omitempty"`
	Resources          *EKSNodeGroupResources          `json:"resources,omitempty"`
	HealthIssues       []*EKSNodeGroupHealthIssue      `json:"healthIssues,omitempty"`
	Taints             []*EKSNodeGroupTaint            `json:"taints,omitempty"`
	Labels             map[string]string               `json:"labels,omitempty"`
	Tags               map[string]string               `json:"tags,omitempty"`
}

EKSNodeGroup contains info of the EKS cluster's node group

func (*EKSNodeGroup) DeepCopy

func (in *EKSNodeGroup) DeepCopy() *EKSNodeGroup

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

func (*EKSNodeGroup) DeepCopyInto

func (in *EKSNodeGroup) DeepCopyInto(out *EKSNodeGroup)

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

type EKSNodeGroupHealthIssue

type EKSNodeGroupHealthIssue struct {
	Code        string   `json:"code,omitempty"`
	Message     *string  `json:"message,omitempty"`
	ResourceIDs []string `json:"resourceIDs,omitempty"`
}

EKSNodeGroupHealthIssue contains info of any health issue in the EKS cluster's node group

func (*EKSNodeGroupHealthIssue) DeepCopy

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

func (*EKSNodeGroupHealthIssue) DeepCopyInto

func (in *EKSNodeGroupHealthIssue) DeepCopyInto(out *EKSNodeGroupHealthIssue)

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

type EKSNodeGroupRemoteAccessConfig

type EKSNodeGroupRemoteAccessConfig struct {
	Ec2SshKey            *string  `json:"ec2SSHKey,omitempty"`
	SourceSecurityGroups []string `json:"sourceSecurityGroups,omitempty"`
}

EKSNodeGroupRemoteAccessConfig contains remote access configuration of the EKS cluster's node group

func (*EKSNodeGroupRemoteAccessConfig) DeepCopy

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

func (*EKSNodeGroupRemoteAccessConfig) DeepCopyInto

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

type EKSNodeGroupResources

type EKSNodeGroupResources struct {
	AutoScalingGroups         []string `json:"autoScalingGroups,omitempty"`
	RemoteAccessSecurityGroup *string  `json:"remoteAccessSecurityGroup,omitempty"`
}

EKSNodeGroupResources contains info of ASG and remote access SG for node group

func (*EKSNodeGroupResources) DeepCopy

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

func (*EKSNodeGroupResources) DeepCopyInto

func (in *EKSNodeGroupResources) DeepCopyInto(out *EKSNodeGroupResources)

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

type EKSNodeGroupScalingConfig

type EKSNodeGroupScalingConfig struct {
	DesiredSize *int32 `json:"desiredSize,omitempty"`
	MaxSize     *int32 `json:"maxSize,omitempty"`
	MinSize     *int32 `json:"minSize,omitempty"`
}

EKSNodeGroupScalingConfig contains scaling configuration of the EKS cluster's node group

func (*EKSNodeGroupScalingConfig) DeepCopy

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

func (*EKSNodeGroupScalingConfig) DeepCopyInto

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

type EKSNodeGroupTaint

type EKSNodeGroupTaint struct {
	Effect string  `json:"effect,omitempty"`
	Key    *string `json:"key,omitempty"`
	Value  *string `json:"value,omitempty"`
}

EKSNodeGroupTaint contains info of taints in the EKS cluster's node group

func (*EKSNodeGroupTaint) DeepCopy

func (in *EKSNodeGroupTaint) DeepCopy() *EKSNodeGroupTaint

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

func (*EKSNodeGroupTaint) DeepCopyInto

func (in *EKSNodeGroupTaint) DeepCopyInto(out *EKSNodeGroupTaint)

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

type EKSNodeGroupUpdateConfig

type EKSNodeGroupUpdateConfig struct {
	MaxUnavailable           *int32 `json:"maxUnavailable,omitempty"`
	MaxUnavailablePercentage *int32 `json:"maxUnavailablePercentage,omitempty"`
}

EKSNodeGroupUpdateConfig contains number/percentage of node groups that can be updated in parallel

func (*EKSNodeGroupUpdateConfig) DeepCopy

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

func (*EKSNodeGroupUpdateConfig) DeepCopyInto

func (in *EKSNodeGroupUpdateConfig) DeepCopyInto(out *EKSNodeGroupUpdateConfig)

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

type EKSVpcConfig

type EKSVpcConfig struct {
	ClusterSecurityGroupID *string  `json:"clusterSecurityGroupID,omitempty"`
	EndpointPrivateAccess  bool     `json:"endpointPrivateAccess,omitempty"`
	EndpointPublicAccess   bool     `json:"endpointPublicAccess,omitempty"`
	PublicAccessCIDRs      []string `json:"publicAccessCIDRs,omitempty"`
	SecurityGroupIDs       []string `json:"securityGroupIDs,omitempty"`
	SubnetIDs              []string `json:"subnetIDs,omitempty"`
	VpcID                  *string  `json:"vpcID,omitempty"`
	FlowLogsEnabled        *bool    `json:"flowLogsEnabled,omitempty"`
}

EKSVpcConfig contains VPC configuration of the EKS cluster

func (*EKSVpcConfig) DeepCopy

func (in *EKSVpcConfig) DeepCopy() *EKSVpcConfig

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

func (*EKSVpcConfig) DeepCopyInto

func (in *EKSVpcConfig) DeepCopyInto(out *EKSVpcConfig)

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

type Instance added in v0.1.2

type Instance struct {
	HttpPutResponseHopLimit *int32  `json:"httpPutResponseHopLimit,omitempty"`
	PublicDnsName           *string `json:"publicDnsName,omitempty"`
}

func (*Instance) DeepCopy added in v0.1.2

func (in *Instance) DeepCopy() *Instance

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

func (*Instance) DeepCopyInto added in v0.1.2

func (in *Instance) DeepCopyInto(out *Instance)

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

type LastPollInfo

type LastPollInfo struct {
	Timestamp *metav1.Time `json:"timestamp,omitempty"`
	Status    PollStatus   `json:"status,omitempty"`
	Failure   *PollFailure `json:"failure,omitempty"`
}

LastPollInfo contains Timestamp, Status and Failure info of last poll

func (*LastPollInfo) DeepCopy

func (in *LastPollInfo) DeepCopy() *LastPollInfo

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

func (*LastPollInfo) DeepCopyInto

func (in *LastPollInfo) DeepCopyInto(out *LastPollInfo)

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

type PollFailure

type PollFailure struct {
	Message string `json:"message"`
	Error   string `json:"error"`
}

PollFailure contains the Error and relevant Message if got Failure in last poll

func (*PollFailure) DeepCopy

func (in *PollFailure) DeepCopy() *PollFailure

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

func (*PollFailure) DeepCopyInto

func (in *PollFailure) DeepCopyInto(out *PollFailure)

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

type PollStatus

type PollStatus string

type Reservation added in v0.1.2

type Reservation struct {
	Instances []*Instance `json:"instances,omitempty"`
}

func (*Reservation) DeepCopy added in v0.1.2

func (in *Reservation) DeepCopy() *Reservation

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

func (*Reservation) DeepCopyInto added in v0.1.2

func (in *Reservation) DeepCopyInto(out *Reservation)

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