Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source defines a source that can fetch CRD data from a config map.
func (*Source) FetchCRD ¶
func (s *Source) FetchCRD(ctx context.Context, dir string, obj *v1alpha1.Bootstrap, revision string) (string, error)
FetchCRD fetches the latest CRD if there is an update available. The returned thing is the location to the CRD. This function should not return the CRD content as it could be several megabytes large.
func (*Source) HasUpdate ¶
HasUpdate returns true and the version if there is an update available. In case of a URL this would be the digest. This logic follows this general guide: - Fetch latest version that satisfies the constraint - Compare to last applied revision - Return true and the version if there is something to apply - Return false and empty string if there is nothing to apply.