Documentation ¶
Overview ¶
Copyright 2021 Red Hat, Inc.
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 2021 Red Hat, Inc.
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 2021 Red Hat, Inc.
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 2021 Red Hat, Inc.
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 ¶
- func AuthorinoImage() (string, error)
- func CheckDeploymentAvailable(k8sClient client.Client, key types.NamespacedName) (bool, error)
- func CreateOnlyK8SObject(k8sClient client.Client, obj runtime.Object) error
- func CreateOnlyMutator(existing, desired client.Object) (bool, error)
- func CreateOrUpdateK8SObject(k8sClient client.Client, obj runtime.Object) error
- func DecodeFile(fileData []byte, scheme *runtime.Scheme, cb DecodeCallback) error
- func DeleteK8SObject(k8sClient client.Client, obj runtime.Object) error
- func IsDeploymentAvailable(dc *appsv1.Deployment) bool
- func IstioImage() (string, error)
- func KuadrantAPIBasicMutator(existingObj, desiredObj client.Object) (bool, error)
- func KuadrantControllerImage() (string, error)
- func LimitadorOperatorImage() (string, error)
- func ParseURL(str string) (*url.URL, bool)
- func ReadExternalResource(resource string) ([]byte, error)
- func ReadURL(location *url.URL) ([]byte, error)
- func ReconcileKuadrantAPI(k8sClient client.Client, desired *kctlrv1beta1.API, mutatefn MutateFn) error
- func ReconcileResource(k8sClient client.Client, ctx context.Context, obj, desired client.Object, ...) error
- func SetupScheme() error
- func ValidateOAS3(docRaw []byte) error
- type DecodeCallback
- type MutateFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorinoImage ¶
func CreateOnlyK8SObject ¶
func CreateOrUpdateK8SObject ¶
func DecodeFile ¶
func DecodeFile(fileData []byte, scheme *runtime.Scheme, cb DecodeCallback) error
func IsDeploymentAvailable ¶
func IsDeploymentAvailable(dc *appsv1.Deployment) bool
IsDeploymentAvailable returns true when the provided Deployment has the "Available" condition set to true
func IstioImage ¶
func KuadrantAPIBasicMutator ¶
func KuadrantControllerImage ¶
func LimitadorOperatorImage ¶
func ReadExternalResource ¶
ReadExternalResource reads data streams from external resources. Currently implemented: - '-' for STDIN - URLs (HTTP[S]) - Files
func ReconcileKuadrantAPI ¶
func ReconcileResource ¶
func ReconcileResource(k8sClient client.Client, ctx context.Context, obj, desired client.Object, mutateFn MutateFn) error
ReconcileResource attempts to mutate the existing state in order to match the desired state. The object's desired state must be reconciled with the existing state inside the passed in callback MutateFn.
obj: Object of the same type as the 'desired' object.
Used to read the resource from the kubernetes cluster. Could be zero-valued initialized object.
desired: Object representing the desired state
It returns an error.
func SetupScheme ¶
func SetupScheme() error