Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProfilePathFromSpec ¶
func GetProfilePathFromSpec(spec profilesv1.ProfileSubscriptionSpec) string
GetProfilePathFromSpec returns either the path to the profile in the repo. Extracted from the version field or directly from path
func SanitiseBranchName ¶
SanitiseBranchName makes the branch domain name friendly.
Types ¶
type Artifact ¶
Artifact contains the name and objects belonging to a profile artifact
func MakeArtifacts ¶
func MakeArtifacts(sub profilesv1.ProfileSubscription) ([]Artifact, error)
MakeArtifacts generates artifacts without owners for manual applying to a personal cluster.
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
Profile contains information and interfaces required for creating and managing profile artefacts (child resources)
type ProfileGetter ¶
type ProfileGetter func(repoURL, branch, path string) (profilesv1.ProfileDefinition, error)
ProfileGetter is a func that can fetch a profile definition
Click to show internal directories.
Click to hide internal directories.