publish

package
v0.0.0-...-c0404c8 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIndexOutOfDate = errors.New("index is out-of-date")

Functions

func Docker

func Docker(manifest model.Manifest, hub string, tags []string, cosignkey string) error

Docker publishes all images to the given hub

func FetchObject

func FetchObject(bkt *storage.BucketHandle, objectPrefix string, filename string) ([]byte, error)

func GcsArchive

func GcsArchive(manifest model.Manifest, bucket string, aliases []string) error

GcsArchive publishes the final release archive to the given GCS bucket

func GetPublishCommand

func GetPublishCommand() *cobra.Command

func Github

func Github(manifest model.Manifest, githubOrg string, githubToken string) error

Github triggers a complete release to github. This includes tagging all source branches, and publishing a release to the main istio repo.

func GithubRelease

func GithubRelease(manifest model.Manifest, client *github.Client, githuborg string) error

GithubRelease publishes a release.

func GithubTag

func GithubTag(client *github.Client, org string, repo string, version string, goVersionEnabled bool, sha string) error

GithubTag tags a given repo with a version

func GithubUploadReleaseAssets

func GithubUploadReleaseAssets(ctx context.Context, manifest model.Manifest, client *github.Client, githuborg string, rel *github.RepositoryRelease) error

func Grafana

func Grafana(manifest model.Manifest, token string) error

Grafana publishes the grafana dashboards to grafana.com

func Helm

func Helm(manifest model.Manifest, bucket string, hub string) error

Helm publishes charts to the given GCS bucket

func MutateObject

func MutateObject(outDir string, bkt *storage.BucketHandle, objectPrefix string, filename string, f func() error) error

MutateObject allows pulling a file from GCS, mutating it, then pushing it back up. This adds checks to ensure that if the file is mutated in the meantime, the process is repeated.

func NewGCSClient

func NewGCSClient(ctx context.Context) (*storage.Client, error)

func Publish

func Publish(manifest model.Manifest) error

Types

type Image

type Image struct {
	OriginalTag string
	NewTag      string
	Variant     string // May be empty for default variant
	Image       string
}

Image defines a single docker image. There are potentially many Image outputs for each .tar.gz - this represents the fully expanded form. Example:

Image{
	 OriginalTag: "localhost/proxyv2:original", // Hub from manifest
	 NewTag:      "gcr.io/istio-release/proxyv2:new", // Hub from --dockerhubs and --dockertags
	 Variant      "",
	 Image        "proxyv2",
}

An image also logically containers an "Architecture" component. However, we want to merge based on arch, so we use this as a `map[Image][]architecture{}

func (Image) NewReference

func (i Image) NewReference(arch string) string

func (Image) OriginalReference

func (i Image) OriginalReference(arch string) string

func (Image) VariantSuffix

func (i Image) VariantSuffix() string

Jump to

Keyboard shortcuts

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