Documentation
¶
Overview ¶
Package v1alpha3 contains API Schema definitions for the devops.kubesphere.io v1alpha3 API group +kubebuilder:object:generate=true +groupName=devops.kubesphere.io
Index ¶
- Constants
- Variables
- func BuildPipelineRunIdentifier(pipelineName, scmRefName, runID string) string
- func GetSupportedCredentialTypes() []v1.SecretType
- func Resource(resource string) schema.GroupResource
- type Action
- type AddStrategySpec
- type Addon
- type AddonInstallStrategy
- type AddonList
- type AddonSpec
- type AddonStatus
- type AddonStrategy
- type AddonStrategyList
- type ApplicationDestination
- type Argo
- type BitbucketServerSource
- type ClusterStepTemplate
- type ClusterStepTemplateList
- type ClusterTemplate
- type ClusterTemplateList
- type Condition
- type ConditionStatus
- type ConditionType
- type DevOpsProject
- type DevOpsProjectList
- type DevOpsProjectSpec
- type DevOpsProjectStatus
- type DiscarderProperty
- type DiscoverPRFromForks
- type GenericVariable
- type GenericWebhook
- type GitCloneOption
- type GitRepository
- type GitRepositoryList
- type GitRepositorySpec
- type GitRepositoryStatus
- type GitSource
- type GithubSource
- type GitlabSource
- type JWTToken
- type LastChanges
- type MultiBranchJobTrigger
- type MultiBranchPipeline
- type NoScmPipeline
- type OrphanedResourceKey
- type OrphanedResourcesMonitorSettings
- type Parameter
- type ParameterDefinition
- type ParameterInStep
- type ParameterType
- type ParameterValidation
- type Pipeline
- type PipelineList
- type PipelineRun
- func (pr *PipelineRun) Buildable() bool
- func (in *PipelineRun) DeepCopy() *PipelineRun
- func (in *PipelineRun) DeepCopyInto(out *PipelineRun)
- func (in *PipelineRun) DeepCopyObject() runtime.Object
- func (pr *PipelineRun) GetPipelineRunID() (pipelineRunID string, exist bool)
- func (pr *PipelineRun) GetPipelineRunIdentifier() string
- func (pr *PipelineRun) GetRefName() string
- func (pr *PipelineRun) HasCompleted() bool
- func (pr *PipelineRun) HasStarted() bool
- func (pr *PipelineRun) LabelAsAnOrphan()
- type PipelineRunList
- type PipelineRunSpec
- type PipelineRunStatus
- type PipelineSpec
- type PipelineStatus
- type PipelineType
- type ProjectRole
- type RefType
- type RemoteTrigger
- type RunPhase
- type SCM
- type SecretInStep
- type SignatureKey
- type SingleSvnSource
- type StepTemplatePhase
- type StepTemplateSpec
- type StepTemplateStatus
- type SvnSource
- type SyncWindow
- type SyncWindows
- type Template
- type TemplateList
- type TemplateObject
- type TemplateParameter
- type TemplateSpec
- type TemplateStatus
- type TimerTrigger
- type Webhook
- type WebhookList
- type WebhookSpec
Constants ¶
const ( CredentialFinalizerName = "finalizers.kubesphere.io/credential" DevOpsCredentialPrefix = "credential.devops.kubesphere.io/" DevOpsCredentialDataHash = DevOpsCredentialPrefix + "datahash" // SecretTypeBasicAuth contains data needed for basic authentication. // // Required at least one of fields: // - Secret.Data["username"] - username used for authentication // - Secret.Data["password"] - password or token needed for authentication SecretTypeBasicAuth v1.SecretType = DevOpsCredentialPrefix + "basic-auth" // BasicAuthUsernameKey is the key of the username for SecretTypeBasicAuth secrets BasicAuthUsernameKey = "username" // BasicAuthPasswordKey is the key of the password or token for SecretTypeBasicAuth secrets BasicAuthPasswordKey = "password" // SecretTypeSSHAuth contains data needed for ssh authentication. // // Required at least one of fields: // - Secret.Data["username"] - username used for authentication // - Secret.Data["passphrase"] - passphrase needed for authentication // - Secret.Data["privatekey"] - privatekey needed for authentication SecretTypeSSHAuth v1.SecretType = DevOpsCredentialPrefix + "ssh-auth" // SSHAuthUsernameKey is the key of the username for SecretTypeSSHAuth secrets SSHAuthUsernameKey = "username" // SSHAuthPrivateKey is the key of the passphrase for SecretTypeSSHAuth secrets SSHAuthPassphraseKey = "passphrase" // SSHAuthPrivateKey is the key of the privatekey for SecretTypeSSHAuth secrets SSHAuthPrivateKey = "private_key" // SecretTypeSecretText contains data. // // Required at least one of fields: // - Secret.Data["secret"] - secret SecretTypeSecretText v1.SecretType = DevOpsCredentialPrefix + "secret-text" // SecretTextSecretKey is the key of the secret for SecretTypeSecretText secrets SecretTextSecretKey = "secret" // SecretTypeKubeConfig contains data. // // Required at least one of fields: // - Secret.Data["secret"] - secret SecretTypeKubeConfig v1.SecretType = DevOpsCredentialPrefix + "kubeconfig" // KubeConfigSecretKey is the key of the secret for SecretTypeKubeConfig secrets KubeConfigSecretKey = "content" // CredentialAutoSyncAnnoKey is used to indicate whether the secret is automatically synchronized to devops. // In the old version, the credential is stored in jenkins and cannot be obtained. // This field is set to ensure that the secret is not overwritten by a nil value. CredentialAutoSyncAnnoKey = DevOpsCredentialPrefix + "autosync" CredentialSyncStatusAnnoKey = DevOpsCredentialPrefix + "syncstatus" CredentialSyncTimeAnnoKey = DevOpsCredentialPrefix + "synctime" CredentialSyncMsgAnnoKey = DevOpsCredentialPrefix + "syncmsg" )
* We use a special type of secret as a credential for DevOps. This file will not contain CRD, but the credential type constants and their fields.
const ( ResourceKindDevOpsProject = "DevOpsProject" ResourceSingularDevOpsProject = "devopsproject" ResourcePluralDevOpsProject = "devopsprojects" DevOpsProjectPrefix = "devopsproject.devops.kubesphere.io/" DevOpsProjectFinalizerName = "devopsproject.finalizers.kubesphere.io" DevOpeProjectSyncStatusAnnoKey = DevOpsProjectPrefix + "syncstatus" DevOpeProjectSyncTimeAnnoKey = DevOpsProjectPrefix + "synctime" )
const ( // GroupName is the Kubernetes resource group name for Devops types. GroupName = "devops.kubesphere.io" // JenkinsPipelineRunIDAnnoKey is annotation key of Jenkins PipelineRun ID. JenkinsPipelineRunIDAnnoKey = GroupName + "/jenkins-pipelinerun-id" // JenkinsPipelineRunStatusAnnoKey is annotation key of status of Jenkins PipelineRun. JenkinsPipelineRunStatusAnnoKey = GroupName + "/jenkins-pipelinerun-status" // JenkinsPipelineRunStagesStatusAnnoKey is annotation key of Jenkins stages' status of Jenkins PipelineRun. JenkinsPipelineRunStagesStatusAnnoKey = GroupName + "/jenkins-pipelinerun-stages-status" // PipelineRunOrphanLabelKey is label key of orphan Jenkins PipelineRun which type of value is bool. PipelineRunOrphanLabelKey = GroupName + "/jenkins-pipelinerun-orphan" // PipelineNameLabelKey is label key of Pipeline name. PipelineNameLabelKey = GroupName + "/pipeline" // PipelineRunCreatorAnnoKey is annotation key of PipelineRun's creator PipelineRunCreatorAnnoKey = GroupName + "/creator" // PipelineRunSCMRefNameField is the field name of SCM reference name in PipelineRun spec. PipelineRunSCMRefNameField = "spec.scm.ref-name" // PipelineRunIdentifierIndexerName is an indexer name of PipelineRun identifier. PipelineRunIdentifierIndexerName = "pipelinerun.identifier" )
const ( ResourceKindPipeline = "Pipeline" ResourcePluralPipeline = "pipelines" PipelinePrefix = "pipeline.devops.kubesphere.io/" PipelineSpecHash = PipelinePrefix + "spechash" PipelineSyncStatusAnnoKey = PipelinePrefix + "syncstatus" PipelineSyncTimeAnnoKey = PipelinePrefix + "synctime" PipelineSyncMsgAnnoKey = PipelinePrefix + "syncmsg" PipelineLastChanges = PipelinePrefix + "last-changes" // PipelineJenkinsMetadataAnnoKey is the annotation key of Jenkins Pipeline data. PipelineJenkinsMetadataAnnoKey = PipelinePrefix + "jenkins-metadata" // PipelineJenkinsBranchesAnnoKey is the annotation key of Jenkins Pipeline branches. PipelineJenkinsBranchesAnnoKey = PipelinePrefix + "jenkins-branches" // PipelineRequestToSyncRunsAnnoKey is the annotation key of requesting to synchronize PipelineRun after a dedicated time. PipelineRequestToSyncRunsAnnoKey = PipelinePrefix + "request-to-sync-pipelineruns" // PipelineJenkinsfileValueAnnoKey is the annotation key of the Jenkinsfile content PipelineJenkinsfileValueAnnoKey = PipelinePrefix + "jenkinsfile" // PipelineJenkinsfileEditModeAnnoKey is the annotation key of the Jenkinsfile edit mode PipelineJenkinsfileEditModeAnnoKey = PipelinePrefix + "jenkinsfile.edit.mode" // PipelineJenkinsfileValidateAnnoKey is the annotation key of the Jenkinsfile validate, success or failure PipelineJenkinsfileValidateAnnoKey = PipelinePrefix + "jenkinsfile.validate" // PipelineJenkinsfileEditModeJSON indicates the Jenkinsfile editing mode is JSON PipelineJenkinsfileEditModeJSON = "json" // PipelineJenkinsfileEditModeRaw indicates the Jenkinsfile editing mode is groovy PipelineJenkinsfileEditModeRaw = "raw" // PipelineJenkinsfileValidateSuccess indicates the Jenkinsfile validate is success PipelineJenkinsfileValidateSuccess = "success" // PipelineJenkinsfileValidateFailure indicates the Jenkinsfile validate is failure PipelineJenkinsfileValidateFailure = "failure" )
const ( SourceTypeSVN = "svn" SourceTypeGit = "git" SourceTypeSingleSVN = "single_svn" SourceTypeGitlab = "gitlab" SourceTypeGithub = "github" SourceTypeBitbucket = "bitbucket_server" )
const ( // Started indicates PipelineRun has been triggered Started string = "Started" // Updated indicates PipelineRun's running data has been updated Updated string = "Updated" // TriggerFailed indicates that it failed to trigger build API TriggerFailed string = "TriggerFailed" // RetrieveFailed indicates that it failed to retrieve the latest running data RetrieveFailed string = "RetrieveFailed" )
Valid values for event reasons (new reasons could be added in future)
const AddonFinalizerName = "addon.finalizers.kubesphere.io"
AddonFinalizerName is the name of Addone finalizer
const AnnotationKeyGitRepos = "devops.kubesphere.io/git-repositories"
AnnotationKeyGitRepos are the references of target git repositories
const AnnotationKeyWebhookUpdates = "devops.kubesphere.io/webhook-updates"
AnnotationKeyWebhookUpdates is a signal that should update the webhooks
const GitRepoFinalizerName = "finalizer.gitrepository.devops.kubesphere.io"
GitRepoFinalizerName is the finalizer name of the git repository
const PipelineFinalizerName = "pipeline.finalizers.kubesphere.io"
const PipelineRunFinalizerName = "pipelinerun.finalizers.kubesphere.io"
PipelineRunFinalizerName is the name of PipelineRun finalizer
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha3"} // 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 )
var DefaultSecretKeyMapping = map[string]string{
"passwordVariable": "PASSWORDVARIABLE",
"usernameVariable": "USERNAMEVARIABLE",
"variable": "VARIABLE",
"sshUserPrivateKey": "SSHUSERPRIVATEKEY",
"keyFileVariable": "KEYFILEVARIABLE",
"passphraseVariable": "PASSPHRASEVARIABLE",
}
DefaultSecretKeyMapping mainly used as the Jenkinsfile environment variables
Functions ¶
func BuildPipelineRunIdentifier ¶
BuildPipelineRunIdentifier builds PipelineRun identifier with Pipeline name, SCM reference name and run ID.
func GetSupportedCredentialTypes ¶
func GetSupportedCredentialTypes() []v1.SecretType
GetSupportedCredentialTypes gets all supported credential types. The return value is unmodifiable.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type AddStrategySpec ¶
type AddStrategySpec struct { Available bool `json:"available,omitempty"` Type AddonInstallStrategy `json:"type,omitempty"` YAML string `json:"yaml,omitempty"` Operator v1.ObjectReference `json:"operator,omitempty"` SimpleOperator v1.ObjectReference `json:"simpleOperator,omitempty"` HelmRepo string `json:"helmRepo,omitempty"` Template string `json:"template,omitempty"` Parameters map[string]string `json:"parameters,omitempty"` }
AddStrategySpec is the specification of an AddonStrategy
func (*AddStrategySpec) DeepCopy ¶
func (in *AddStrategySpec) DeepCopy() *AddStrategySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddStrategySpec.
func (*AddStrategySpec) DeepCopyInto ¶
func (in *AddStrategySpec) DeepCopyInto(out *AddStrategySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Addon ¶
type Addon struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AddonSpec `json:"spec,omitempty"` Status AddonStatus `json:"status,omitempty"` }
Addon represents a plugin (addon) of ks-devops
func (*Addon) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Addon.
func (*Addon) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Addon) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AddonInstallStrategy ¶
type AddonInstallStrategy string
AddonInstallStrategy represents the addon installation strategy
const ( // AddonInstallStrategySimple represents a single YAML file to install addon AddonInstallStrategySimple AddonInstallStrategy = "simple" // AddonInstallStrategyHelm represents to install via helm AddonInstallStrategyHelm AddonInstallStrategy = "helm" // AddonInstallStrategyOperator represents the full operator feature AddonInstallStrategyOperator AddonInstallStrategy = "operator" // AddonInstallStrategySimpleOperator represents a single Operator image to install addon AddonInstallStrategySimpleOperator AddonInstallStrategy = "simple-operator" )
func (AddonInstallStrategy) IsValid ¶
func (a AddonInstallStrategy) IsValid() bool
IsValid checks if this is valid
type AddonList ¶
type AddonList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Addon `json:"items"` }
AddonList contains a list of AddonStrategy
func (*AddonList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonList.
func (*AddonList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddonList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AddonSpec ¶
type AddonSpec struct { ExternalAddress string `json:"externalAddress,omitempty"` Version string `json:"version,omitempty"` Strategy v1.LocalObjectReference `json:"strategy,omitempty"` Parameters map[string]string `json:"parameters,omitempty"` }
AddonSpec is the specification of an Addon
func (*AddonSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonSpec.
func (*AddonSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddonStatus ¶
type AddonStatus struct {
Phase string `json:"phase,omitempty"`
}
AddonStatus represents the status of an addon
func (*AddonStatus) DeepCopy ¶
func (in *AddonStatus) DeepCopy() *AddonStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonStatus.
func (*AddonStatus) DeepCopyInto ¶
func (in *AddonStatus) DeepCopyInto(out *AddonStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AddonStrategy ¶
type AddonStrategy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AddStrategySpec `json:"spec,omitempty"` }
AddonStrategy represents an addonStrategy
func (*AddonStrategy) DeepCopy ¶
func (in *AddonStrategy) DeepCopy() *AddonStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonStrategy.
func (*AddonStrategy) DeepCopyInto ¶
func (in *AddonStrategy) DeepCopyInto(out *AddonStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddonStrategy) DeepCopyObject ¶
func (in *AddonStrategy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AddonStrategyList ¶
type AddonStrategyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AddonStrategy `json:"items"` }
AddonStrategyList contains a list of AddonStrategy
func (*AddonStrategyList) DeepCopy ¶
func (in *AddonStrategyList) DeepCopy() *AddonStrategyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddonStrategyList.
func (*AddonStrategyList) DeepCopyInto ¶
func (in *AddonStrategyList) DeepCopyInto(out *AddonStrategyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddonStrategyList) DeepCopyObject ¶
func (in *AddonStrategyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationDestination ¶
type ApplicationDestination struct { // Server specifies the URL of the target cluster and must be set to the Kubernetes control plane API Server string `json:"server,omitempty"` // Namespace specifies the target namespace for the application's resources. // The namespace will only be set for namespace-scoped resources that have not set a value for .metadata.namespace Namespace string `json:"namespace,omitempty"` // Name is an alternate way of specifying the target cluster by its symbolic name Name string `json:"name,omitempty"` }
ApplicationDestination holds information about the application's destination
func (*ApplicationDestination) DeepCopy ¶
func (in *ApplicationDestination) DeepCopy() *ApplicationDestination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationDestination.
func (*ApplicationDestination) DeepCopyInto ¶
func (in *ApplicationDestination) DeepCopyInto(out *ApplicationDestination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Argo ¶
type Argo struct { // SourceRepos contains list of repository URLs which can be used for deployment SourceRepos []string `json:"sourceRepos,omitempty"` // Destinations contains list of destinations available for deployment Destinations []ApplicationDestination `json:"destinations,omitempty"` // Description contains optional project description Description string `json:"description,omitempty"` // Roles are user defined RBAC roles associated with this project Roles []ProjectRole `json:"roles,omitempty" protobuf:"bytes,4,rep,name=roles"` // ClusterResourceWhitelist contains list of whitelisted cluster level resources ClusterResourceWhitelist []metav1.GroupKind `json:"clusterResourceWhitelist,omitempty"` // NamespaceResourceBlacklist contains list of blacklisted namespace level resources NamespaceResourceBlacklist []metav1.GroupKind `json:"namespaceResourceBlacklist,omitempty"` // OrphanedResources specifies if controller should monitor orphaned resources of apps in this project OrphanedResources *OrphanedResourcesMonitorSettings `json:"orphanedResources,omitempty"` // SyncWindows controls when syncs can be run for apps in this project SyncWindows SyncWindows `json:"syncWindows,omitempty"` // NamespaceResourceWhitelist contains list of whitelisted namespace level resources NamespaceResourceWhitelist []metav1.GroupKind `json:"namespaceResourceWhitelist,omitempty"` // SignatureKeys contains a list of PGP key IDs that commits in Git must be signed with in order to be allowed for sync SignatureKeys []SignatureKey `json:"signatureKeys,omitempty"` // ClusterResourceBlacklist contains list of blacklisted cluster level resources ClusterResourceBlacklist []metav1.GroupKind `json:"clusterResourceBlacklist,omitempty"` }
Argo represents the Argo CD specification
func (*Argo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Argo.
func (*Argo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BitbucketServerSource ¶
type BitbucketServerSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Owner string `json:"owner,omitempty" mapstructure:"owner" description:"owner of github repo"` Repo string `json:"repo,omitempty" mapstructure:"repo" description:"repo name of github repo"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access github source"` ApiUri string `` /* 154-byte string literal not displayed */ DiscoverBranches int `json:"discover_branches,omitempty" mapstructure:"discover_branches" description:"Discover branch configuration"` DiscoverPRFromOrigin int `` /* 126-byte string literal not displayed */ DiscoverPRFromForks *DiscoverPRFromForks `json:"discover_pr_from_forks,omitempty" mapstructure:"discover_pr_from_forks" description:"Discover fork PR configuration"` DiscoverTags bool `json:"discover_tags,omitempty" mapstructure:"discover_tags" description:"Discover tag configuration"` CloneOption *GitCloneOption `json:"git_clone_option,omitempty" mapstructure:"git_clone_option" description:"advavced git clone options"` RegexFilter string `` /* 135-byte string literal not displayed */ AcceptJenkinsNotification bool `` /* 160-byte string literal not displayed */ }
func (*BitbucketServerSource) DeepCopy ¶
func (in *BitbucketServerSource) DeepCopy() *BitbucketServerSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BitbucketServerSource.
func (*BitbucketServerSource) DeepCopyInto ¶
func (in *BitbucketServerSource) DeepCopyInto(out *BitbucketServerSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterStepTemplate ¶
type ClusterStepTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StepTemplateSpec `json:"spec,omitempty"` Status StepTemplateStatus `json:"status,omitempty"` }
ClusterStepTemplate is the Schema for the steptemplates API
func (*ClusterStepTemplate) DeepCopy ¶
func (in *ClusterStepTemplate) DeepCopy() *ClusterStepTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStepTemplate.
func (*ClusterStepTemplate) DeepCopyInto ¶
func (in *ClusterStepTemplate) DeepCopyInto(out *ClusterStepTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterStepTemplate) DeepCopyObject ¶
func (in *ClusterStepTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterStepTemplateList ¶
type ClusterStepTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterStepTemplate `json:"items"` }
ClusterStepTemplateList contains a list of ClusterStepTemplate
func (*ClusterStepTemplateList) DeepCopy ¶
func (in *ClusterStepTemplateList) DeepCopy() *ClusterStepTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStepTemplateList.
func (*ClusterStepTemplateList) DeepCopyInto ¶
func (in *ClusterStepTemplateList) DeepCopyInto(out *ClusterStepTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterStepTemplateList) DeepCopyObject ¶
func (in *ClusterStepTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterTemplate ¶
type ClusterTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TemplateSpec `json:"spec,omitempty"` Status TemplateStatus `json:"status,omitempty"` }
ClusterTemplate is the Schema for the clustertemplates API
func (*ClusterTemplate) DeepCopy ¶
func (in *ClusterTemplate) DeepCopy() *ClusterTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplate.
func (*ClusterTemplate) DeepCopyInto ¶
func (in *ClusterTemplate) DeepCopyInto(out *ClusterTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTemplate) DeepCopyObject ¶
func (in *ClusterTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterTemplate) TemplateSpec ¶
func (template *ClusterTemplate) TemplateSpec() TemplateSpec
TemplateSpec returns Spec field of ClusterTemplate.
type ClusterTemplateList ¶
type ClusterTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterTemplate `json:"items"` }
ClusterTemplateList contains a list of ClusterTemplate
func (*ClusterTemplateList) DeepCopy ¶
func (in *ClusterTemplateList) DeepCopy() *ClusterTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateList.
func (*ClusterTemplateList) DeepCopyInto ¶
func (in *ClusterTemplateList) DeepCopyInto(out *ClusterTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTemplateList) DeepCopyObject ¶
func (in *ClusterTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Condition ¶
type Condition struct { // Type is the type of the condition. Type ConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ConditionType"` // Status is the status of the condition. // Can be True, False, Unknown. Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"` // Last time we probed the condition. // +optional LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` // Unique, one-word, CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` // Human-readable message indicating details about last transition. // +optional Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` }
Condition contains details for the current condition of this PipelineRun. Reference from PodCondition
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionStatus ¶
type ConditionStatus string
ConditionStatus is the status of the current condition.
const ( // ConditionTrue means a resource is in the condition. ConditionTrue ConditionStatus = "True" // ConditionFalse means a resource is not in the condition. ConditionFalse ConditionStatus = "False" // ConditionUnknown mean kubernetes can't decide if a resource is in the condition or not. ConditionUnknown ConditionStatus = "Unknown" )
type ConditionType ¶
type ConditionType string
ConditionType is type of PipelineRun condition.
const ( // ConditionReady indicates that the pipeline is ready. // For long-running pipeline ConditionReady ConditionType = "Ready" // ConditionSucceeded indicates that the pipeline has finished. // For pipeline which runs to completion ConditionSucceeded ConditionType = "Succeeded" )
type DevOpsProject ¶
type DevOpsProject struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DevOpsProjectSpec `json:"spec,omitempty"` Status DevOpsProjectStatus `json:"status,omitempty"` }
DevOpsProject is the Schema for the devopsprojects API +kubebuilder:resource:categories="devops",scope="Cluster" +k8s:openapi-gen=true
func (*DevOpsProject) DeepCopy ¶
func (in *DevOpsProject) DeepCopy() *DevOpsProject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevOpsProject.
func (*DevOpsProject) DeepCopyInto ¶
func (in *DevOpsProject) DeepCopyInto(out *DevOpsProject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DevOpsProject) DeepCopyObject ¶
func (in *DevOpsProject) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DevOpsProjectList ¶
type DevOpsProjectList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []DevOpsProject `json:"items"` }
DevOpsProjectList contains a list of DevOpsProject
func (*DevOpsProjectList) DeepCopy ¶
func (in *DevOpsProjectList) DeepCopy() *DevOpsProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevOpsProjectList.
func (*DevOpsProjectList) DeepCopyInto ¶
func (in *DevOpsProjectList) DeepCopyInto(out *DevOpsProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DevOpsProjectList) DeepCopyObject ¶
func (in *DevOpsProjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DevOpsProjectSpec ¶
type DevOpsProjectSpec struct {
Argo *Argo `json:"argo,omitempty"`
}
DevOpsProjectSpec defines the desired state of DevOpsProject
func (*DevOpsProjectSpec) DeepCopy ¶
func (in *DevOpsProjectSpec) DeepCopy() *DevOpsProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevOpsProjectSpec.
func (*DevOpsProjectSpec) DeepCopyInto ¶
func (in *DevOpsProjectSpec) DeepCopyInto(out *DevOpsProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevOpsProjectStatus ¶
type DevOpsProjectStatus struct {
AdminNamespace string `json:"adminNamespace,omitempty"`
}
DevOpsProjectStatus defines the observed state of DevOpsProject
func (*DevOpsProjectStatus) DeepCopy ¶
func (in *DevOpsProjectStatus) DeepCopy() *DevOpsProjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevOpsProjectStatus.
func (*DevOpsProjectStatus) DeepCopyInto ¶
func (in *DevOpsProjectStatus) DeepCopyInto(out *DevOpsProjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiscarderProperty ¶
type DiscarderProperty struct { DaysToKeep string `json:"days_to_keep,omitempty" mapstructure:"days_to_keep" description:"days to keep pipeline"` NumToKeep string `json:"num_to_keep,omitempty" mapstructure:"num_to_keep" description:"nums to keep pipeline"` }
func (*DiscarderProperty) DeepCopy ¶
func (in *DiscarderProperty) DeepCopy() *DiscarderProperty
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscarderProperty.
func (*DiscarderProperty) DeepCopyInto ¶
func (in *DiscarderProperty) DeepCopyInto(out *DiscarderProperty)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DiscoverPRFromForks ¶
type DiscoverPRFromForks struct { Strategy int `json:"strategy,omitempty" mapstructure:"strategy" description:"github discover strategy"` Trust int `json:"trust,omitempty" mapstructure:"trust" description:"trust user type"` }
func (*DiscoverPRFromForks) DeepCopy ¶
func (in *DiscoverPRFromForks) DeepCopy() *DiscoverPRFromForks
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiscoverPRFromForks.
func (*DiscoverPRFromForks) DeepCopyInto ¶
func (in *DiscoverPRFromForks) DeepCopyInto(out *DiscoverPRFromForks)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GenericVariable ¶
type GenericVariable struct { Key string `json:"key,omitempty" description:"Variable name as a key"` RegexpFilter string `json:"regexp_filter,omitempty" description:"A regexp filter which take value from HTTP request, or header etc."` }
func (*GenericVariable) DeepCopy ¶
func (in *GenericVariable) DeepCopy() *GenericVariable
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericVariable.
func (*GenericVariable) DeepCopyInto ¶
func (in *GenericVariable) DeepCopyInto(out *GenericVariable)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GenericWebhook ¶
type GenericWebhook struct { Enable bool `json:"enable,omitempty" description:"Indicate if the generic webhook is enabled"` Token string `json:"token,omitempty" description:"The token of generic webhook"` Cause string `json:"cause,omitempty" description:"Indicate the reason why a webhook triggered"` PrintVariables bool `json:"print_variables,omitempty" description:"Indicate if print the variables"` PrintPostContent bool `json:"print_post_content,omitempty" description:"Indicate if print the post content"` RequestVariables []GenericVariable `json:"request_variables,omitempty" description:"Define variables which come from the HTTP request"` HeaderVariables []GenericVariable `json:"header_variables,omitempty" description:"Define variables which come from the HTTP request header"` FilterText string `json:"filter_text,omitempty" description:"Filter name for the generic webhook, it could be a variable name"` FilterExpression string `json:"filter_expression,omitempty" description:"Filter expression which against the filter name"` }
func (*GenericWebhook) DeepCopy ¶
func (in *GenericWebhook) DeepCopy() *GenericWebhook
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericWebhook.
func (*GenericWebhook) DeepCopyInto ¶
func (in *GenericWebhook) DeepCopyInto(out *GenericWebhook)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCloneOption ¶
type GitCloneOption struct { Shallow bool `json:"shallow,omitempty" mapstructure:"shallow" description:"Whether to use git shallow clone"` Timeout int `json:"timeout,omitempty" mapstructure:"timeout" description:"git clone timeout mins"` Depth int `json:"depth,omitempty" mapstructure:"depth" description:"git clone depth"` }
func (*GitCloneOption) DeepCopy ¶
func (in *GitCloneOption) DeepCopy() *GitCloneOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCloneOption.
func (*GitCloneOption) DeepCopyInto ¶
func (in *GitCloneOption) DeepCopyInto(out *GitCloneOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepository ¶
type GitRepository struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitRepositorySpec `json:"spec,omitempty"` Status GitRepositoryStatus `json:"status,omitempty"` }
GitRepository is the Schema for the webhook API +k8s:openapi-gen=true +kubebuilder:printcolumn:name="Provider",type="string",JSONPath=".spec.provider" +kubebuilder:printcolumn:name="Server",type="string",JSONPath=".spec.server" +kubebuilder:printcolumn:name="URL",type="string",JSONPath=".spec.url"
func (*GitRepository) DeepCopy ¶
func (in *GitRepository) DeepCopy() *GitRepository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepository.
func (*GitRepository) DeepCopyInto ¶
func (in *GitRepository) DeepCopyInto(out *GitRepository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitRepository) DeepCopyObject ¶
func (in *GitRepository) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitRepositoryList ¶
type GitRepositoryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GitRepository `json:"items"` }
GitRepositoryList contains a list of GitRepository
func (*GitRepositoryList) DeepCopy ¶
func (in *GitRepositoryList) DeepCopy() *GitRepositoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryList.
func (*GitRepositoryList) DeepCopyInto ¶
func (in *GitRepositoryList) DeepCopyInto(out *GitRepositoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitRepositoryList) DeepCopyObject ¶
func (in *GitRepositoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitRepositorySpec ¶
type GitRepositorySpec struct { Provider string `json:"provider,omitempty"` URL string `json:"url,omitempty"` Server string `json:"server,omitempty"` Owner string `json:"owner,omitempty"` Repo string `json:"repo,omitempty"` Secret *v1.SecretReference `json:"secret,omitempty"` Webhooks []v1.LocalObjectReference `json:"webhooks,omitempty"` }
GitRepositorySpec represents the desired state of a GitRepository
func (*GitRepositorySpec) DeepCopy ¶
func (in *GitRepositorySpec) DeepCopy() *GitRepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositorySpec.
func (*GitRepositorySpec) DeepCopyInto ¶
func (in *GitRepositorySpec) DeepCopyInto(out *GitRepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryStatus ¶
type GitRepositoryStatus struct { // Connection indicates if the connection is ok Connection string `json:"connection,omitempty"` // Message describes the message when trying to connect it Message string `json:"message,omitempty"` }
GitRepositoryStatus represents the status of a git repository
func (*GitRepositoryStatus) DeepCopy ¶
func (in *GitRepositoryStatus) DeepCopy() *GitRepositoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryStatus.
func (*GitRepositoryStatus) DeepCopyInto ¶
func (in *GitRepositoryStatus) DeepCopyInto(out *GitRepositoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitSource ¶
type GitSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Url string `json:"url,omitempty" mapstructure:"url" description:"url of git source"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access git source"` DiscoverBranches bool `json:"discover_branches,omitempty" mapstructure:"discover_branches" description:"Whether to discover a branch"` DiscoverTags bool `json:"discover_tags,omitempty" mapstructure:"discover_tags" description:"Discover tags configuration"` CloneOption *GitCloneOption `json:"git_clone_option,omitempty" mapstructure:"git_clone_option" description:"advavced git clone options"` RegexFilter string `` /* 135-byte string literal not displayed */ }
func (*GitSource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitSource.
func (*GitSource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GithubSource ¶
type GithubSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Owner string `json:"owner,omitempty" mapstructure:"owner" description:"owner of github repo"` Repo string `json:"repo,omitempty" mapstructure:"repo" description:"repo name of github repo"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access github source"` ApiUri string `` /* 154-byte string literal not displayed */ DiscoverBranches int `json:"discover_branches,omitempty" mapstructure:"discover_branches" description:"Discover branch configuration"` DiscoverPRFromOrigin int `` /* 126-byte string literal not displayed */ DiscoverPRFromForks *DiscoverPRFromForks `json:"discover_pr_from_forks,omitempty" mapstructure:"discover_pr_from_forks" description:"Discover fork PR configuration"` DiscoverTags bool `json:"discover_tags,omitempty" mapstructure:"discover_tags" description:"Discover tag configuration"` CloneOption *GitCloneOption `json:"git_clone_option,omitempty" mapstructure:"git_clone_option" description:"advavced git clone options"` RegexFilter string `` /* 135-byte string literal not displayed */ AcceptJenkinsNotification bool `` /* 157-byte string literal not displayed */ }
GithubSource and BitbucketServerSource have the same structure, but we don't use one due to crd errors
func (*GithubSource) DeepCopy ¶
func (in *GithubSource) DeepCopy() *GithubSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GithubSource.
func (*GithubSource) DeepCopyInto ¶
func (in *GithubSource) DeepCopyInto(out *GithubSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitlabSource ¶
type GitlabSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Owner string `json:"owner,omitempty" mapstructure:"owner" description:"owner of gitlab repo"` Repo string `json:"repo,omitempty" mapstructure:"repo" description:"repo name of gitlab repo"` ServerName string `json:"server_name,omitempty" description:"the name of gitlab server which was configured in jenkins"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access gitlab source"` ApiUri string `` /* 154-byte string literal not displayed */ DiscoverBranches int `json:"discover_branches,omitempty" mapstructure:"discover_branches" description:"Discover branch configuration"` DiscoverPRFromOrigin int `` /* 126-byte string literal not displayed */ DiscoverPRFromForks *DiscoverPRFromForks `json:"discover_pr_from_forks,omitempty" mapstructure:"discover_pr_from_forks" description:"Discover fork PR configuration"` DiscoverTags bool `json:"discover_tags,omitempty" mapstructure:"discover_tags" description:"Discover tags configuration"` CloneOption *GitCloneOption `json:"git_clone_option,omitempty" mapstructure:"git_clone_option" description:"advavced git clone options"` RegexFilter string `` /* 135-byte string literal not displayed */ AcceptJenkinsNotification bool `` /* 157-byte string literal not displayed */ }
func (*GitlabSource) DeepCopy ¶
func (in *GitlabSource) DeepCopy() *GitlabSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitlabSource.
func (*GitlabSource) DeepCopyInto ¶
func (in *GitlabSource) DeepCopyInto(out *GitlabSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JWTToken ¶
type JWTToken struct { IssuedAt int64 `json:"iat"` ExpiresAt int64 `json:"exp,omitempty"` ID string `json:"id,omitempty"` }
JWTToken holds the issuedAt and expiresAt values of a token
func (*JWTToken) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JWTToken.
func (*JWTToken) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LastChanges ¶
LastChanges represents a set of last SCM changes
func GetLastChanges ¶
func GetLastChanges(jsonText string) (lastChange LastChanges, err error)
GetLastChanges returns the last changes
func (LastChanges) LastHash ¶
func (l LastChanges) LastHash(ref string) (hash string)
LastHash return last hash value
func (LastChanges) String ¶
func (l LastChanges) String() string
String returns the string JSON format
func (LastChanges) Update ¶
func (l LastChanges) Update(ref, hash string) LastChanges
Update updates hash by ref
type MultiBranchJobTrigger ¶
type MultiBranchJobTrigger struct { CreateActionJobsToTrigger string `json:"create_action_job_to_trigger,omitempty" description:"pipeline name to trigger"` DeleteActionJobsToTrigger string `json:"delete_action_job_to_trigger,omitempty" description:"pipeline name to trigger"` }
func (*MultiBranchJobTrigger) DeepCopy ¶
func (in *MultiBranchJobTrigger) DeepCopy() *MultiBranchJobTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiBranchJobTrigger.
func (*MultiBranchJobTrigger) DeepCopyInto ¶
func (in *MultiBranchJobTrigger) DeepCopyInto(out *MultiBranchJobTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MultiBranchPipeline ¶
type MultiBranchPipeline struct { Name string `json:"name" description:"name of pipeline"` Description string `json:"description,omitempty" description:"description of pipeline"` Discarder *DiscarderProperty `json:"discarder,omitempty" description:"Discarder of pipeline, managing when to drop a pipeline"` TimerTrigger *TimerTrigger `json:"timer_trigger,omitempty" mapstructure:"timer_trigger" description:"Timer to trigger pipeline run"` SourceType string `json:"source_type" description:"type of scm, such as github/git/svn"` GitSource *GitSource `json:"git_source,omitempty" description:"git scm define"` GitHubSource *GithubSource `json:"github_source,omitempty" description:"github scm define"` GitlabSource *GitlabSource `json:"gitlab_source,omitempty" description:"gitlab scm define"` SvnSource *SvnSource `json:"svn_source,omitempty" description:"multi branch svn scm define"` SingleSvnSource *SingleSvnSource `json:"single_svn_source,omitempty" description:"single branch svn scm define"` BitbucketServerSource *BitbucketServerSource `json:"bitbucket_server_source,omitempty" description:"bitbucket server scm defile"` ScriptPath string `json:"script_path" mapstructure:"script_path" description:"script path in scm"` MultiBranchJobTrigger *MultiBranchJobTrigger `` /* 164-byte string literal not displayed */ }
func (*MultiBranchPipeline) DeepCopy ¶
func (in *MultiBranchPipeline) DeepCopy() *MultiBranchPipeline
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiBranchPipeline.
func (*MultiBranchPipeline) DeepCopyInto ¶
func (in *MultiBranchPipeline) DeepCopyInto(out *MultiBranchPipeline)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MultiBranchPipeline) GetGitURL ¶
func (b *MultiBranchPipeline) GetGitURL() string
type NoScmPipeline ¶
type NoScmPipeline struct { Name string `json:"name" description:"name of pipeline"` Description string `json:"description,omitempty" description:"description of pipeline"` Discarder *DiscarderProperty `json:"discarder,omitempty" description:"Discarder of pipeline, managing when to drop a pipeline"` Parameters []ParameterDefinition `json:"parameters,omitempty" description:"Parameters define of pipeline,user could pass param when run pipeline"` DisableConcurrent bool `` /* 141-byte string literal not displayed */ TimerTrigger *TimerTrigger `json:"timer_trigger,omitempty" mapstructure:"timer_trigger" description:"Timer to trigger pipeline run"` RemoteTrigger *RemoteTrigger `json:"remote_trigger,omitempty" mapstructure:"remote_trigger" description:"Remote api define to trigger pipeline run"` GenericWebhook *GenericWebhook `json:"generic_webhook,omitempty" mapstructure:"generic_webhook" description:"Generic webhook config"` Jenkinsfile string `json:"jenkinsfile,omitempty" description:"Jenkinsfile's content'"` }
func (*NoScmPipeline) DeepCopy ¶
func (in *NoScmPipeline) DeepCopy() *NoScmPipeline
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NoScmPipeline.
func (*NoScmPipeline) DeepCopyInto ¶
func (in *NoScmPipeline) DeepCopyInto(out *NoScmPipeline)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OrphanedResourceKey ¶
type OrphanedResourceKey struct { Group string `json:"group,omitempty"` Kind string `json:"kind,omitempty"` Name string `json:"name,omitempty"` }
OrphanedResourceKey is a reference to a resource to be ignored from
func (*OrphanedResourceKey) DeepCopy ¶
func (in *OrphanedResourceKey) DeepCopy() *OrphanedResourceKey
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrphanedResourceKey.
func (*OrphanedResourceKey) DeepCopyInto ¶
func (in *OrphanedResourceKey) DeepCopyInto(out *OrphanedResourceKey)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OrphanedResourcesMonitorSettings ¶
type OrphanedResourcesMonitorSettings struct { // Warn indicates if warning condition should be created for apps which have orphaned resources Warn *bool `json:"warn,omitempty"` // Ignore contains a list of resources that are to be excluded from orphaned resources monitoring Ignore []OrphanedResourceKey `json:"ignore,omitempty"` }
OrphanedResourcesMonitorSettings holds settings of orphaned resources monitoring
func (*OrphanedResourcesMonitorSettings) DeepCopy ¶
func (in *OrphanedResourcesMonitorSettings) DeepCopy() *OrphanedResourcesMonitorSettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrphanedResourcesMonitorSettings.
func (*OrphanedResourcesMonitorSettings) DeepCopyInto ¶
func (in *OrphanedResourcesMonitorSettings) DeepCopyInto(out *OrphanedResourcesMonitorSettings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Parameter ¶
type Parameter struct { // Name indicates that name of the parameter. Name string `json:"name" description:"parameter name"` // Value indicates that value of the parameter. Value string `json:"value" description:"parameter value"` }
Parameter is an option that can be passed with the endpoint to influence the Pipeline Run
func (*Parameter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Parameter.
func (*Parameter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParameterDefinition ¶
type ParameterDefinition struct { Name string `json:"name" description:"name of param"` DefaultValue string `json:"default_value,omitempty" yaml:"default_value" mapstructure:"default_value" description:"default value of param"` Type string `json:"type" description:"type of param"` Description string `json:"description,omitempty" description:"description of pipeline"` }
func (*ParameterDefinition) DeepCopy ¶
func (in *ParameterDefinition) DeepCopy() *ParameterDefinition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterDefinition.
func (*ParameterDefinition) DeepCopyInto ¶
func (in *ParameterDefinition) DeepCopyInto(out *ParameterDefinition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParameterInStep ¶
type ParameterInStep struct { Name string `json:"name"` Type ParameterType `json:"type,omitempty"` Required bool `json:"required,omitempty"` Display string `json:"display,omitempty"` DefaultValue string `json:"defaultValue,omitempty" yaml:"defaultValue"` Options string `json:"options,omitempty"` // Condition is an expression about if this variable is necessary for users Condition string `json:"condition,omitempty"` // represents that the relationship of parameters Reactions string `json:"reactions,omitempty"` }
ParameterInStep is the parameter which used in a step
func (*ParameterInStep) DeepCopy ¶
func (in *ParameterInStep) DeepCopy() *ParameterInStep
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterInStep.
func (*ParameterInStep) DeepCopyInto ¶
func (in *ParameterInStep) DeepCopyInto(out *ParameterInStep)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParameterType ¶
type ParameterType string
ParameterType represents the type of parameter
const ( // ParameterTypeString represents a parameter in string format, expect this is a single line ParameterTypeString ParameterType = "string" // ParameterTypeText represents a parameter in string format, expect this is multi-line ParameterTypeText ParameterType = "text" // ParameterTypeNumber represents a parameter in number format ParameterTypeNumber ParameterType = "number" // ParameterTypeCode represents a parameter in string format that contains some code lines ParameterTypeCode ParameterType = "code" // ParameterTypeBool represents a parameter in boolean format ParameterTypeBool ParameterType = "bool" // ParameterTypeEnum represents a parameter in enum format ParameterTypeEnum ParameterType = "enum" // ParameterTypeSecret represents a parameter in secret format ParameterTypeSecret ParameterType = "secret" // ParameterTypeHidden represents a parameter that is hidden ParameterTypeHidden ParameterType = "hidden" // ParameterTypeImportCodeRepo represents a parameter that is import values to other parameters from code repositories ParameterTypeImportCodeRepo ParameterType = "importCodeRepo" )
type ParameterValidation ¶
type ParameterValidation struct { // Expression is the expression of the validation. Expression string `json:"expression"` // Message is given when validation failure. Message string `json:"message"` }
ParameterValidation is definition of how can we validate our parameter.
func (*ParameterValidation) DeepCopy ¶
func (in *ParameterValidation) DeepCopy() *ParameterValidation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterValidation.
func (*ParameterValidation) DeepCopyInto ¶
func (in *ParameterValidation) DeepCopyInto(out *ParameterValidation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Pipeline ¶
type Pipeline struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PipelineSpec `json:"spec,omitempty"` Status PipelineStatus `json:"status,omitempty"` }
Pipeline is the Schema for the pipelines API +k8s:openapi-gen=true +kubebuilder:printcolumn:name="Type",type=string,JSONPath=`.spec.type`,description="The type of a Pipeline" +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`,description="The age of a Pipeline" +kubebuilder:resource:shortName="pip",categories="devops"
func (*Pipeline) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pipeline.
func (*Pipeline) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pipeline) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Pipeline) IsMultiBranch ¶
IsMultiBranch returns true if this is a multi-branch Pipeline, false otherwise.
type PipelineList ¶
type PipelineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Pipeline `json:"items"` }
PipelineList contains a list of Pipeline
func (*PipelineList) DeepCopy ¶
func (in *PipelineList) DeepCopy() *PipelineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineList.
func (*PipelineList) DeepCopyInto ¶
func (in *PipelineList) DeepCopyInto(out *PipelineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineList) DeepCopyObject ¶
func (in *PipelineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineRun ¶
type PipelineRun struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PipelineRunSpec `json:"spec,omitempty"` Status PipelineRunStatus `json:"status,omitempty"` }
PipelineRun is the Schema for the pipelineruns API
func (*PipelineRun) Buildable ¶
func (pr *PipelineRun) Buildable() bool
Buildable returns true if the PipelineRun is buildable, false otherwise.
func (*PipelineRun) DeepCopy ¶
func (in *PipelineRun) DeepCopy() *PipelineRun
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRun.
func (*PipelineRun) DeepCopyInto ¶
func (in *PipelineRun) DeepCopyInto(out *PipelineRun)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineRun) DeepCopyObject ¶
func (in *PipelineRun) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PipelineRun) GetPipelineRunID ¶
func (pr *PipelineRun) GetPipelineRunID() (pipelineRunID string, exist bool)
GetPipelineRunID gets ID of PipelineRun.
func (*PipelineRun) GetPipelineRunIdentifier ¶
func (pr *PipelineRun) GetPipelineRunIdentifier() string
GetPipelineRunIdentifier returns an identifier string which can identify a PipelineRun, even if the PipelineRun belongs to multi-branch or non multi-branch Pipeline. Format of the string: [scm.ref-name]-runID TODO Add unit test against this method
func (*PipelineRun) HasCompleted ¶
func (pr *PipelineRun) HasCompleted() bool
HasCompleted indicates if the PipelineRun has already completed.
func (*PipelineRun) HasStarted ¶
func (pr *PipelineRun) HasStarted() bool
HasStarted indicates if the PipelineRun has started already.
func (*PipelineRun) LabelAsAnOrphan ¶
func (pr *PipelineRun) LabelAsAnOrphan()
LabelAsAnOrphan labels PipelineRun as an orphan.
type PipelineRunList ¶
type PipelineRunList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PipelineRun `json:"items"` }
PipelineRunList contains a list of PipelineRun
func (*PipelineRunList) DeepCopy ¶
func (in *PipelineRunList) DeepCopy() *PipelineRunList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunList.
func (*PipelineRunList) DeepCopyInto ¶
func (in *PipelineRunList) DeepCopyInto(out *PipelineRunList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineRunList) DeepCopyObject ¶
func (in *PipelineRunList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineRunSpec ¶
type PipelineRunSpec struct { // PipelineRef is the Pipeline to which the current PipelineRun belongs PipelineRef *v1.ObjectReference `json:"pipelineRef"` // PipelineSpec is the specification of Pipeline when the current PipelineRun is created. // +optional PipelineSpec *PipelineSpec `json:"pipelineSpec,omitempty"` // Parameters are some key/value pairs passed to runner. // +optional Parameters []Parameter `json:"parameters,omitempty"` // SCM is a SCM configuration that target PipelineRun requires. // +optional SCM *SCM `json:"scm,omitempty"` // Action indicates what we need to do with current PipelineRun. // +optional Action *Action `json:"action,omitempty"` }
PipelineRunSpec defines the desired state of PipelineRun
func (*PipelineRunSpec) DeepCopy ¶
func (in *PipelineRunSpec) DeepCopy() *PipelineRunSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunSpec.
func (*PipelineRunSpec) DeepCopyInto ¶
func (in *PipelineRunSpec) DeepCopyInto(out *PipelineRunSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineRunSpec) IsMultiBranchPipeline ¶
func (prSpec *PipelineRunSpec) IsMultiBranchPipeline() bool
IsMultiBranchPipeline indicates if the PipelineRun belongs a multi-branch pipeline.
type PipelineRunStatus ¶
type PipelineRunStatus struct { // Start timestamp of the PipelineRun. // +optional StartTime *metav1.Time `json:"startTime,omitempty"` // Completion timestamp of the PipelineRun. // +optional CompletionTime *metav1.Time `json:"completionTime,omitempty"` // Update timestamp of the PipelineRun. // +optional UpdateTime *metav1.Time `json:"updateTime,omitempty"` // Current state of PipelineRun. // +optional // +patchMergeKey=type // +patchStrategy=merge Conditions []Condition `json:"conditions,omitempty"` // Current phase of PipelineRun. // +optional Phase RunPhase `json:"phase,omitempty"` }
PipelineRunStatus defines the observed state of PipelineRun
func (*PipelineRunStatus) AddCondition ¶
func (status *PipelineRunStatus) AddCondition(newCondition *Condition)
AddCondition adds a new condition into history of conditions.
func (*PipelineRunStatus) DeepCopy ¶
func (in *PipelineRunStatus) DeepCopy() *PipelineRunStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunStatus.
func (*PipelineRunStatus) DeepCopyInto ¶
func (in *PipelineRunStatus) DeepCopyInto(out *PipelineRunStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineRunStatus) GetLatestCondition ¶
func (status *PipelineRunStatus) GetLatestCondition() *Condition
GetLatestCondition obtains latest condition from history of conditions.
type PipelineSpec ¶
type PipelineSpec struct { Type PipelineType `json:"type" description:"type of devops pipeline, in scm or no scm"` Pipeline *NoScmPipeline `json:"pipeline,omitempty" description:"no scm pipeline structs"` MultiBranchPipeline *MultiBranchPipeline `json:"multi_branch_pipeline,omitempty" description:"in scm pipeline structs"` }
PipelineSpec defines the desired state of Pipeline
func (*PipelineSpec) DeepCopy ¶
func (in *PipelineSpec) DeepCopy() *PipelineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineSpec.
func (*PipelineSpec) DeepCopyInto ¶
func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineStatus ¶
type PipelineStatus struct { }
PipelineStatus defines the observed state of Pipeline
func (*PipelineStatus) DeepCopy ¶
func (in *PipelineStatus) DeepCopy() *PipelineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineStatus.
func (*PipelineStatus) DeepCopyInto ¶
func (in *PipelineStatus) DeepCopyInto(out *PipelineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineType ¶
type PipelineType string
PipelineType is an alias of string that represents the type of Pipelines
const ( NoScmPipelineType PipelineType = "pipeline" MultiBranchPipelineType PipelineType = "multi-branch-pipeline" )
type ProjectRole ¶
type ProjectRole struct { // Name is a name for this role Name string `json:"name"` // Description is a description of the role Description string `json:"description,omitempty"` // Policies Stores a list of casbin formatted strings that define access policies for the role in the project Policies []string `json:"policies,omitempty"` // JWTTokens are a list of generated JWT tokens bound to this role JWTTokens []JWTToken `json:"jwtTokens,omitempty"` // Groups are a list of OIDC group claims bound to this role Groups []string `json:"groups,omitempty"` }
ProjectRole represents a role that has access to a project
func (*ProjectRole) DeepCopy ¶
func (in *ProjectRole) DeepCopy() *ProjectRole
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRole.
func (*ProjectRole) DeepCopyInto ¶
func (in *ProjectRole) DeepCopyInto(out *ProjectRole)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RefType ¶
type RefType string
RefType indicates that SCM reference type, such as branch, tag, pr, mr.
const ( // Branch represents an independent line of development. Branch RefType = "branch" // Tag points to specific points in SCM history. Tag RefType = "tag" // PullRequest is a feature that makes it easier for developers to collaborate using GitHub, BitBucket or others. PullRequest RefType = "pr" // MergeRequest is a request from someone to merge in code from one branch to another MergeRequest RefType = "mr" )
type RemoteTrigger ¶
type RemoteTrigger struct {
Token string `json:"token,omitempty" description:"remote trigger token"`
}
func (*RemoteTrigger) DeepCopy ¶
func (in *RemoteTrigger) DeepCopy() *RemoteTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteTrigger.
func (*RemoteTrigger) DeepCopyInto ¶
func (in *RemoteTrigger) DeepCopyInto(out *RemoteTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RunPhase ¶
type RunPhase string
RunPhase is a label for the condition of a PipelineRun at the current time.
const ( // Pending indicates that the PipelineRun is pending. Pending RunPhase = "Pending" // Running indicates that the PipelineRun is running. Running RunPhase = "Running" // Succeeded indicates that the PipelineRun has succeeded. Succeeded RunPhase = "Succeeded" // Failed indicates that the PipelineRun has failed. Failed RunPhase = "Failed" // Unknown indicates that the PipelineRun has an unknown status. Unknown RunPhase = "Unknown" // Cancelled indicates that the PipelineRun has been cancelled Cancelled RunPhase = "Cancelled" )
type SCM ¶
type SCM struct { // RefType indicates that SCM reference type, such as branch, tag, pr, mr. RefType RefType `json:"refType"` // RefName indicates that SCM reference name, such as master, dev, release-v1. RefName string `json:"refName"` }
SCM is a SCM configuration that target PipelineRun requires.
func (*SCM) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SCM.
func (*SCM) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretInStep ¶
type SecretInStep struct { Type string `json:"type,omitempty"` Wrap bool `json:"wrap,omitempty"` Mapping map[string]string `json:"mapping,omitempty"` }
SecretInStep is the secret which used in a step
func (*SecretInStep) DeepCopy ¶
func (in *SecretInStep) DeepCopy() *SecretInStep
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretInStep.
func (*SecretInStep) DeepCopyInto ¶
func (in *SecretInStep) DeepCopyInto(out *SecretInStep)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SignatureKey ¶
type SignatureKey struct { // The ID of the key in hexadecimal notation KeyID string `json:"keyID"` }
SignatureKey is the specification of a key required to verify commit signatures with
func (*SignatureKey) DeepCopy ¶
func (in *SignatureKey) DeepCopy() *SignatureKey
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SignatureKey.
func (*SignatureKey) DeepCopyInto ¶
func (in *SignatureKey) DeepCopyInto(out *SignatureKey)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SingleSvnSource ¶
type SingleSvnSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Remote string `json:"remote,omitempty" description:"remote address url"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access svn source"` }
func (*SingleSvnSource) DeepCopy ¶
func (in *SingleSvnSource) DeepCopy() *SingleSvnSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SingleSvnSource.
func (*SingleSvnSource) DeepCopyInto ¶
func (in *SingleSvnSource) DeepCopyInto(out *SingleSvnSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StepTemplatePhase ¶
type StepTemplatePhase string
StepTemplatePhase represents the phase of the Step template
var ( // StepTemplatePhaseReady indicates the step template is ready to use StepTemplatePhaseReady StepTemplatePhase = "ready" // StepTemplatePhaseInit indicates the step template is not ready to use StepTemplatePhaseInit StepTemplatePhase = "init" )
type StepTemplateSpec ¶
type StepTemplateSpec struct { Secret SecretInStep `json:"secret,omitempty"` Container string `json:"container,omitempty"` Agent string `json:"agent,omitempty"` Runtime string `json:"runtime,omitempty"` Template string `json:"template,omitempty"` Parameters []ParameterInStep `json:"parameters,omitempty"` }
StepTemplateSpec defines the desired state of ClusterStepTemplate
func (*StepTemplateSpec) DeepCopy ¶
func (in *StepTemplateSpec) DeepCopy() *StepTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StepTemplateSpec.
func (*StepTemplateSpec) DeepCopyInto ¶
func (in *StepTemplateSpec) DeepCopyInto(out *StepTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StepTemplateStatus ¶
type StepTemplateStatus struct {
Phase StepTemplatePhase `json:"phase"`
}
StepTemplateStatus defines the observed state of ClusterStepTemplate
func (*StepTemplateStatus) DeepCopy ¶
func (in *StepTemplateStatus) DeepCopy() *StepTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StepTemplateStatus.
func (*StepTemplateStatus) DeepCopyInto ¶
func (in *StepTemplateStatus) DeepCopyInto(out *StepTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SvnSource ¶
type SvnSource struct { ScmId string `json:"scm_id,omitempty" description:"uid of scm"` Remote string `json:"remote,omitempty" description:"remote address url"` CredentialId string `json:"credential_id,omitempty" mapstructure:"credential_id" description:"credential id to access svn source"` Includes string `json:"includes,omitempty" description:"branches to run pipeline"` Excludes string `json:"excludes,omitempty" description:"branches do not run pipeline"` }
func (*SvnSource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SvnSource.
func (*SvnSource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncWindow ¶
type SyncWindow struct { // Kind defines if the window allows or blocks syncs Kind string `json:"kind,omitempty"` // Schedule is the time the window will begin, specified in cron format Schedule string `json:"schedule,omitempty"` // Duration is the amount of time the sync window will be open Duration string `json:"duration,omitempty"` // Applications contains a list of applications that the window will apply to Applications []string `json:"applications,omitempty"` // Namespaces contains a list of namespaces that the window will apply to Namespaces []string `json:"namespaces,omitempty"` // Clusters contains a list of clusters that the window will apply to Clusters []string `json:"clusters,omitempty"` // ManualSync enables manual syncs when they would otherwise be blocked ManualSync bool `json:"manualSync,omitempty"` //TimeZone of the sync that will be applied to the schedule TimeZone string `json:"timeZone,omitempty"` }
SyncWindow contains the kind, time, duration and attributes that are used to assign the syncWindows to apps
func (*SyncWindow) DeepCopy ¶
func (in *SyncWindow) DeepCopy() *SyncWindow
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncWindow.
func (*SyncWindow) DeepCopyInto ¶
func (in *SyncWindow) DeepCopyInto(out *SyncWindow)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyncWindows ¶
type SyncWindows []*SyncWindow
SyncWindows is a collection of sync windows in this project
func (SyncWindows) DeepCopy ¶
func (in SyncWindows) DeepCopy() SyncWindows
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncWindows.
func (SyncWindows) DeepCopyInto ¶
func (in SyncWindows) DeepCopyInto(out *SyncWindows)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Template ¶
type Template struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TemplateSpec `json:"spec,omitempty"` Status TemplateStatus `json:"status,omitempty"` }
Template is the Schema for the templates API
func (*Template) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.
func (*Template) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Template) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Template) TemplateSpec ¶
func (template *Template) TemplateSpec() TemplateSpec
TemplateSpec returns specification of Template.
type TemplateList ¶
type TemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Template `json:"items"` }
TemplateList contains a list of Template
func (*TemplateList) DeepCopy ¶
func (in *TemplateList) DeepCopy() *TemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateList.
func (*TemplateList) DeepCopyInto ¶
func (in *TemplateList) DeepCopyInto(out *TemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TemplateList) DeepCopyObject ¶
func (in *TemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TemplateObject ¶
type TemplateObject interface { v1.Object runtime.Object // TemplateSpec returns TemplateSpec. TemplateSpec() TemplateSpec }
TemplateObject is implemented by Template and ClusterTemplate.
type TemplateParameter ¶
type TemplateParameter struct { // Name is name of the parameter. Name string `json:"name"` // Description is description of the parameter. //+optional Description string `json:"description,omitempty"` // Required indicates if this parameter is mandatory. //+optional Required bool `json:"required,omitempty"` // Default is default value of the parameter. //+optional Default apiextensionv1.JSON `json:"default,omitempty"` // Type is type of the parameter. //+optional Type string `json:"type,omitempty"` // Validation is the validation configuration of the parameter, including validation expression and message. //+optional Validation *ParameterValidation `json:"validation,omitempty"` }
TemplateParameter is definition of how can we configure our parameter.
func (*TemplateParameter) DeepCopy ¶
func (in *TemplateParameter) DeepCopy() *TemplateParameter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateParameter.
func (*TemplateParameter) DeepCopyInto ¶
func (in *TemplateParameter) DeepCopyInto(out *TemplateParameter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateSpec ¶
type TemplateSpec struct { // Parameters are used to configure template. //+optional Parameters []TemplateParameter `json:"parameters,omitempty"` // Template is a string with go-template style. Template string `json:"template,omitempty"` }
TemplateSpec defines the desired state of Template
func (*TemplateSpec) DeepCopy ¶
func (in *TemplateSpec) DeepCopy() *TemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateSpec.
func (*TemplateSpec) DeepCopyInto ¶
func (in *TemplateSpec) DeepCopyInto(out *TemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateStatus ¶
type TemplateStatus struct { }
TemplateStatus defines the observed state of Template
func (*TemplateStatus) DeepCopy ¶
func (in *TemplateStatus) DeepCopy() *TemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateStatus.
func (*TemplateStatus) DeepCopyInto ¶
func (in *TemplateStatus) DeepCopyInto(out *TemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TimerTrigger ¶
type TimerTrigger struct { // user in no scm job Cron string `json:"cron,omitempty" description:"jenkins cron script"` // use in multi-branch job Interval string `json:"interval,omitempty" description:"interval ms"` }
func (*TimerTrigger) DeepCopy ¶
func (in *TimerTrigger) DeepCopy() *TimerTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TimerTrigger.
func (*TimerTrigger) DeepCopyInto ¶
func (in *TimerTrigger) DeepCopyInto(out *TimerTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Webhook ¶
type Webhook struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WebhookSpec `json:"spec,omitempty"` }
Webhook is the Schema for the webhook API +k8s:openapi-gen=true +kubebuilder:printcolumn:name="Server",type="string",JSONPath=".spec.server" +kubebuilder:printcolumn:name="SkipVerify",type="boolean",JSONPath=".spec.skipVerify"
func (*Webhook) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Webhook.
func (*Webhook) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Webhook) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WebhookList ¶
type WebhookList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Webhook `json:"items"` }
WebhookList contains a list of Webhook
func (*WebhookList) DeepCopy ¶
func (in *WebhookList) DeepCopy() *WebhookList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookList.
func (*WebhookList) DeepCopyInto ¶
func (in *WebhookList) DeepCopyInto(out *WebhookList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WebhookList) DeepCopyObject ¶
func (in *WebhookList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WebhookSpec ¶
type WebhookSpec struct { Server string `json:"server"` Secret *v1.SecretReference `json:"secret,omitempty"` Events []string `json:"events,omitempty"` SkipVerify bool `json:"skipVerify"` }
WebhookSpec represents the desired state of a Webhook
func (*WebhookSpec) DeepCopy ¶
func (in *WebhookSpec) DeepCopy() *WebhookSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookSpec.
func (*WebhookSpec) DeepCopyInto ¶
func (in *WebhookSpec) DeepCopyInto(out *WebhookSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files
¶
- addon.go
- addon_strategy.go
- clustertemplate_types.go
- credential_types.go
- devopsproject_types.go
- gitrepository.go
- groupversion_info.go
- last_changes.go
- pipeline_types.go
- pipelinerun_types.go
- steptemplate_render.go
- steptemplate_types.go
- template_interface.go
- template_types.go
- webhook.go
- zz_generated.deepcopy.go