Documentation ¶
Index ¶
Constants ¶
const (
DefaultScaleDownDelay = 10 * time.Minute
)
const (
LabelKeyPodTemplateHash = "pod-template-hash"
)
const (
LabelKeyRunnerTemplateHash = "runner-template-hash"
)
Variables ¶
This section is empty.
Functions ¶
func CloneAndAddLabel ¶ added in v0.4.0
Clones the given map and returns a new map with the given key and value added. Returns the given map, if labelKey is empty.
Proudly copied from k8s.io/kubernetes/pkg/util/labels.CloneAndAddLabel
func ComputeHash ¶ added in v0.4.0
func ComputeHash(template interface{}) string
ComputeHash returns a hash value calculated from pod template and a collisionCount to avoid hash collision. The hash will be safe encoded to avoid bad words.
Proudly modified and adopted from k8s.io/kubernetes/pkg/util/hash.DeepHashObject and k8s.io/kubernetes/pkg/controller.ComputeHash.
Types ¶
type HorizontalRunnerAutoscalerReconciler ¶ added in v0.7.0
type HorizontalRunnerAutoscalerReconciler struct { client.Client GitHubClient *github.Client Log logr.Logger Recorder record.EventRecorder Scheme *runtime.Scheme }
HorizontalRunnerAutoscalerReconciler reconciles a HorizontalRunnerAutoscaler object
func (*HorizontalRunnerAutoscalerReconciler) SetupWithManager ¶ added in v0.7.0
func (r *HorizontalRunnerAutoscalerReconciler) SetupWithManager(mgr ctrl.Manager) error
type RunnerDeploymentReconciler ¶ added in v0.4.0
type RunnerDeploymentReconciler struct { client.Client Log logr.Logger Recorder record.EventRecorder Scheme *runtime.Scheme }
RunnerDeploymentReconciler reconciles a Runner object
func (*RunnerDeploymentReconciler) SetupWithManager ¶ added in v0.4.0
func (r *RunnerDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error
type RunnerReconciler ¶
type RunnerReconciler struct { client.Client Log logr.Logger Recorder record.EventRecorder Scheme *runtime.Scheme GitHubClient *github.Client RunnerImage string DockerImage string }
RunnerReconciler reconciles a Runner object
func (*RunnerReconciler) SetupWithManager ¶
func (r *RunnerReconciler) SetupWithManager(mgr ctrl.Manager) error
type RunnerReplicaSetReconciler ¶ added in v0.4.0
type RunnerReplicaSetReconciler struct { client.Client Log logr.Logger Recorder record.EventRecorder Scheme *runtime.Scheme GitHubClient *github.Client }
RunnerReplicaSetReconciler reconciles a Runner object
func (*RunnerReplicaSetReconciler) SetupWithManager ¶ added in v0.4.0
func (r *RunnerReplicaSetReconciler) SetupWithManager(mgr ctrl.Manager) error