Documentation ¶
Overview ¶
Copyright 2023 The K8sGPT 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.
Copyright 2023 The K8sGPT 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.
Copyright 2023 The K8sGPT 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.
Copyright 2023 The K8sGPT 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.
Copyright 2023 The K8sGPT 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.
Copyright 2023 The K8sGPT 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.
Copyright 2023 The K8sGPT 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 ( ReconcileErrorInterval = 10 * time.Second ReconcileSuccessInterval = 30 * time.Second )
const (
FinalizerName = "k8sgpt.ai/finalizer"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisStep ¶ added in v0.2.0
type AnalysisStep struct {
// contains filtered or unexported fields
}
type ConfigureStep ¶ added in v0.2.0
type ConfigureStep struct {
// contains filtered or unexported fields
}
type FinalizerStep ¶ added in v0.2.0
type FinalizerStep struct {
// contains filtered or unexported fields
}
type K8sGPTInstance ¶ added in v0.2.0
type K8sGPTInstance struct {
// contains filtered or unexported fields
}
type K8sGPTReconciler ¶
type K8sGPTReconciler struct { client.Client Scheme *runtime.Scheme Integrations *integrations.Integrations SinkClient *sinks.Client K8sGPTClient *kclient.Client MetricsBuilder *metricspkg.MetricBuilder }
K8sGPTReconciler reconciles a K8sGPT object
func (*K8sGPTReconciler) FinishReconcile ¶ added in v0.2.0
func (*K8sGPTReconciler) Reconcile ¶
+kubebuilder:rbac:groups=core.k8sgpt.ai,resources=k8sgpts,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core.k8sgpt.ai,resources=k8sgpts/status,verbs=get;update;patch +kubebuilder:rbac:groups=core.k8sgpt.ai,resources=k8sgpts/finalizers,verbs=update +kubebuilder:rbac:groups=core.k8sgpt.ai,resources=results,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups="*",resources="*",verbs="*" +kubebuilder:rbac:groups="apiextensions.k8s.io",resources="*",verbs="*"
func (*K8sGPTReconciler) SetupWithManager ¶
func (r *K8sGPTReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PreAnalysisStep ¶ added in v0.2.0
type PreAnalysisStep struct {
// contains filtered or unexported fields
}
type ResultStatusStep ¶ added in v0.2.0
type ResultStatusStep struct {
// contains filtered or unexported fields
}