v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=cloudbuild.google.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

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

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Trigger

type Trigger struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TriggerSpec   `json:"spec,omitempty"`
	Status            TriggerStatus `json:"status,omitempty"`
}

func (*Trigger) DeepCopy

func (in *Trigger) DeepCopy() *Trigger

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

func (*Trigger) DeepCopyInto

func (in *Trigger) DeepCopyInto(out *Trigger)

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

func (*Trigger) DeepCopyObject

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

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

func (*Trigger) SetupWebhookWithManager

func (r *Trigger) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Trigger) ValidateCreate

func (r *Trigger) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Trigger) ValidateDelete

func (r *Trigger) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Trigger) ValidateUpdate

func (r *Trigger) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type TriggerList

type TriggerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Trigger CRD objects
	Items []Trigger `json:"items,omitempty"`
}

TriggerList is a list of Triggers

func (*TriggerList) DeepCopy

func (in *TriggerList) DeepCopy() *TriggerList

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

func (*TriggerList) DeepCopyInto

func (in *TriggerList) DeepCopyInto(out *TriggerList)

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

func (*TriggerList) DeepCopyObject

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

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

type TriggerSpec

type TriggerSpec struct {
	State *TriggerSpecResource `json:"state,omitempty" tf:"-"`

	Resource TriggerSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*TriggerSpec) DeepCopy

func (in *TriggerSpec) DeepCopy() *TriggerSpec

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

func (*TriggerSpec) DeepCopyInto

func (in *TriggerSpec) DeepCopyInto(out *TriggerSpec)

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

type TriggerSpecBuild

type TriggerSpecBuild struct {
	// Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
	// +optional
	Artifacts *TriggerSpecBuildArtifacts `json:"artifacts,omitempty" tf:"artifacts"`
	// Secrets and secret environment variables.
	// +optional
	AvailableSecrets *TriggerSpecBuildAvailableSecrets `json:"availableSecrets,omitempty" tf:"available_secrets"`
	// A list of images to be pushed upon the successful completion of all build steps.
	// The images are pushed using the builder service account's credentials.
	// The digests of the pushed images will be stored in the Build resource's results field.
	// If any of the images fail to be pushed, the build status is marked FAILURE.
	// +optional
	Images []string `json:"images,omitempty" tf:"images"`
	// Google Cloud Storage bucket where logs should be written.
	// Logs file names will be of the format ${logsBucket}/log-${build_id}.txt.
	// +optional
	LogsBucket *string `json:"logsBucket,omitempty" tf:"logs_bucket"`
	// Special options for this build.
	// +optional
	Options *TriggerSpecBuildOptions `json:"options,omitempty" tf:"options"`
	// TTL in queue for this build. If provided and the build is enqueued longer than this value,
	// the build will expire and the build status will be EXPIRED.
	// The TTL starts ticking from createTime.
	// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
	// +optional
	QueueTtl *string `json:"queueTtl,omitempty" tf:"queue_ttl"`
	// Secrets to decrypt using Cloud Key Management Service.
	// +optional
	Secret []TriggerSpecBuildSecret `json:"secret,omitempty" tf:"secret"`
	// The location of the source files to build.
	//
	// One of 'storageSource' or 'repoSource' must be provided.
	// +optional
	Source *TriggerSpecBuildSource `json:"source,omitempty" tf:"source"`
	// The operations to be performed on the workspace.
	Step []TriggerSpecBuildStep `json:"step" tf:"step"`
	// Substitutions data for Build resource.
	// +optional
	Substitutions *map[string]string `json:"substitutions,omitempty" tf:"substitutions"`
	// Tags for annotation of a Build. These are not docker tags.
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// Amount of time that this build should be allowed to run, to second granularity.
	// If this amount of time elapses, work on the build will cease and the build status will be TIMEOUT.
	// This timeout must be equal to or greater than the sum of the timeouts for build steps within the build.
	// The expected format is the number of seconds followed by s.
	// Default time is ten minutes (600s).
	// +optional
	Timeout *string `json:"timeout,omitempty" tf:"timeout"`
}

func (*TriggerSpecBuild) DeepCopy

func (in *TriggerSpecBuild) DeepCopy() *TriggerSpecBuild

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

func (*TriggerSpecBuild) DeepCopyInto

func (in *TriggerSpecBuild) DeepCopyInto(out *TriggerSpecBuild)

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

type TriggerSpecBuildArtifacts

type TriggerSpecBuildArtifacts struct {
	// A list of images to be pushed upon the successful completion of all build steps.
	//
	// The images will be pushed using the builder service account's credentials.
	//
	// The digests of the pushed images will be stored in the Build resource's results field.
	//
	// If any of the images fail to be pushed, the build is marked FAILURE.
	// +optional
	Images []string `json:"images,omitempty" tf:"images"`
	// A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps.
	//
	// Files in the workspace matching specified paths globs will be uploaded to the
	// Cloud Storage location using the builder service account's credentials.
	//
	// The location and generation of the uploaded objects will be stored in the Build resource's results field.
	//
	// If any objects fail to be pushed, the build is marked FAILURE.
	// +optional
	Objects *TriggerSpecBuildArtifactsObjects `json:"objects,omitempty" tf:"objects"`
}

func (*TriggerSpecBuildArtifacts) DeepCopy

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

func (*TriggerSpecBuildArtifacts) DeepCopyInto

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

type TriggerSpecBuildArtifactsCodec

type TriggerSpecBuildArtifactsCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecBuildArtifactsCodec) Decode

func (TriggerSpecBuildArtifactsCodec) Encode

func (TriggerSpecBuildArtifactsCodec) IsEmpty

type TriggerSpecBuildArtifactsObjects

type TriggerSpecBuildArtifactsObjects struct {
	// Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/".
	//
	// Files in the workspace matching any path pattern will be uploaded to Cloud Storage with
	// this location as a prefix.
	// +optional
	Location *string `json:"location,omitempty" tf:"location"`
	// Path globs used to match files in the build's workspace.
	// +optional
	Paths []string `json:"paths,omitempty" tf:"paths"`
	// Output only. Stores timing information for pushing all artifact objects.
	// +optional
	Timing []TriggerSpecBuildArtifactsObjectsTiming `json:"timing,omitempty" tf:"timing"`
}

func (*TriggerSpecBuildArtifactsObjects) DeepCopy

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

func (*TriggerSpecBuildArtifactsObjects) DeepCopyInto

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

type TriggerSpecBuildArtifactsObjectsCodec

type TriggerSpecBuildArtifactsObjectsCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecBuildArtifactsObjectsCodec) Decode

func (TriggerSpecBuildArtifactsObjectsCodec) Encode

func (TriggerSpecBuildArtifactsObjectsCodec) IsEmpty

type TriggerSpecBuildArtifactsObjectsTiming

type TriggerSpecBuildArtifactsObjectsTiming struct {
	// End of time span.
	//
	// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to
	// nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
	// +optional
	EndTime *string `json:"endTime,omitempty" tf:"end_time"`
	// Start of time span.
	//
	// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to
	// nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
	// +optional
	StartTime *string `json:"startTime,omitempty" tf:"start_time"`
}

func (*TriggerSpecBuildArtifactsObjectsTiming) DeepCopy

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

func (*TriggerSpecBuildArtifactsObjectsTiming) DeepCopyInto

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

type TriggerSpecBuildAvailableSecrets added in v0.5.0

type TriggerSpecBuildAvailableSecrets struct {
	// Pairs a secret environment variable with a SecretVersion in Secret Manager.
	SecretManager []TriggerSpecBuildAvailableSecretsSecretManager `json:"secretManager" tf:"secret_manager"`
}

func (*TriggerSpecBuildAvailableSecrets) DeepCopy added in v0.5.0

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

func (*TriggerSpecBuildAvailableSecrets) DeepCopyInto added in v0.5.0

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

type TriggerSpecBuildAvailableSecretsCodec added in v0.5.0

type TriggerSpecBuildAvailableSecretsCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecBuildAvailableSecretsCodec) Decode added in v0.5.0

func (TriggerSpecBuildAvailableSecretsCodec) Encode added in v0.5.0

func (TriggerSpecBuildAvailableSecretsCodec) IsEmpty added in v0.5.0

type TriggerSpecBuildAvailableSecretsSecretManager added in v0.5.0

type TriggerSpecBuildAvailableSecretsSecretManager struct {
	// Environment variable name to associate with the secret. Secret environment
	// variables must be unique across all of a build's secrets, and must be used
	// by at least one build step.
	Env *string `json:"env" tf:"env"`
	// Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
	VersionName *string `json:"versionName" tf:"version_name"`
}

func (*TriggerSpecBuildAvailableSecretsSecretManager) DeepCopy added in v0.5.0

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

func (*TriggerSpecBuildAvailableSecretsSecretManager) DeepCopyInto added in v0.5.0

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

type TriggerSpecBuildCodec

type TriggerSpecBuildCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecBuildCodec) Decode

func (TriggerSpecBuildCodec) Encode

func (TriggerSpecBuildCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (TriggerSpecBuildCodec) IsEmpty

type TriggerSpecBuildOptions

type TriggerSpecBuildOptions struct {
	// Requested disk size for the VM that runs the build. Note that this is NOT "disk free";
	// some of the space will be used by the operating system and build utilities.
	// Also note that this is the minimum disk size that will be allocated for the build --
	// the build may run with a larger disk than requested. At present, the maximum disk size
	// is 1000GB; builds that request more than the maximum are rejected with an error.
	// +optional
	DiskSizeGb *int64 `json:"diskSizeGb,omitempty" tf:"disk_size_gb"`
	// Option to specify whether or not to apply bash style string operations to the substitutions.
	//
	// NOTE this is always enabled for triggered builds and cannot be overridden in the build configuration file.
	// +optional
	DynamicSubstitutions *bool `json:"dynamicSubstitutions,omitempty" tf:"dynamic_substitutions"`
	// A list of global environment variable definitions that will exist for all build steps
	// in this build. If a variable is defined in both globally and in a build step,
	// the variable will use the build step value.
	//
	// The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".
	// +optional
	Env []string `json:"env,omitempty" tf:"env"`
	// Option to define build log streaming behavior to Google Cloud Storage. Possible values: ["STREAM_DEFAULT", "STREAM_ON", "STREAM_OFF"]
	// +optional
	LogStreamingOption *string `json:"logStreamingOption,omitempty" tf:"log_streaming_option"`
	// Option to specify the logging mode, which determines if and where build logs are stored. Possible values: ["LOGGING_UNSPECIFIED", "LEGACY", "GCS_ONLY", "STACKDRIVER_ONLY", "NONE"]
	// +optional
	Logging *string `json:"logging,omitempty" tf:"logging"`
	// Compute Engine machine type on which to run the build. Possible values: ["UNSPECIFIED", "N1_HIGHCPU_8", "N1_HIGHCPU_32", "E2_HIGHCPU_8", "E2_HIGHCPU_32"]
	// +optional
	MachineType *string `json:"machineType,omitempty" tf:"machine_type"`
	// Requested verifiability options. Possible values: ["NOT_VERIFIED", "VERIFIED"]
	// +optional
	RequestedVerifyOption *string `json:"requestedVerifyOption,omitempty" tf:"requested_verify_option"`
	// A list of global environment variables, which are encrypted using a Cloud Key Management
	// Service crypto key. These values must be specified in the build's Secret. These variables
	// will be available to all build steps in this build.
	// +optional
	SecretEnv []string `json:"secretEnv,omitempty" tf:"secret_env"`
	// Requested hash for SourceProvenance. Possible values: ["NONE", "SHA256", "MD5"]
	// +optional
	SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty" tf:"source_provenance_hash"`
	// Option to specify behavior when there is an error in the substitution checks.
	//
	// NOTE this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden
	// in the build configuration file. Possible values: ["MUST_MATCH", "ALLOW_LOOSE"]
	// +optional
	SubstitutionOption *string `json:"substitutionOption,omitempty" tf:"substitution_option"`
	// Global list of volumes to mount for ALL build steps
	//
	// Each volume is created as an empty volume prior to starting the build process.
	// Upon completion of the build, volumes and their contents are discarded. Global
	// volume names and paths cannot conflict with the volumes defined a build step.
	//
	// Using a global volume in a build with only one step is not valid as it is indicative
	// of a build request with an incorrect configuration.
	// +optional
	Volumes []TriggerSpecBuildOptionsVolumes `json:"volumes,omitempty" tf:"volumes"`
	// Option to specify a WorkerPool for the build. Format projects/{project}/workerPools/{workerPool}
	//
	// This field is experimental.
	// +optional
	WorkerPool *string `json:"workerPool,omitempty" tf:"worker_pool"`
}

func (*TriggerSpecBuildOptions) DeepCopy

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

func (*TriggerSpecBuildOptions) DeepCopyInto

func (in *TriggerSpecBuildOptions) DeepCopyInto(out *TriggerSpecBuildOptions)

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

type TriggerSpecBuildOptionsCodec

type TriggerSpecBuildOptionsCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecBuildOptionsCodec) Decode

func (TriggerSpecBuildOptionsCodec) Encode

func (TriggerSpecBuildOptionsCodec) IsEmpty

type TriggerSpecBuildOptionsVolumes

type TriggerSpecBuildOptionsVolumes struct {
	// Name of the volume to mount.
	//
	// Volume names must be unique per build step and must be valid names for Docker volumes.
	// Each named volume must be used by at least two build steps.
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// Path at which to mount the volume.
	//
	// Paths must be absolute and cannot conflict with other volume paths on the same
	// build step or with certain reserved volume paths.
	// +optional
	Path *string `json:"path,omitempty" tf:"path"`
}

func (*TriggerSpecBuildOptionsVolumes) DeepCopy

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

func (*TriggerSpecBuildOptionsVolumes) DeepCopyInto

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

type TriggerSpecBuildSecret

type TriggerSpecBuildSecret struct {
	// Cloud KMS key name to use to decrypt these envs.
	KmsKeyName *string `json:"kmsKeyName" tf:"kms_key_name"`
	// Map of environment variable name to its encrypted value.
	// Secret environment variables must be unique across all of a build's secrets,
	// and must be used by at least one build step. Values can be at most 64 KB in size.
	// There can be at most 100 secret values across all of a build's secrets.
	// +optional
	SecretEnv *map[string]string `json:"secretEnv,omitempty" tf:"secret_env"`
}

func (*TriggerSpecBuildSecret) DeepCopy

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

func (*TriggerSpecBuildSecret) DeepCopyInto

func (in *TriggerSpecBuildSecret) DeepCopyInto(out *TriggerSpecBuildSecret)

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

type TriggerSpecBuildSource

type TriggerSpecBuildSource struct {
	// Location of the source in a Google Cloud Source Repository.
	// +optional
	RepoSource *TriggerSpecBuildSourceRepoSource `json:"repoSource,omitempty" tf:"repo_source"`
	// Location of the source in an archive file in Google Cloud Storage.
	// +optional
	StorageSource *TriggerSpecBuildSourceStorageSource `json:"storageSource,omitempty" tf:"storage_source"`
}

func (*TriggerSpecBuildSource) DeepCopy

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

func (*TriggerSpecBuildSource) DeepCopyInto

func (in *TriggerSpecBuildSource) DeepCopyInto(out *TriggerSpecBuildSource)

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

type TriggerSpecBuildSourceCodec

type TriggerSpecBuildSourceCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecBuildSourceCodec) Decode

func (TriggerSpecBuildSourceCodec) Encode

func (TriggerSpecBuildSourceCodec) IsEmpty

type TriggerSpecBuildSourceRepoSource

type TriggerSpecBuildSourceRepoSource struct {
	// Regex matching branches to build. Exactly one a of branch name, tag, or commit SHA must be provided.
	// The syntax of the regular expressions accepted is the syntax accepted by RE2 and
	// described at https://github.com/google/re2/wiki/Syntax
	// +optional
	BranchName *string `json:"branchName,omitempty" tf:"branch_name"`
	// Explicit commit SHA to build. Exactly one a of branch name, tag, or commit SHA must be provided.
	// +optional
	CommitSha *string `json:"commitSha,omitempty" tf:"commit_sha"`
	// Directory, relative to the source root, in which to run the build.
	// This must be a relative path. If a step's dir is specified and is an absolute path,
	// this value is ignored for that step's execution.
	// +optional
	Dir *string `json:"dir,omitempty" tf:"dir"`
	// Only trigger a build if the revision regex does NOT match the revision regex.
	// +optional
	InvertRegex *bool `json:"invertRegex,omitempty" tf:"invert_regex"`
	// ID of the project that owns the Cloud Source Repository.
	// If omitted, the project ID requesting the build is assumed.
	// +optional
	ProjectID *string `json:"projectID,omitempty" tf:"project_id"`
	// Name of the Cloud Source Repository.
	RepoName *string `json:"repoName" tf:"repo_name"`
	// Substitutions to use in a triggered build. Should only be used with triggers.run
	// +optional
	Substitutions *map[string]string `json:"substitutions,omitempty" tf:"substitutions"`
	// Regex matching tags to build. Exactly one a of branch name, tag, or commit SHA must be provided.
	// The syntax of the regular expressions accepted is the syntax accepted by RE2 and
	// described at https://github.com/google/re2/wiki/Syntax
	// +optional
	TagName *string `json:"tagName,omitempty" tf:"tag_name"`
}

func (*TriggerSpecBuildSourceRepoSource) DeepCopy

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

func (*TriggerSpecBuildSourceRepoSource) DeepCopyInto

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

type TriggerSpecBuildSourceRepoSourceCodec

type TriggerSpecBuildSourceRepoSourceCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecBuildSourceRepoSourceCodec) Decode

func (TriggerSpecBuildSourceRepoSourceCodec) Encode

func (TriggerSpecBuildSourceRepoSourceCodec) IsEmpty

type TriggerSpecBuildSourceStorageSource

type TriggerSpecBuildSourceStorageSource struct {
	// Google Cloud Storage bucket containing the source.
	Bucket *string `json:"bucket" tf:"bucket"`
	// Google Cloud Storage generation for the object.
	// If the generation is omitted, the latest generation will be used
	// +optional
	Generation *string `json:"generation,omitempty" tf:"generation"`
	// Google Cloud Storage object containing the source.
	// This object must be a gzipped archive file (.tar.gz) containing source to build.
	Object *string `json:"object" tf:"object"`
}

func (*TriggerSpecBuildSourceStorageSource) DeepCopy

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

func (*TriggerSpecBuildSourceStorageSource) DeepCopyInto

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

type TriggerSpecBuildSourceStorageSourceCodec

type TriggerSpecBuildSourceStorageSourceCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecBuildSourceStorageSourceCodec) Decode

func (TriggerSpecBuildSourceStorageSourceCodec) Encode

func (TriggerSpecBuildSourceStorageSourceCodec) IsEmpty

type TriggerSpecBuildStep

type TriggerSpecBuildStep struct {
	// A list of arguments that will be presented to the step when it is started.
	//
	// If the image used to run the step's container has an entrypoint, the args
	// are used as arguments to that entrypoint. If the image does not define an
	// entrypoint, the first element in args is used as the entrypoint, and the
	// remainder will be used as arguments.
	// +optional
	Args []string `json:"args,omitempty" tf:"args"`
	// Working directory to use when running this step's container.
	//
	// If this value is a relative path, it is relative to the build's working
	// directory. If this value is absolute, it may be outside the build's working
	// directory, in which case the contents of the path may not be persisted
	// across build step executions, unless a 'volume' for that path is specified.
	//
	// If the build specifies a 'RepoSource' with 'dir' and a step with a
	// 'dir',
	// which specifies an absolute path, the 'RepoSource' 'dir' is ignored
	// for the step's execution.
	// +optional
	Dir *string `json:"dir,omitempty" tf:"dir"`
	// Entrypoint to be used instead of the build step image's
	// default entrypoint.
	// If unset, the image's default entrypoint is used
	// +optional
	Entrypoint *string `json:"entrypoint,omitempty" tf:"entrypoint"`
	// A list of environment variable definitions to be used when
	// running a step.
	//
	// The elements are of the form "KEY=VALUE" for the environment variable
	// "KEY" being given the value "VALUE".
	// +optional
	Env []string `json:"env,omitempty" tf:"env"`
	// Unique identifier for this build step, used in 'wait_for' to
	// reference this build step as a dependency.
	// +optional
	ID *string `json:"ID,omitempty" tf:"id"`
	// The name of the container image that will run this particular build step.
	//
	// If the image is available in the host's Docker daemon's cache, it will be
	// run directly. If not, the host will attempt to pull the image first, using
	// the builder service account's credentials if necessary.
	//
	// The Docker daemon's cache will already have the latest versions of all of
	// the officially supported build steps (see https://github.com/GoogleCloudPlatform/cloud-builders
	// for images and examples).
	// The Docker daemon will also have cached many of the layers for some popular
	// images, like "ubuntu", "debian", but they will be refreshed at the time
	// you attempt to use them.
	//
	// If you built an image in a previous build step, it will be stored in the
	// host's Docker daemon's cache and is available to use as the name for a
	// later build step.
	Name *string `json:"name" tf:"name"`
	// A list of environment variables which are encrypted using
	// a Cloud Key
	// Management Service crypto key. These values must be specified in
	// the build's 'Secret'.
	// +optional
	SecretEnv []string `json:"secretEnv,omitempty" tf:"secret_env"`
	// Time limit for executing this build step. If not defined,
	// the step has no
	// time limit and will be allowed to continue to run until either it
	// completes or the build itself times out.
	// +optional
	Timeout *string `json:"timeout,omitempty" tf:"timeout"`
	// Output only. Stores timing information for executing this
	// build step.
	// +optional
	Timing *string `json:"timing,omitempty" tf:"timing"`
	// List of volumes to mount into the build step.
	//
	// Each volume is created as an empty volume prior to execution of the
	// build step. Upon completion of the build, volumes and their contents
	// are discarded.
	//
	// Using a named volume in only one step is not valid as it is
	// indicative of a build request with an incorrect configuration.
	// +optional
	Volumes []TriggerSpecBuildStepVolumes `json:"volumes,omitempty" tf:"volumes"`
	// The ID(s) of the step(s) that this build step depends on.
	//
	// This build step will not start until all the build steps in 'wait_for'
	// have completed successfully. If 'wait_for' is empty, this build step
	// will start when all previous build steps in the 'Build.Steps' list
	// have completed successfully.
	// +optional
	WaitFor []string `json:"waitFor,omitempty" tf:"wait_for"`
}

func (*TriggerSpecBuildStep) DeepCopy

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

func (*TriggerSpecBuildStep) DeepCopyInto

func (in *TriggerSpecBuildStep) DeepCopyInto(out *TriggerSpecBuildStep)

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

type TriggerSpecBuildStepVolumes

type TriggerSpecBuildStepVolumes struct {
	// Name of the volume to mount.
	//
	// Volume names must be unique per build step and must be valid names for
	// Docker volumes. Each named volume must be used by at least two build steps.
	Name *string `json:"name" tf:"name"`
	// Path at which to mount the volume.
	//
	// Paths must be absolute and cannot conflict with other volume paths on
	// the same build step or with certain reserved volume paths.
	Path *string `json:"path" tf:"path"`
}

func (*TriggerSpecBuildStepVolumes) DeepCopy

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

func (*TriggerSpecBuildStepVolumes) DeepCopyInto

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

type TriggerSpecGithub

type TriggerSpecGithub struct {
	// Name of the repository. For example: The name for
	// https://github.com/googlecloudplatform/cloud-builders is "cloud-builders".
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// Owner of the repository. For example: The owner for
	// https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform".
	// +optional
	Owner *string `json:"owner,omitempty" tf:"owner"`
	// filter to match changes in pull requests. Specify only one of 'pull_request' or 'push'.
	// +optional
	PullRequest *TriggerSpecGithubPullRequest `json:"pullRequest,omitempty" tf:"pull_request"`
	// filter to match changes in refs, like branches or tags. Specify only one of 'pull_request' or 'push'.
	// +optional
	Push *TriggerSpecGithubPush `json:"push,omitempty" tf:"push"`
}

func (*TriggerSpecGithub) DeepCopy

func (in *TriggerSpecGithub) DeepCopy() *TriggerSpecGithub

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

func (*TriggerSpecGithub) DeepCopyInto

func (in *TriggerSpecGithub) DeepCopyInto(out *TriggerSpecGithub)

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

type TriggerSpecGithubCodec

type TriggerSpecGithubCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecGithubCodec) Decode

func (TriggerSpecGithubCodec) Encode

func (TriggerSpecGithubCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (TriggerSpecGithubCodec) IsEmpty

type TriggerSpecGithubPullRequest

type TriggerSpecGithubPullRequest struct {
	// Regex of branches to match.
	Branch *string `json:"branch" tf:"branch"`
	// Whether to block builds on a "/gcbrun" comment from a repository owner or collaborator. Possible values: ["COMMENTS_DISABLED", "COMMENTS_ENABLED", "COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY"]
	// +optional
	CommentControl *string `json:"commentControl,omitempty" tf:"comment_control"`
	// If true, branches that do NOT match the git_ref will trigger a build.
	// +optional
	InvertRegex *bool `json:"invertRegex,omitempty" tf:"invert_regex"`
}

func (*TriggerSpecGithubPullRequest) DeepCopy

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

func (*TriggerSpecGithubPullRequest) DeepCopyInto

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

type TriggerSpecGithubPullRequestCodec

type TriggerSpecGithubPullRequestCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecGithubPullRequestCodec) Decode

func (TriggerSpecGithubPullRequestCodec) Encode

func (TriggerSpecGithubPullRequestCodec) IsEmpty

type TriggerSpecGithubPush

type TriggerSpecGithubPush struct {
	// Regex of branches to match.  Specify only one of branch or tag.
	// +optional
	Branch *string `json:"branch,omitempty" tf:"branch"`
	// When true, only trigger a build if the revision regex does NOT match the git_ref regex.
	// +optional
	InvertRegex *bool `json:"invertRegex,omitempty" tf:"invert_regex"`
	// Regex of tags to match.  Specify only one of branch or tag.
	// +optional
	Tag *string `json:"tag,omitempty" tf:"tag"`
}

func (*TriggerSpecGithubPush) DeepCopy

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

func (*TriggerSpecGithubPush) DeepCopyInto

func (in *TriggerSpecGithubPush) DeepCopyInto(out *TriggerSpecGithubPush)

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

type TriggerSpecGithubPushCodec

type TriggerSpecGithubPushCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecGithubPushCodec) Decode

func (TriggerSpecGithubPushCodec) Encode

func (TriggerSpecGithubPushCodec) IsEmpty

type TriggerSpecPubsubConfig added in v0.4.0

type TriggerSpecPubsubConfig struct {
	// Service account that will make the push request.
	// +optional
	ServiceAccountEmail *string `json:"serviceAccountEmail,omitempty" tf:"service_account_email"`
	// Potential issues with the underlying Pub/Sub subscription configuration.
	// Only populated on get requests.
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
	// Output only. Name of the subscription.
	// +optional
	Subscription *string `json:"subscription,omitempty" tf:"subscription"`
	// The name of the topic from which this subscription is receiving messages.
	Topic *string `json:"topic" tf:"topic"`
}

func (*TriggerSpecPubsubConfig) DeepCopy added in v0.4.0

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

func (*TriggerSpecPubsubConfig) DeepCopyInto added in v0.4.0

func (in *TriggerSpecPubsubConfig) DeepCopyInto(out *TriggerSpecPubsubConfig)

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

type TriggerSpecPubsubConfigCodec added in v0.4.0

type TriggerSpecPubsubConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecPubsubConfigCodec) Decode added in v0.4.0

func (TriggerSpecPubsubConfigCodec) Encode added in v0.4.0

func (TriggerSpecPubsubConfigCodec) IsEmpty added in v0.4.0

type TriggerSpecResource

type TriggerSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Contents of the build template. Either a filename or build template must be provided.
	// +optional
	Build *TriggerSpecBuild `json:"build,omitempty" tf:"build"`
	// Time when the trigger was created.
	// +optional
	CreateTime *string `json:"createTime,omitempty" tf:"create_time"`
	// Human-readable description of the trigger.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// Whether the trigger is disabled or not. If true, the trigger will never result in a build.
	// +optional
	Disabled *bool `json:"disabled,omitempty" tf:"disabled"`
	// Path, from the source root, to a file whose contents is used for the template. Either a filename or build template must be provided.
	// +optional
	Filename *string `json:"filename,omitempty" tf:"filename"`
	// Describes the configuration of a trigger that creates a build whenever a GitHub event is received.
	//
	// One of 'trigger_template', 'github', 'pubsub_config' or 'webhook_config' must be provided.
	// +optional
	Github *TriggerSpecGithub `json:"github,omitempty" tf:"github"`
	// ignoredFiles and includedFiles are file glob matches using https://golang.org/pkg/path/filepath/#Match
	// extended with support for '**'.
	//
	// If ignoredFiles and changed files are both empty, then they are not
	// used to determine whether or not to trigger a build.
	//
	// If ignoredFiles is not empty, then we ignore any files that match any
	// of the ignored_file globs. If the change has no files that are outside
	// of the ignoredFiles globs, then we do not trigger a build.
	// +optional
	IgnoredFiles []string `json:"ignoredFiles,omitempty" tf:"ignored_files"`
	// ignoredFiles and includedFiles are file glob matches using https://golang.org/pkg/path/filepath/#Match
	// extended with support for '**'.
	//
	// If any of the files altered in the commit pass the ignoredFiles filter
	// and includedFiles is empty, then as far as this filter is concerned, we
	// should trigger the build.
	//
	// If any of the files altered in the commit pass the ignoredFiles filter
	// and includedFiles is not empty, then we make sure that at least one of
	// those files matches a includedFiles glob. If not, then we do not trigger
	// a build.
	// +optional
	IncludedFiles []string `json:"includedFiles,omitempty" tf:"included_files"`
	// Name of the trigger. Must be unique within the project.
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
	// PubsubConfig describes the configuration of a trigger that creates
	// a build whenever a Pub/Sub message is published.
	//
	// One of 'trigger_template', 'github', 'pubsub_config' or 'webhook_config' must be provided.
	// +optional
	PubsubConfig *TriggerSpecPubsubConfig `json:"pubsubConfig,omitempty" tf:"pubsub_config"`
	// The service account used for all user-controlled operations including
	// triggers.patch, triggers.run, builds.create, and builds.cancel.
	//
	// If no service account is set, then the standard Cloud Build service account
	// ([PROJECT_NUM]@system.gserviceaccount.com) will be used instead.
	//
	// Format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}
	// +optional
	ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account"`
	// Substitutions data for Build resource.
	// +optional
	Substitutions *map[string]string `json:"substitutions,omitempty" tf:"substitutions"`
	// Tags for annotation of a BuildTrigger
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// The unique identifier for the trigger.
	// +optional
	TriggerID *string `json:"triggerID,omitempty" tf:"trigger_id"`
	// Template describing the types of source changes to trigger a build.
	//
	// Branch and tag names in trigger templates are interpreted as regular
	// expressions. Any branch or tag change that matches that regular
	// expression will trigger a build.
	//
	// One of 'trigger_template', 'github', 'pubsub_config' or 'webhook_config' must be provided.
	// +optional
	TriggerTemplate *TriggerSpecTriggerTemplate `json:"triggerTemplate,omitempty" tf:"trigger_template"`
	// WebhookConfig describes the configuration of a trigger that creates
	// a build whenever a webhook is sent to a trigger's webhook URL.
	//
	// One of 'trigger_template', 'github', 'pubsub_config' or 'webhook_config' must be provided.
	// +optional
	WebhookConfig *TriggerSpecWebhookConfig `json:"webhookConfig,omitempty" tf:"webhook_config"`
}

func (*TriggerSpecResource) DeepCopy

func (in *TriggerSpecResource) DeepCopy() *TriggerSpecResource

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

func (*TriggerSpecResource) DeepCopyInto

func (in *TriggerSpecResource) DeepCopyInto(out *TriggerSpecResource)

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

type TriggerSpecTriggerTemplate

type TriggerSpecTriggerTemplate struct {
	// Name of the branch to build. Exactly one a of branch name, tag, or commit SHA must be provided.
	// This field is a regular expression.
	// +optional
	BranchName *string `json:"branchName,omitempty" tf:"branch_name"`
	// Explicit commit SHA to build. Exactly one of a branch name, tag, or commit SHA must be provided.
	// +optional
	CommitSha *string `json:"commitSha,omitempty" tf:"commit_sha"`
	// Directory, relative to the source root, in which to run the build.
	//
	// This must be a relative path. If a step's dir is specified and
	// is an absolute path, this value is ignored for that step's
	// execution.
	// +optional
	Dir *string `json:"dir,omitempty" tf:"dir"`
	// Only trigger a build if the revision regex does NOT match the revision regex.
	// +optional
	InvertRegex *bool `json:"invertRegex,omitempty" tf:"invert_regex"`
	// ID of the project that owns the Cloud Source Repository. If
	// omitted, the project ID requesting the build is assumed.
	// +optional
	ProjectID *string `json:"projectID,omitempty" tf:"project_id"`
	// Name of the Cloud Source Repository. If omitted, the name "default" is assumed.
	// +optional
	RepoName *string `json:"repoName,omitempty" tf:"repo_name"`
	// Name of the tag to build. Exactly one of a branch name, tag, or commit SHA must be provided.
	// This field is a regular expression.
	// +optional
	TagName *string `json:"tagName,omitempty" tf:"tag_name"`
}

func (*TriggerSpecTriggerTemplate) DeepCopy

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

func (*TriggerSpecTriggerTemplate) DeepCopyInto

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

type TriggerSpecTriggerTemplateCodec

type TriggerSpecTriggerTemplateCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecTriggerTemplateCodec) Decode

func (TriggerSpecTriggerTemplateCodec) Encode

func (TriggerSpecTriggerTemplateCodec) IsEmpty

type TriggerSpecWebhookConfig added in v0.4.0

type TriggerSpecWebhookConfig struct {
	// Resource name for the secret required as a URL parameter.
	Secret *string `json:"secret" tf:"secret"`
	// Potential issues with the underlying Pub/Sub subscription configuration.
	// Only populated on get requests.
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
}

func (*TriggerSpecWebhookConfig) DeepCopy added in v0.4.0

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

func (*TriggerSpecWebhookConfig) DeepCopyInto added in v0.4.0

func (in *TriggerSpecWebhookConfig) DeepCopyInto(out *TriggerSpecWebhookConfig)

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

type TriggerSpecWebhookConfigCodec added in v0.4.0

type TriggerSpecWebhookConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (TriggerSpecWebhookConfigCodec) Decode added in v0.4.0

func (TriggerSpecWebhookConfigCodec) Encode added in v0.4.0

func (TriggerSpecWebhookConfigCodec) IsEmpty added in v0.4.0

type TriggerStatus

type TriggerStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*TriggerStatus) DeepCopy

func (in *TriggerStatus) DeepCopy() *TriggerStatus

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

func (*TriggerStatus) DeepCopyInto

func (in *TriggerStatus) DeepCopyInto(out *TriggerStatus)

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

type WorkerPool added in v0.5.0

type WorkerPool struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              WorkerPoolSpec   `json:"spec,omitempty"`
	Status            WorkerPoolStatus `json:"status,omitempty"`
}

func (*WorkerPool) DeepCopy added in v0.5.0

func (in *WorkerPool) DeepCopy() *WorkerPool

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

func (*WorkerPool) DeepCopyInto added in v0.5.0

func (in *WorkerPool) DeepCopyInto(out *WorkerPool)

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

func (*WorkerPool) DeepCopyObject added in v0.5.0

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

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

func (*WorkerPool) SetupWebhookWithManager added in v0.5.0

func (r *WorkerPool) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*WorkerPool) ValidateCreate added in v0.5.0

func (r *WorkerPool) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*WorkerPool) ValidateDelete added in v0.5.0

func (r *WorkerPool) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*WorkerPool) ValidateUpdate added in v0.5.0

func (r *WorkerPool) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type WorkerPoolList added in v0.5.0

type WorkerPoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of WorkerPool CRD objects
	Items []WorkerPool `json:"items,omitempty"`
}

WorkerPoolList is a list of WorkerPools

func (*WorkerPoolList) DeepCopy added in v0.5.0

func (in *WorkerPoolList) DeepCopy() *WorkerPoolList

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

func (*WorkerPoolList) DeepCopyInto added in v0.5.0

func (in *WorkerPoolList) DeepCopyInto(out *WorkerPoolList)

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

func (*WorkerPoolList) DeepCopyObject added in v0.5.0

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

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

type WorkerPoolSpec added in v0.5.0

type WorkerPoolSpec struct {
	State *WorkerPoolSpecResource `json:"state,omitempty" tf:"-"`

	Resource WorkerPoolSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*WorkerPoolSpec) DeepCopy added in v0.5.0

func (in *WorkerPoolSpec) DeepCopy() *WorkerPoolSpec

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

func (*WorkerPoolSpec) DeepCopyInto added in v0.5.0

func (in *WorkerPoolSpec) DeepCopyInto(out *WorkerPoolSpec)

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

type WorkerPoolSpecNetworkConfig added in v0.5.0

type WorkerPoolSpecNetworkConfig struct {
	// Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to `WorkerPool.project_id` on the service producer network. Must be in the format `projects/{project}/global/networks/{network}`, where `{project}` is a project number, such as `12345`, and `{network}` is the name of a VPC network in the project. See [Understanding network configuration options](https://cloud.google.com/cloud-build/docs/custom-workers/set-up-custom-worker-pool-environment#understanding_the_network_configuration_options)
	PeeredNetwork *string `json:"peeredNetwork" tf:"peered_network"`
}

func (*WorkerPoolSpecNetworkConfig) DeepCopy added in v0.5.0

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

func (*WorkerPoolSpecNetworkConfig) DeepCopyInto added in v0.5.0

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

type WorkerPoolSpecNetworkConfigCodec added in v0.5.0

type WorkerPoolSpecNetworkConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (WorkerPoolSpecNetworkConfigCodec) Decode added in v0.5.0

func (WorkerPoolSpecNetworkConfigCodec) Encode added in v0.5.0

func (WorkerPoolSpecNetworkConfigCodec) IsEmpty added in v0.5.0

type WorkerPoolSpecResource added in v0.5.0

type WorkerPoolSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
	// +optional
	Annotations *map[string]string `json:"annotations,omitempty" tf:"annotations"`
	// Output only. Time at which the request to create the `WorkerPool` was received.
	// +optional
	CreateTime *string `json:"createTime,omitempty" tf:"create_time"`
	// Output only. Time at which the request to delete the `WorkerPool` was received.
	// +optional
	DeleteTime *string `json:"deleteTime,omitempty" tf:"delete_time"`
	// A user-specified, human-readable name for the `WorkerPool`. If provided, this value must be 1-63 characters.
	// +optional
	DisplayName *string `json:"displayName,omitempty" tf:"display_name"`
	// The location for the resource
	Location *string `json:"location" tf:"location"`
	// User-defined name of the `WorkerPool`.
	Name *string `json:"name" tf:"name"`
	// Network configuration for the `WorkerPool`.
	// +optional
	NetworkConfig *WorkerPoolSpecNetworkConfig `json:"networkConfig,omitempty" tf:"network_config"`
	// The project for the resource
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
	// Output only. `WorkerPool` state. Possible values: STATE_UNSPECIFIED, PENDING, APPROVED, REJECTED, CANCELLED
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
	// Output only. A unique identifier for the `WorkerPool`.
	// +optional
	Uid *string `json:"uid,omitempty" tf:"uid"`
	// Output only. Time at which the request to update the `WorkerPool` was received.
	// +optional
	UpdateTime *string `json:"updateTime,omitempty" tf:"update_time"`
	// Configuration to be used for a creating workers in the `WorkerPool`.
	// +optional
	WorkerConfig *WorkerPoolSpecWorkerConfig `json:"workerConfig,omitempty" tf:"worker_config"`
}

func (*WorkerPoolSpecResource) DeepCopy added in v0.5.0

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

func (*WorkerPoolSpecResource) DeepCopyInto added in v0.5.0

func (in *WorkerPoolSpecResource) DeepCopyInto(out *WorkerPoolSpecResource)

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

type WorkerPoolSpecWorkerConfig added in v0.5.0

type WorkerPoolSpecWorkerConfig struct {
	// Size of the disk attached to the worker, in GB. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). Specify a value of up to 1000. If `0` is specified, Cloud Build will use a standard disk size.
	// +optional
	DiskSizeGb *int64 `json:"diskSizeGb,omitempty" tf:"disk_size_gb"`
	// Machine type of a worker, such as `n1-standard-1`. See [Worker pool config file](https://cloud.google.com/cloud-build/docs/custom-workers/worker-pool-config-file). If left blank, Cloud Build will use `n1-standard-1`.
	// +optional
	MachineType *string `json:"machineType,omitempty" tf:"machine_type"`
	// If true, workers are created without any public address, which prevents network egress to public IPs.
	// +optional
	NoExternalIP *bool `json:"noExternalIP,omitempty" tf:"no_external_ip"`
}

func (*WorkerPoolSpecWorkerConfig) DeepCopy added in v0.5.0

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

func (*WorkerPoolSpecWorkerConfig) DeepCopyInto added in v0.5.0

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

type WorkerPoolSpecWorkerConfigCodec added in v0.5.0

type WorkerPoolSpecWorkerConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (WorkerPoolSpecWorkerConfigCodec) Decode added in v0.5.0

func (WorkerPoolSpecWorkerConfigCodec) Encode added in v0.5.0

func (WorkerPoolSpecWorkerConfigCodec) IsEmpty added in v0.5.0

type WorkerPoolStatus added in v0.5.0

type WorkerPoolStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*WorkerPoolStatus) DeepCopy added in v0.5.0

func (in *WorkerPoolStatus) DeepCopy() *WorkerPoolStatus

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

func (*WorkerPoolStatus) DeepCopyInto added in v0.5.0

func (in *WorkerPoolStatus) DeepCopyInto(out *WorkerPoolStatus)

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