Documentation ¶
Index ¶
- Constants
- Variables
- func After(oc *exutil.CLI)
- func Before(oc *exutil.CLI)
- func BuildConfigBuilds(c buildclientv1.BuildsGetter, namespace, name string, filterFunc buildFilter) ([]*buildv1.Build, error)
- func BuildConfigSelector(name string) labels.Selector
- func ExpectOpenShiftLabels(labels map[string]string) error
- func GetBuildPodName(build *buildv1.Build) string
- func IsBuildComplete(build *buildv1.Build) bool
- func IsTerminalPhase(phase buildv1.BuildPhase) bool
- func LabelValue(name string) string
- func RunBuildCompletePodDeleteTest(t testingT, clusterAdminClient buildv1clienttyped.BuildsGetter, ...)
- func RunBuildConfigChangeControllerTest(t testingT, clusterAdminBuildClient buildv1clienttyped.BuildV1Interface, ...)
- func RunBuildDeleteTest(t testingT, clusterAdminClient buildv1clienttyped.BuildsGetter, ...)
- func RunBuildRunningPodDeleteTest(t testingT, clusterAdminClient buildv1clienttyped.BuildsGetter, ...)
- func RunImageChangeTriggerTest(t testingT, clusterAdminBuildClient buildv1clienttyped.BuildV1Interface, ...)
- func TestWebhook(t g.GinkgoTInterface, oc *exutil.CLI)
- func TestWebhookGitHubPing(t g.GinkgoTInterface, oc *exutil.CLI)
- func TestWebhookGitHubPushWithImage(t g.GinkgoTInterface, oc *exutil.CLI)
- func TestWebhookGitHubPushWithImageStream(t g.GinkgoTInterface, oc *exutil.CLI)
Constants ¶
const ( // BuildStartedEventReason is the reason associated with the event registered when a build is started (pod is created). BuildStartedEventReason = "BuildStarted" // BuildStartedEventMessage is the message associated with the event registered when a build is started (pod is created). BuildStartedEventMessage = "Build %s/%s is now running" // BuildCompletedEventReason is the reason associated with the event registered when build completes successfully. BuildCompletedEventReason = "BuildCompleted" // BuildCompletedEventMessage is the message associated with the event registered when build completes successfully. BuildCompletedEventMessage = "Build %s/%s completed successfully" // BuildFailedEventReason is the reason associated with the event registered when build fails. BuildFailedEventReason = "BuildFailed" // BuildFailedEventMessage is the message associated with the event registered when build fails. BuildFailedEventMessage = "Build %s/%s failed" // BuildCancelledEventReason is the reason associated with the event registered when build is cancelled. BuildCancelledEventReason = "BuildCancelled" // BuildCancelledEventMessage is the message associated with the event registered when build is cancelled. BuildCancelledEventMessage = "Build %s/%s has been cancelled" )
Variables ¶
var ( // BuildControllerTestWait is the time that RunBuildControllerTest waits // for any other changes to happen when testing whether only a single build got processed BuildControllerTestWait = 10 * time.Second // BuildControllerTestTransitionTimeout is the time RunBuildControllerPodSyncTest waits // for a build trasition to occur after the pod's status has been updated BuildControllerTestTransitionTimeout = 60 * time.Second // BuildControllersWatchTimeout is used by all tests to wait for watch events. In case where only // a single watch event is expected, the test will fail after the timeout. // The value is 6 minutes to allow for a resync to occur, which allows for necessarily // reconciliation to occur in tests where events occur in a non-deterministic order. BuildControllersWatchTimeout = 360 * time.Second )
var ( // Decoder understands groupified and non-groupfied. It deals in internals for now, but will be updated later Decoder runtime.Decoder // EncoderScheme can identify types for serialization. We use this for the event recorder and other things that need to // identify external kinds. EncoderScheme = runtime.NewScheme() // Encoder always encodes to groupfied. Encoder runtime.Encoder )
Functions ¶
func BuildConfigBuilds ¶
func BuildConfigBuilds(c buildclientv1.BuildsGetter, namespace, name string, filterFunc buildFilter) ([]*buildv1.Build, error)
BuildConfigBuilds return a list of builds for the given build config. Optionally you can specify a filter function to select only builds that matches your criteria.
func BuildConfigSelector ¶
BuildConfigSelector returns a label Selector which can be used to find all builds for a BuildConfig.
func ExpectOpenShiftLabels ¶
ExpectOpenShiftLabels tests if built container image contains appropriate labels.
func GetBuildPodName ¶
GetBuildPodName returns name of the build pod.
func IsBuildComplete ¶
IsBuildComplete returns whether the provided build is complete or not
func IsTerminalPhase ¶
func IsTerminalPhase(phase buildv1.BuildPhase) bool
IsTerminalPhase returns true if the provided phase is terminal
func LabelValue ¶
LabelValue returns a string to use as a value for the Build label in a pod. If the length of the string parameter exceeds the maximum label length, the value will be truncated.
func RunBuildCompletePodDeleteTest ¶
func RunBuildCompletePodDeleteTest(t testingT, clusterAdminClient buildv1clienttyped.BuildsGetter, clusterAdminKubeClientset kubernetes.Interface, ns string)
func RunBuildConfigChangeControllerTest ¶
func RunBuildConfigChangeControllerTest(t testingT, clusterAdminBuildClient buildv1clienttyped.BuildV1Interface, ns string)
func RunBuildDeleteTest ¶
func RunBuildDeleteTest(t testingT, clusterAdminClient buildv1clienttyped.BuildsGetter, clusterAdminKubeClientset kubernetes.Interface, ns string)
func RunBuildRunningPodDeleteTest ¶
func RunBuildRunningPodDeleteTest(t testingT, clusterAdminClient buildv1clienttyped.BuildsGetter, clusterAdminKubeClientset kubernetes.Interface, ns string)
func RunImageChangeTriggerTest ¶
func RunImageChangeTriggerTest(t testingT, clusterAdminBuildClient buildv1clienttyped.BuildV1Interface, clusterAdminImageClient imagev1clienttyped.ImageV1Interface, ns string)
func TestWebhook ¶
func TestWebhook(t g.GinkgoTInterface, oc *exutil.CLI)
func TestWebhookGitHubPing ¶
func TestWebhookGitHubPing(t g.GinkgoTInterface, oc *exutil.CLI)
func TestWebhookGitHubPushWithImage ¶
func TestWebhookGitHubPushWithImage(t g.GinkgoTInterface, oc *exutil.CLI)
func TestWebhookGitHubPushWithImageStream ¶
func TestWebhookGitHubPushWithImageStream(t g.GinkgoTInterface, oc *exutil.CLI)
Types ¶
This section is empty.
Source Files ¶
- build_pruning.go
- build_timing.go
- buildconfigsecretinjector.go
- cluster_config.go
- completiondeadlineseconds.go
- contextdir.go
- controller_compat.go
- controllers.go
- custom_build.go
- digest.go
- docker_pullsecret.go
- dockerfile.go
- failure_status.go
- forcepull.go
- gitauth.go
- hooks.go
- image_source.go
- imagechangetriggers.go
- labels.go
- multistage.go
- new_app.go
- no_outputname.go
- nosrc.go
- optimized.go
- pipeline_jenkins_e2e.go
- pipeline_origin_bld.go
- proxy.go
- pullsecret.go
- remove_buildconfig.go
- revision.go
- run_policy.go
- s2i_dropcaps.go
- s2i_env.go
- s2i_incremental.go
- s2i_quota.go
- s2i_root.go
- secrets.go
- service.go
- start.go
- valuefrom.go
- webhook.go