Documentation ¶
Overview ¶
Copyright 2020 The Kubernetes authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const FinalizerName = "canary.canaries.flanksource.com"
const TopologyFinalizerName = "topology.canaries.flanksource.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanaryReconciler ¶
type CanaryReconciler struct {
LogPass, LogFail bool
client.Client
dutyContext.Context
Log logr.Logger
Scheme *runtime.Scheme
Events record.EventRecorder
Cron *cron.Cron
RunnerName string
Done chan *pkg.CheckResult
CanaryCache *cache.Cache
}
CanaryReconciler reconciles a Canary object
func (*CanaryReconciler) Reconcile ¶
func (r *CanaryReconciler) Reconcile(parentCtx gocontext.Context, req ctrl.Request) (ctrl.Result, error)
+kubebuilder:rbac:groups=canaries.flanksource.com,resources=canaries,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=canaries.flanksource.com,resources=canaries/status,verbs=get;update;patch +kubebuilder:rbac:groups="",resources=pods/exec,verbs=* +kubebuilder:rbac:groups="",resources=pods/logs,verbs=*
func (*CanaryReconciler) Report ¶
func (r *CanaryReconciler) Report()
func (*CanaryReconciler) SetupWithManager ¶
func (r *CanaryReconciler) SetupWithManager(mgr ctrl.Manager) error
type TopologyReconciler ¶ added in v0.38.266
type TopologyReconciler struct { dutyContext.Context client.Client Log logr.Logger Scheme *runtime.Scheme Events record.EventRecorder RunnerName string }
TopologyReconciler reconciles a Canary object
func (*TopologyReconciler) Reconcile ¶ added in v0.38.266
func (r *TopologyReconciler) Reconcile(ctx gocontext.Context, req ctrl.Request) (ctrl.Result, error)
+kubebuilder:rbac:groups=canaries.flanksource.com,resources=topologies,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=canaries.flanksource.com,resources=topologies/status,verbs=get;update;patch
func (*TopologyReconciler) SetupWithManager ¶ added in v0.38.266
func (r *TopologyReconciler) SetupWithManager(mgr ctrl.Manager) error