Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Rio
Commits
1a40e87b
Unverified
Commit
1a40e87b
authored
5 years ago
by
Dax McDonald
Committed by
GitHub
5 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #506 from ibuildthecloud/master
Fix up ImageBuild
parents
b37c6684
33980969
fix_codegen
api-refactor
expose_changes
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/apis/rio.cattle.io/v1/image.go
+14
-12
pkg/apis/rio.cattle.io/v1/image.go
with
14 additions
and
12 deletions
+14
-12
pkg/apis/rio.cattle.io/v1/image.go
+
14
-
12
View file @
1a40e87b
...
...
@@ -5,7 +5,11 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ImageBuild is used to build an image from a Git source and optionally push it
type
ImageBuild
struct
{
metav1
.
TypeMeta
`json:",inline"`
metav1
.
ObjectMeta
`json:"metadata,omitempty"`
Spec
ImageBuildSpec
`json:"spec,omitempty"`
Status
ImageBuildStatus
`json:"status,omitempty"`
}
...
...
@@ -21,22 +25,22 @@ type ImageBuildSpec struct {
Branch
string
`json:"branch,omitempty"`
// Specify the name of the Dockerfile in the Repo. This is the full path relative to the repo root. Defaults to `Dockerfile`.
Docker
F
ile
string
`json:"docker
F
ile,omitempty"`
Docker
f
ile
string
`json:"docker
f
ile,omitempty"`
// Specify build context. Defaults to "."
Build
Context
string
`json:"
buildC
ontext,omitempty"`
Context
string
`json:"
c
ontext,omitempty"`
// Specify build args
Build
Args
[]
string
`json:"
buildA
rgs,omitempty"`
Args
[]
string
`json:"
a
rgs,omitempty"`
// Specify the build template. Defaults to `buildkit`.
Template
string
`json:"template,omitempty"`
// Specify the github secret name. Used to create Github webhook, the secret key has to be `accessToken`
Github
SecretName
string
`json:"
github
SecretName,omitempty"`
Webhook
SecretName
string
`json:"
webhook
SecretName,omitempty"`
// Specify secret name for checking our git resources
Git
SecretName
string
`json:"
git
SecretName,omitempty"`
Pull
SecretName
string
`json:"
pull
SecretName,omitempty"`
// Specify custom registry to push the image instead of built-in one
PushRegistry
string
`json:"pushRegistry,omitempty"`
...
...
@@ -45,23 +49,21 @@ type ImageBuildSpec struct {
PushRegistrySecretName
string
`json:"pushRegistrySecretName,omitempty"`
// Specify image name instead of the one generated from service name, format: $registry/$imageName:$revision
Build
ImageName
string
`json:"
buildI
mageName,omitempty"`
ImageName
string
`json:"
i
mageName,omitempty"`
// Whether to enable builds for pull requests
PR
bool
`json:"pr,omitempty"`
// Whether to enable builds for
pull request
s
// Whether to enable builds for
tag
s
Tag
bool
`json:"tag,omitempty"`
// Build image with no cache
NoCache
bool
`json:"noCache,omitempty"`
// BuildTimeout describes how long the build can run
BuildTimeout
*
metav1
.
Duration
// ServiceName The service to update when the build succeeds or fails. If blank do not update any service.
ServiceName
string
`json:"serviceName,omitempty"`
// Timeout describes how long the build can run
Timeout
*
metav1
.
Duration
}
type
ImageBuildStatus
struct
{
ImageName
string
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help