Documentation
¶
Overview ¶
Package bundle contains tools for managing container images for internet-disconnected systems.\.
Index ¶
- Constants
- func IsBlocked(cfg v1alpha1.ImageSetConfiguration, imgRef reference.DockerImageReference) bool
- func MakeCreateDirs(rootDir string) error
- func ReconcileBlobs(meta v1alpha1.Metadata, sourceDir string) (newBlobs []v1alpha1.Blob, err error)
- func ReconcileManifests(sourceDir string) (manifests []v1alpha1.Manifest, err error)
- type AdditionalOptions
- type Client
- type Error
- type HelmOptions
- type ReleaseOptions
- type Update
Constants ¶
const ( UpdateUrl string = "https://api.openshift.com/api/upgrades_info/v1/graph" OkdUpdateURL string = "https://origin-release.ci.openshift.org/graph" )
const ( // GraphMediaType is the media-type specified in the HTTP Accept header // of requests sent to the Cincinnati-v1 Graph API. GraphMediaType = "application/json" )
Variables ¶
This section is empty.
Functions ¶
func IsBlocked ¶
func IsBlocked(cfg v1alpha1.ImageSetConfiguration, imgRef reference.DockerImageReference) bool
IsBlocked will return a boolean value on whether an image is specified as blocked in the BundleSpec
func MakeCreateDirs ¶
func ReconcileBlobs ¶
ReconcileBlobs gather all blobs that were collected during a run and checks against the current list
Types ¶
type AdditionalOptions ¶
type AdditionalOptions struct {
cli.RootOptions
}
func NewAdditionalOptions ¶
func NewAdditionalOptions(ro cli.RootOptions) *AdditionalOptions
func (*AdditionalOptions) GetAdditional ¶
func (o *AdditionalOptions) GetAdditional(cfg v1alpha1.ImageSetConfiguration, imageList []v1alpha1.AdditionalImages) (image.AssociationSet, error)
GetAdditional downloads specified images in the imageset-config.yaml under mirror.additonalImages
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Cincinnati client which can be used to fetch update graphs from an upstream Cincinnati stack.
func (Client) GetChannelLatest ¶
func (Client) GetUpdates ¶
func (c Client) GetUpdates(ctx context.Context, uri *url.URL, arch string, channel string, version semver.Version) (Update, []Update, error)
GetUpdates fetches the current and next-applicable update payloads from the specified upstream Cincinnati stack given the current version and channel. The next- applicable updates are determined by downloading the update graph, finding the current version within that graph (typically the root node), and then finding all of the children. These children are the available updates for the current version and their payloads indicate from where the actual update image can be downloaded.
type Error ¶
type Error struct {
// Reason is the reason suggested for the ClusterOperator status condition.
Reason string
// Message is the message suggested for the ClusterOperator status condition.
Message string
// contains filtered or unexported fields
}
Error is returned when are unable to get updates.
type HelmOptions ¶
type HelmOptions struct {
cli.RootOptions
// contains filtered or unexported fields
}
func NewHelmOptions ¶
func NewHelmOptions(ro cli.RootOptions) *HelmOptions
func (*HelmOptions) PullCharts ¶
func (h *HelmOptions) PullCharts(cfg v1alpha1.ImageSetConfiguration) (image.AssociationSet, error)
type ReleaseOptions ¶
type ReleaseOptions struct {
cli.RootOptions
// contains filtered or unexported fields
}
ReleaseOptions configures either a Full or Diff mirror operation on a particular release image.
func NewReleaseOptions ¶
func NewReleaseOptions(ro cli.RootOptions, flags *pflag.FlagSet) *ReleaseOptions
NewReleaseOptions defaults ReleaseOptions.
func (*ReleaseOptions) GetReleasesDiff ¶
func (o *ReleaseOptions) GetReleasesDiff(_ v1alpha1.PastMirror, cfg v1alpha1.ImageSetConfiguration) (image.AssociationSet, error)
func (*ReleaseOptions) GetReleasesInitial ¶
func (o *ReleaseOptions) GetReleasesInitial(cfg v1alpha1.ImageSetConfiguration) (image.AssociationSet, error)
type Update ¶
type Update node
Update is a single node from the update graph.
func GetLatestVersion ¶
func GetLatestVersion(ch v1alpha1.ReleaseChannel, url, arch string) (Update, error)