kubevirt

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

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

View Source
const (
	KubevirtCredentialsSecretKey = "kubeconfig"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubevirtActuator

type KubevirtActuator struct {
	Client client.Client
}

func NewActuator

func NewActuator(client client.Client) (*KubevirtActuator, error)

NewActuator creates a new Kubevirt actuator.

func (*KubevirtActuator) Create

Create the credentials.

func (*KubevirtActuator) Delete

Delete credentials

func (*KubevirtActuator) Exists

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

Update the credentials to the provided definition.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL