Documentation ¶
Index ¶
- Constants
- func IsCompatibleVersion(fromVer, toVer string) error
- func MatchVersion(dataDir, semverRange string) (string, error)
- func MkdirTempAbs(dir, pattern string) (string, error)
- func PullArtifact(ctx context.Context, ociURL, dstDir string) (string, error)
- type ArtifactStorage
- type ComponentImage
- type Options
- type Result
- type Sync
Constants ¶
const ProfileMultitenant = `` /* 802-byte string literal not displayed */
const ProfileOpenShift = `` /* 501-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func IsCompatibleVersion ¶
IsCompatibleVersion checks if the version upgrade is compatible. It returns an error if a downgrade to a lower minor version is attempted.
func MatchVersion ¶
MatchVersion returns the latest version dir path that matches the given semver range.
func MkdirTempAbs ¶
MkdirTempAbs creates a tmp dir and returns the absolute path to the dir. This is required since certain OSes like MacOS create temporary files in e.g. `/private/var`, to which `/var` is a symlink.
Types ¶
type ArtifactStorage ¶ added in v0.2.0
ArtifactStorage represents the source-controller PVC.
type ComponentImage ¶ added in v0.1.0
ComponentImage represents a container image used by a component.
func ExtractComponentImages ¶ added in v0.1.0
func ExtractComponentImages(srcDir string, opts Options) ([]ComponentImage, error)
ExtractComponentImages reads the source directory and extracts the container images from the components manifests.
func ExtractComponentImagesWithDigest ¶ added in v0.5.0
func ExtractComponentImagesWithDigest(srcDir string, opts Options) (images []ComponentImage, err error)
ExtractComponentImagesWithDigest reads the source directory and extracts the container images with digest from the kustomize images patches.
type Options ¶
type Options struct { Version string Namespace string Components []string ComponentImages []ComponentImage EventsAddr string Registry string ImagePullSecret string WatchAllNamespaces bool NetworkPolicy bool LogLevel string NotificationController string ClusterDomain string TolerationKeys []string Patches string ArtifactStorage *ArtifactStorage Sync *Sync }
Options defines the builder configuration.
func MakeDefaultOptions ¶
func MakeDefaultOptions() Options
MakeDefaultOptions returns the default builder configuration.
type Result ¶
type Result struct { Version string Digest string Revision string Objects []*unstructured.Unstructured ComponentImages []ComponentImage }
Result holds the build result.