Documentation ¶
Overview ¶
Copyright 2019 The OpenShift 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
- type KubevirtActuator
- func (a *KubevirtActuator) Create(ctx context.Context, cr *minterv1.CredentialsRequest) error
- func (a *KubevirtActuator) Delete(ctx context.Context, cr *minterv1.CredentialsRequest) error
- func (a *KubevirtActuator) Exists(ctx context.Context, cr *minterv1.CredentialsRequest) (bool, error)
- func (a *KubevirtActuator) GetCredentialsRootSecret(ctx context.Context, cr *minterv1.CredentialsRequest) (*corev1.Secret, error)
- func (a *KubevirtActuator) GetCredentialsRootSecretLocation() types.NamespacedName
- func (a *KubevirtActuator) Update(ctx context.Context, cr *minterv1.CredentialsRequest) error
- func (a *KubevirtActuator) Upgradeable(mode operatorv1.CloudCredentialsMode) *configv1.ClusterOperatorStatusCondition
Constants ¶
const (
KubevirtCredentialsSecretKey = "kubeconfig"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubevirtActuator ¶
func NewActuator ¶
func NewActuator(client client.Client) (*KubevirtActuator, error)
NewActuator creates a new Kubevirt actuator.
func (*KubevirtActuator) Create ¶
func (a *KubevirtActuator) Create(ctx context.Context, cr *minterv1.CredentialsRequest) error
Create the credentials.
func (*KubevirtActuator) Delete ¶
func (a *KubevirtActuator) Delete(ctx context.Context, cr *minterv1.CredentialsRequest) error
Delete credentials
func (*KubevirtActuator) Exists ¶
func (a *KubevirtActuator) Exists(ctx context.Context, cr *minterv1.CredentialsRequest) (bool, error)
Exists checks if the credentials currently exist. TODO: in the future validate the expiration of the credentials
func (*KubevirtActuator) GetCredentialsRootSecret ¶
func (a *KubevirtActuator) GetCredentialsRootSecret(ctx context.Context, cr *minterv1.CredentialsRequest) (*corev1.Secret, error)
func (*KubevirtActuator) GetCredentialsRootSecretLocation ¶
func (a *KubevirtActuator) GetCredentialsRootSecretLocation() types.NamespacedName
GetCredentialsRootSecretLocation returns the namespace and name where the parent credentials secret is stored.
func (*KubevirtActuator) Update ¶
func (a *KubevirtActuator) Update(ctx context.Context, cr *minterv1.CredentialsRequest) error
Update the credentials to the provided definition.
func (*KubevirtActuator) Upgradeable ¶
func (a *KubevirtActuator) Upgradeable(mode operatorv1.CloudCredentialsMode) *configv1.ClusterOperatorStatusCondition