Documentation
¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func GetNewImageName(instance *devopsv1alpha1.S2iRun, config devopsv1alpha1.S2iConfig) string
- type ReconcileS2iRun
- func (r *ReconcileS2iRun) GenerateNewJob(instance *devopsv1alpha1.S2iRun) (*batchv1.Job, error)
- func (r *ReconcileS2iRun) GetLogURL(job *batchv1.Job) (string, error)
- func (r *ReconcileS2iRun) NewConfigMap(instance *devopsv1alpha1.S2iRun, config devopsv1alpha1.S2iConfig, ...) (*corev1.ConfigMap, error)
- func (r *ReconcileS2iRun) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileS2iRun) ScaleWorkLoads(instance *devopsv1alpha1.S2iRun, builder *devopsv1alpha1.S2iBuilder) error
Constants ¶
const (
ConfigDataKey = "data"
)
const (
S2iRunBuilderLabel = "labels.devops.kubesphere.io/builder-name"
)
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new S2iRun Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.
func GetNewImageName ¶ added in v0.0.2
func GetNewImageName(instance *devopsv1alpha1.S2iRun, config devopsv1alpha1.S2iConfig) string
Types ¶
type ReconcileS2iRun ¶
ReconcileS2iRun reconciles a S2iRun object
func (*ReconcileS2iRun) GenerateNewJob ¶
func (r *ReconcileS2iRun) GenerateNewJob(instance *devopsv1alpha1.S2iRun) (*batchv1.Job, error)
func (*ReconcileS2iRun) GetLogURL ¶ added in v0.0.2
func (r *ReconcileS2iRun) GetLogURL(job *batchv1.Job) (string, error)
func (*ReconcileS2iRun) NewConfigMap ¶
func (r *ReconcileS2iRun) NewConfigMap(instance *devopsv1alpha1.S2iRun, config devopsv1alpha1.S2iConfig, template *devopsv1alpha1.UserDefineTemplate) (*corev1.ConfigMap, error)
func (*ReconcileS2iRun) Reconcile ¶
+kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=batch,resources=jobs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=devops.kubesphere.io,resources=s2iruns,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=devops.kubesphere.io,resources=s2iruns/status,verbs=get;update;patch +kubebuilder:rbac:groups=devops.kubesphere.io,resources=s2ibuildertemplates,verbs=get;list;watch +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch +kubebuilder:rbac:groups=extensions,resources=deployments,verbs=get;list;watch;create;update;patch +kubebuilder:rbac:groups=core,resources=secrets,verbs=get
func (*ReconcileS2iRun) ScaleWorkLoads ¶ added in v0.0.2
func (r *ReconcileS2iRun) ScaleWorkLoads(instance *devopsv1alpha1.S2iRun, builder *devopsv1alpha1.S2iBuilder) error
ScaleWorkLoads will auto scale workloads define in s2ibuilder's annotations