resultdb

package
v0.0.0-...-35d8de9 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

Deployment

Deployment consists of four phases:

  1. build binary locally;
  2. build Docker image locally;
  3. push Docker image to Google Container Registry;
  4. apply any deployment configuration changes.

NOTE: The makefile that provides these four steps is intended only for dev use!

Before starting, ensure the kubectl context is set appropriately with e.g.

gcloud container cluster get-credentials [cluster name] --project luci-test-results-dev --zone [cluster zone]
kubectl config use-context [correct context]

Use kubectl config view to determine the correct context.

In each of the below commands, specify the targeted service with service=[recorder] as a parameter.

make build

Build the binary locally for local testing. The resulting binary is in ./bin.

make image

Build an image with the binary built from local code. The resulting image is tagged with [most recent, possibly local commit]-tainted

Depends on build.

make upload

Upload the image built with the binary built from local code. The resulting image is uploaded to chops-public-images-dev.

Depends on image.

make deploy

Applies the service deployment .yaml. Make sure to set the image tag to the correct image!

Because pods will not pick up a different image with the same tag, we patch the deployment with a timestamp.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VariantDefMap

type VariantDefMap map[string]string

VariantDefMap contains the key:val pairs that define a Variant.

It is the "Def" part of a VariantDef proto.

func MergeTestVariantMaps

func MergeTestVariantMaps(maps ...VariantDefMap) VariantDefMap

MergeTestVariantMaps gets the test variant def from merging the input maps.

If multiple maps define the same key, the last one wins.

func (VariantDefMap) ID

func (d VariantDefMap) ID() string

ID returns a hex SHA256 hash of newline-joined "<key>:<val>" strings from the variant as an ID.

func (VariantDefMap) Proto

func (d VariantDefMap) Proto() *pb.VariantDef

Proto converts the VariantDefMap to a pb.VariantDef proto.

func (VariantDefMap) SortedKeys

func (d VariantDefMap) SortedKeys() []string

SortedKeys returns the keys in the variant def as a sorted slice.

func (VariantDefMap) Validate

func (d VariantDefMap) Validate() error

Validate validates the receiver VariantDefMap by checking characters and length of the keys and values.

Directories

Path Synopsis
Package pbutil implements utility functions for ResultDB protobuf messages.
Package pbutil implements utility functions for ResultDB protobuf messages.
proto
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL