Documentation ¶
Overview ¶
based on https://gist.github.com/ahmetb/548059cdbf12fb571e4e2f1e29c48997
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitalStatusUpdate ¶
func InitalStatusUpdate(ctx context.Context, client *github.Client, cluster *clustersv1alpha2.TestClusterGKE) error
InitalStatusUpdate assumes that SetMetdata was called and makes a direct update to GitHub status API, which may result in an error
func ParsePushEvent ¶
func SetMetadata ¶
func SetMetadata(cluster *clustersv1alpha2.TestClusterGKE, commitHash, repoOwner, repoName, context string)
Types ¶
type StatusUpdater ¶
type StatusUpdater struct {
// contains filtered or unexported fields
}
func NewStatusUpdater ¶
func NewStatusUpdater(log logr.Logger, meta metav1.ObjectMeta) *StatusUpdater
NewStatusUpdater constructs an updater to be used in controller context, it only logs errors, so doesn't introduce reconciliation failures
Click to show internal directories.
Click to hide internal directories.