test-infra: k8s.io/test-infra/prow/apis/prowjobs/v1 Index | Files

package v1

import "k8s.io/test-infra/prow/apis/prowjobs/v1"

Package v1 is the v1 version of the API. +groupName=prow.k8s.io

Index

Package Files

doc.go register.go types.go zz_generated.deepcopy.go

Constants

const (
    PathStrategyLegacy   = "legacy"
    PathStrategySingle   = "single"
    PathStrategyExplicit = "explicit"
)

PathStrategy specifies minutia about how to construct the url. Usually consumed by gubernator/testgrid.

const (
    // DefaultClusterAlias specifies the default cluster key to schedule jobs.
    DefaultClusterAlias = "default"
)

Variables

var (
    // SchemeBuilder collects functions that add things to a scheme.
    SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
    // AddToScheme applies all the stored functions to the scheme.
    AddToScheme = SchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: prowjobs.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

func Kind Uses

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type DecorationConfig Uses

type DecorationConfig struct {
    // Timeout is how long the pod utilities will wait
    // before aborting a job with SIGINT.
    Timeout *Duration `json:"timeout,omitempty"`
    // GracePeriod is how long the pod utilities will wait
    // after sending SIGINT to send SIGKILL when aborting
    // a job. Only applicable if decorating the PodSpec.
    GracePeriod *Duration `json:"grace_period,omitempty"`

    // UtilityImages holds pull specs for utility container
    // images used to decorate a PodSpec.
    UtilityImages *UtilityImages `json:"utility_images,omitempty"`
    // GCSConfiguration holds options for pushing logs and
    // artifacts to GCS from a job.
    GCSConfiguration *GCSConfiguration `json:"gcs_configuration,omitempty"`
    // GCSCredentialsSecret is the name of the Kubernetes secret
    // that holds GCS push credentials.
    GCSCredentialsSecret string `json:"gcs_credentials_secret,omitempty"`
    // SSHKeySecrets are the names of Kubernetes secrets that contain
    // SSK keys which should be used during the cloning process.
    SSHKeySecrets []string `json:"ssh_key_secrets,omitempty"`
    // SSHHostFingerprints are the fingerprints of known SSH hosts
    // that the cloning process can trust.
    // Create with ssh-keyscan [-t rsa] host
    SSHHostFingerprints []string `json:"ssh_host_fingerprints,omitempty"`
    // SkipCloning determines if we should clone source code in the
    // initcontainers for jobs that specify refs
    SkipCloning *bool `json:"skip_cloning,omitempty"`
    // CookieFileSecret is the name of a kubernetes secret that contains
    // a git http.cookiefile, which should be used during the cloning process.
    CookiefileSecret string `json:"cookiefile_secret,omitempty"`
}

DecorationConfig specifies how to augment pods.

This is primarily used to provide automatic integration with gubernator and testgrid.

func (*DecorationConfig) ApplyDefault Uses

func (d *DecorationConfig) ApplyDefault(def *DecorationConfig) *DecorationConfig

ApplyDefault applies the defaults for the ProwJob decoration. If a field has a zero value, it replaces that with the value set in def.

func (*DecorationConfig) DeepCopy Uses

func (in *DecorationConfig) DeepCopy() *DecorationConfig

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

func (*DecorationConfig) DeepCopyInto Uses

func (in *DecorationConfig) DeepCopyInto(out *DecorationConfig)

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

func (*DecorationConfig) Validate Uses

func (d *DecorationConfig) Validate() error

Validate ensures all the values set in the DecorationConfig are valid.

type Duration Uses

type Duration struct {
    time.Duration
}

Duration is a wrapper around time.Duration that parses times in either 'integer number of nanoseconds' or 'duration string' formats and serializes to 'duration string' format.

func (*Duration) DeepCopy Uses

func (in *Duration) DeepCopy() *Duration

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

func (*Duration) DeepCopyInto Uses

func (in *Duration) DeepCopyInto(out *Duration)

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

func (*Duration) Get Uses

func (d *Duration) Get() time.Duration

func (*Duration) MarshalJSON Uses

func (d *Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON Uses

func (d *Duration) UnmarshalJSON(b []byte) error

type GCSConfiguration Uses

type GCSConfiguration struct {
    // Bucket is the GCS bucket to upload to
    Bucket string `json:"bucket,omitempty"`
    // PathPrefix is an optional path that follows the
    // bucket name and comes before any structure
    PathPrefix string `json:"path_prefix,omitempty"`
    // PathStrategy dictates how the org and repo are used
    // when calculating the full path to an artifact in GCS
    PathStrategy string `json:"path_strategy,omitempty"`
    // DefaultOrg is omitted from GCS paths when using the
    // legacy or simple strategy
    DefaultOrg string `json:"default_org,omitempty"`
    // DefaultRepo is omitted from GCS paths when using the
    // legacy or simple strategy
    DefaultRepo string `json:"default_repo,omitempty"`
    // MediaTypes holds additional extension media types to add to Go's
    // builtin's and the local system's defaults.  This maps extensions
    // to media types, for example: MediaTypes["log"] = "text/plain"
    MediaTypes map[string]string `json:"mediaTypes,omitempty"`

    // LocalOutputDir specifies a directory where files should be copied INSTEAD of uploading to GCS.
    // This option is useful for testing jobs that use the pod-utilities without actually uploading.
    LocalOutputDir string `json:"local_output_dir,omitempty"`
}

GCSConfiguration holds options for pushing logs and artifacts to GCS from a job.

func (*GCSConfiguration) ApplyDefault Uses

func (g *GCSConfiguration) ApplyDefault(def *GCSConfiguration) *GCSConfiguration

ApplyDefault applies the defaults for GCSConfiguration decorations. If a field has a zero value, it replaces that with the value set in def.

func (*GCSConfiguration) DeepCopy Uses

func (in *GCSConfiguration) DeepCopy() *GCSConfiguration

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

func (*GCSConfiguration) DeepCopyInto Uses

func (in *GCSConfiguration) DeepCopyInto(out *GCSConfiguration)

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

func (*GCSConfiguration) Validate Uses

func (g *GCSConfiguration) Validate() error

Validate ensures all the values set in the GCSConfiguration are valid.

type GitHubTeamSlug Uses

type GitHubTeamSlug struct {
    Slug string `json:"slug"`
    Org  string `json:"org"`
}

func (*GitHubTeamSlug) DeepCopy Uses

func (in *GitHubTeamSlug) DeepCopy() *GitHubTeamSlug

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

func (*GitHubTeamSlug) DeepCopyInto Uses

func (in *GitHubTeamSlug) DeepCopyInto(out *GitHubTeamSlug)

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

type JenkinsSpec Uses

type JenkinsSpec struct {
    GitHubBranchSourceJob bool `json:"github_branch_source_job,omitempty"`
}

JenkinsSpec is optional parameters for Jenkins jobs. Currently, the only parameter supported is for telling jenkins-operator that the job is generated by the https://go.cloudbees.com/docs/plugins/github-branch-source/#github-branch-source plugin

func (*JenkinsSpec) DeepCopy Uses

func (in *JenkinsSpec) DeepCopy() *JenkinsSpec

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

func (*JenkinsSpec) DeepCopyInto Uses

func (in *JenkinsSpec) DeepCopyInto(out *JenkinsSpec)

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

type ProwJob Uses

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

    Spec   ProwJobSpec   `json:"spec,omitempty"`
    Status ProwJobStatus `json:"status,omitempty"`
}

ProwJob contains the spec as well as runtime metadata.

func (*ProwJob) ClusterAlias Uses

func (j *ProwJob) ClusterAlias() string

ClusterAlias specifies the key in the clusters map to use.

This allows scheduling a prow job somewhere aside from the default build cluster.

func (*ProwJob) Complete Uses

func (j *ProwJob) Complete() bool

Complete returns true if the prow job has finished

func (*ProwJob) DeepCopy Uses

func (in *ProwJob) DeepCopy() *ProwJob

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

func (*ProwJob) DeepCopyInto Uses

func (in *ProwJob) DeepCopyInto(out *ProwJob)

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

func (*ProwJob) DeepCopyObject Uses

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

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

func (*ProwJob) SetComplete Uses

func (j *ProwJob) SetComplete()

SetComplete marks the job as completed (at time now).

type ProwJobAgent Uses

type ProwJobAgent string

ProwJobAgent specifies the controller (such as plank or jenkins-agent) that runs the job.

const (
    // KubernetesAgent means prow will create a pod to run this job.
    KubernetesAgent ProwJobAgent = "kubernetes"
    // JenkinsAgent means prow will schedule the job on jenkins.
    JenkinsAgent ProwJobAgent = "jenkins"
    // KnativeBuildAgent means prow will schedule the job via a build-crd resource.
    KnativeBuildAgent ProwJobAgent = "knative-build"
    // TektonAgent means prow will schedule the job via a tekton PipelineRun CRD resource.
    TektonAgent = "tekton-pipeline"
)

type ProwJobList Uses

type ProwJobList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata"`

    Items []ProwJob `json:"items"`
}

ProwJobList is a list of ProwJob resources

func (*ProwJobList) DeepCopy Uses

func (in *ProwJobList) DeepCopy() *ProwJobList

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

func (*ProwJobList) DeepCopyInto Uses

func (in *ProwJobList) DeepCopyInto(out *ProwJobList)

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

func (*ProwJobList) DeepCopyObject Uses

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

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

type ProwJobSpec Uses

type ProwJobSpec struct {
    // Type is the type of job and informs how
    // the jobs is triggered
    Type ProwJobType `json:"type,omitempty"`
    // Agent determines which controller fulfills
    // this specific ProwJobSpec and runs the job
    Agent ProwJobAgent `json:"agent,omitempty"`
    // Cluster is which Kubernetes cluster is used
    // to run the job, only applicable for that
    // specific agent
    Cluster string `json:"cluster,omitempty"`
    // Namespace defines where to create pods/resources.
    Namespace string `json:"namespace,omitempty"`
    // Job is the name of the job
    Job string `json:"job,omitempty"`
    // Refs is the code under test, determined at
    // runtime by Prow itself
    Refs *Refs `json:"refs,omitempty"`
    // ExtraRefs are auxiliary repositories that
    // need to be cloned, determined from config
    ExtraRefs []Refs `json:"extra_refs,omitempty"`
    // Report determines if the result of this job should
    // be posted as a status on GitHub
    Report bool `json:"report,omitempty"`
    // Context is the name of the status context used to
    // report back to GitHub
    Context string `json:"context,omitempty"`
    // RerunCommand is the command a user would write to
    // trigger this job on their pull request
    RerunCommand string `json:"rerun_command,omitempty"`
    // MaxConcurrency restricts the total number of instances
    // of this job that can run in parallel at once
    MaxConcurrency int `json:"max_concurrency,omitempty"`
    // ErrorOnEviction indicates that the ProwJob should be completed and given
    // the ErrorState status if the pod that is executing the job is evicted.
    // If this field is unspecified or false, a new pod will be created to replace
    // the evicted one.
    ErrorOnEviction bool `json:"error_on_eviction,omitempty"`

    // PodSpec provides the basis for running the test under
    // a Kubernetes agent
    PodSpec *corev1.PodSpec `json:"pod_spec,omitempty"`

    // BuildSpec provides the basis for running the test as
    // a build-crd resource
    // https://github.com/knative/build
    BuildSpec *buildv1alpha1.BuildSpec `json:"build_spec,omitempty"`

    // JenkinsSpec holds configuration specific to Jenkins jobs
    JenkinsSpec *JenkinsSpec `json:"jenkins_spec,omitempty"`

    // PipelineRunSpec provides the basis for running the test as
    // a pipeline-crd resource
    // https://github.com/tektoncd/pipeline
    PipelineRunSpec *pipelinev1alpha1.PipelineRunSpec `json:"pipeline_run_spec,omitempty"`

    // DecorationConfig holds configuration options for
    // decorating PodSpecs that users provide
    DecorationConfig *DecorationConfig `json:"decoration_config,omitempty"`

    // ReporterConfig holds reporter-specific configuration
    ReporterConfig *ReporterConfig `json:"reporter_config,omitempty"`

    // RerunAuthConfig holds information about which users can rerun the job
    RerunAuthConfig RerunAuthConfig `json:"rerun_auth_config,omitempty"`

    // Hidden specifies if the Job is considered hidden.
    // Hidden jobs are only shown by deck instances that have the
    // `--hiddenOnly=true` or `--show-hidden=true` flag set.
    // Presubmits and Postsubmits can also be set to hidden by
    // adding their repository in Decks `hidden_repo` setting.
    Hidden bool `json:"hidden,omitempty"`
}

ProwJobSpec configures the details of the prow job.

Details include the podspec, code to clone, the cluster it runs any child jobs, concurrency limitations, etc.

func (*ProwJobSpec) DeepCopy Uses

func (in *ProwJobSpec) DeepCopy() *ProwJobSpec

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

func (*ProwJobSpec) DeepCopyInto Uses

func (in *ProwJobSpec) DeepCopyInto(out *ProwJobSpec)

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

type ProwJobState Uses

type ProwJobState string

ProwJobState specifies whether the job is running

const (
    // TriggeredState means the job has been created but not yet scheduled.
    TriggeredState ProwJobState = "triggered"
    // PendingState means the job is scheduled but not yet running.
    PendingState ProwJobState = "pending"
    // SuccessState means the job completed without error (exit 0)
    SuccessState ProwJobState = "success"
    // FailureState means the job completed with errors (exit non-zero)
    FailureState ProwJobState = "failure"
    // AbortedState means prow killed the job early (new commit pushed, perhaps).
    AbortedState ProwJobState = "aborted"
    // ErrorState means the job could not schedule (bad config, perhaps).
    ErrorState ProwJobState = "error"
)

Various job states.

type ProwJobStatus Uses

type ProwJobStatus struct {
    // StartTime is equal to the creation time of the ProwJob
    StartTime metav1.Time `json:"startTime,omitempty"`
    // PendingTime is the timestamp for when the job moved from triggered to pending
    PendingTime *metav1.Time `json:"pendingTime,omitempty"`
    // CompletionTime is the timestamp for when the job goes to a final state
    CompletionTime *metav1.Time `json:"completionTime,omitempty"`
    State          ProwJobState `json:"state,omitempty"`
    Description    string       `json:"description,omitempty"`
    URL            string       `json:"url,omitempty"`

    // PodName applies only to ProwJobs fulfilled by
    // plank. This field should always be the same as
    // the ProwJob.ObjectMeta.Name field.
    PodName string `json:"pod_name,omitempty"`

    // BuildID is the build identifier vended either by tot
    // or the snowflake library for this job and used as an
    // identifier for grouping artifacts in GCS for views in
    // TestGrid and Gubernator. Idenitifiers vended by tot
    // are monotonically increasing whereas identifiers vended
    // by the snowflake library are not.
    BuildID string `json:"build_id,omitempty"`

    // JenkinsBuildID applies only to ProwJobs fulfilled
    // by the jenkins-operator. This field is the build
    // identifier that Jenkins gave to the build for this
    // ProwJob.
    JenkinsBuildID string `json:"jenkins_build_id,omitempty"`

    // PrevReportStates stores the previous reported prowjob state per reporter
    // So crier won't make duplicated report attempt
    PrevReportStates map[string]ProwJobState `json:"prev_report_states,omitempty"`
}

ProwJobStatus provides runtime metadata, such as when it finished, whether it is running, etc.

func (*ProwJobStatus) DeepCopy Uses

func (in *ProwJobStatus) DeepCopy() *ProwJobStatus

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

func (*ProwJobStatus) DeepCopyInto Uses

func (in *ProwJobStatus) DeepCopyInto(out *ProwJobStatus)

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

type ProwJobType Uses

type ProwJobType string

ProwJobType specifies how the job is triggered.

const (
    // PresubmitJob means it runs on unmerged PRs.
    PresubmitJob ProwJobType = "presubmit"
    // PostsubmitJob means it runs on each new commit.
    PostsubmitJob ProwJobType = "postsubmit"
    // Periodic job means it runs on a time-basis, unrelated to git changes.
    PeriodicJob ProwJobType = "periodic"
    // BatchJob tests multiple unmerged PRs at the same time.
    BatchJob ProwJobType = "batch"
)

Various job types.

type Pull Uses

type Pull struct {
    Number int    `json:"number"`
    Author string `json:"author"`
    SHA    string `json:"sha"`
    Title  string `json:"title,omitempty"`

    // Ref is git ref can be checked out for a change
    // for example,
    // github: pull/123/head
    // gerrit: refs/changes/00/123/1
    Ref string `json:"ref,omitempty"`
    // Link links to the pull request itself.
    Link string `json:"link,omitempty"`
    // CommitLink links to the commit identified by the SHA.
    CommitLink string `json:"commit_link,omitempty"`
    // AuthorLink links to the author of the pull request.
    AuthorLink string `json:"author_link,omitempty"`
}

Pull describes a pull request at a particular point in time.

func (*Pull) DeepCopy Uses

func (in *Pull) DeepCopy() *Pull

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

func (*Pull) DeepCopyInto Uses

func (in *Pull) DeepCopyInto(out *Pull)

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

type Refs Uses

type Refs struct {
    // Org is something like kubernetes or k8s.io
    Org string `json:"org"`
    // Repo is something like test-infra
    Repo string `json:"repo"`
    // RepoLink links to the source for Repo.
    RepoLink string `json:"repo_link,omitempty"`

    BaseRef string `json:"base_ref,omitempty"`
    BaseSHA string `json:"base_sha,omitempty"`
    // BaseLink is a link to the commit identified by BaseSHA.
    BaseLink string `json:"base_link,omitempty"`

    Pulls []Pull `json:"pulls,omitempty"`

    // PathAlias is the location under <root-dir>/src
    // where this repository is cloned. If this is not
    // set, <root-dir>/src/github.com/org/repo will be
    // used as the default.
    PathAlias string `json:"path_alias,omitempty"`

    // WorkDir defines if the location of the cloned
    // repository will be used as the default working
    // directory.
    WorkDir bool `json:"workdir,omitempty"`

    // CloneURI is the URI that is used to clone the
    // repository. If unset, will default to
    // `https://github.com/org/repo.git`.
    CloneURI string `json:"clone_uri,omitempty"`
    // SkipSubmodules determines if submodules should be
    // cloned when the job is run. Defaults to true.
    SkipSubmodules bool `json:"skip_submodules,omitempty"`
    // CloneDepth is the depth of the clone that will be used.
    // A depth of zero will do a full clone.
    CloneDepth int `json:"clone_depth,omitempty"`
}

Refs describes how the repo was constructed.

func (*Refs) DeepCopy Uses

func (in *Refs) DeepCopy() *Refs

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

func (*Refs) DeepCopyInto Uses

func (in *Refs) DeepCopyInto(out *Refs)

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

func (Refs) String Uses

func (r Refs) String() string

type ReporterConfig Uses

type ReporterConfig struct {
    Slack *SlackReporterConfig `json:"slack,omitempty"`
}

func (*ReporterConfig) DeepCopy Uses

func (in *ReporterConfig) DeepCopy() *ReporterConfig

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

func (*ReporterConfig) DeepCopyInto Uses

func (in *ReporterConfig) DeepCopyInto(out *ReporterConfig)

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

type RerunAuthConfig Uses

type RerunAuthConfig struct {
    // If AllowAnyone is set to true, any user can rerun the job
    AllowAnyone bool `json:"allow_anyone,omitempty"`
    // GitHubTeams contains IDs of GitHub teams of users who can rerun the job
    // If you know the name of a team and the org it belongs to,
    // you can look up its ID using this command, where the team slug is the hyphenated name:
    // curl -H "Authorization: token <token>" "https://api.github.com/orgs/<org-name>/teams/<team slug>"
    // or, to list all teams in a given org, use
    // curl -H "Authorization: token <token>" "https://api.github.com/orgs/<org-name>/teams"
    GitHubTeamIDs []int `json:"github_team_ids,omitempty"`
    // GitHubTeamSlugs contains slugs and orgs of teams of users who can rerun the job
    GitHubTeamSlugs []GitHubTeamSlug `json:"github_team_slugs,omitempty"`
    // GitHubUsers contains names of individual users who can rerun the job
    GitHubUsers []string `json:"github_users,omitempty"`
}

func (*RerunAuthConfig) DeepCopy Uses

func (in *RerunAuthConfig) DeepCopy() *RerunAuthConfig

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

func (*RerunAuthConfig) DeepCopyInto Uses

func (in *RerunAuthConfig) DeepCopyInto(out *RerunAuthConfig)

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

func (*RerunAuthConfig) IsAuthorized Uses

func (rac *RerunAuthConfig) IsAuthorized(user string, cli prowgithub.RerunClient) (bool, error)

IsSpecifiedUser returns true if AllowAnyone is set to true or if the given user is specified as a permitted GitHubUser

type SlackReporterConfig Uses

type SlackReporterConfig struct {
    Channel string `json:"channel"`
}

func (*SlackReporterConfig) DeepCopy Uses

func (in *SlackReporterConfig) DeepCopy() *SlackReporterConfig

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

func (*SlackReporterConfig) DeepCopyInto Uses

func (in *SlackReporterConfig) DeepCopyInto(out *SlackReporterConfig)

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

type UtilityImages Uses

type UtilityImages struct {
    // CloneRefs is the pull spec used for the clonerefs utility
    CloneRefs string `json:"clonerefs,omitempty"`
    // InitUpload is the pull spec used for the initupload utility
    InitUpload string `json:"initupload,omitempty"`
    // Entrypoint is the pull spec used for the entrypoint utility
    Entrypoint string `json:"entrypoint,omitempty"`
    // sidecar is the pull spec used for the sidecar utility
    Sidecar string `json:"sidecar,omitempty"`
}

UtilityImages holds pull specs for the utility images to be used for a job

func (*UtilityImages) ApplyDefault Uses

func (u *UtilityImages) ApplyDefault(def *UtilityImages) *UtilityImages

ApplyDefault applies the defaults for the UtilityImages decorations. If a field has a zero value, it replaces that with the value set in def.

func (*UtilityImages) DeepCopy Uses

func (in *UtilityImages) DeepCopy() *UtilityImages

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

func (*UtilityImages) DeepCopyInto Uses

func (in *UtilityImages) DeepCopyInto(out *UtilityImages)

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

Package v1 imports 15 packages (graph) and is imported by 83 packages. Updated 2019-10-17. Refresh now. Tools for package owners.