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.
Copyright 2021 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
- func GetRootCloudCredentialsSecretData(cloudCredSecret *corev1.Secret, logger log.FieldLogger) (string, error)
- func SetRootCloudCredentialsSecretData(cloudCredSecret *corev1.Secret, clouds string)
- type OpenStackActuator
- func (a *OpenStackActuator) Create(ctx context.Context, cr *minterv1.CredentialsRequest) error
- func (a *OpenStackActuator) Delete(ctx context.Context, cr *minterv1.CredentialsRequest) error
- func (a *OpenStackActuator) Exists(ctx context.Context, cr *minterv1.CredentialsRequest) (bool, error)
- func (a *OpenStackActuator) GetCredentialsRootSecret(ctx context.Context, cr *minterv1.CredentialsRequest) (*corev1.Secret, error)
- func (a *OpenStackActuator) GetCredentialsRootSecretLocation() types.NamespacedName
- func (a *OpenStackActuator) IsTimedTokenCluster(c client.Client, ctx context.Context, logger log.FieldLogger) (bool, error)
- func (a *OpenStackActuator) Update(ctx context.Context, cr *minterv1.CredentialsRequest) error
- func (a *OpenStackActuator) Upgradeable(mode operatorv1.CloudCredentialsMode) *configv1.ClusterOperatorStatusCondition
Constants ¶
const ( RootOpenStackCredsSecretKey = "clouds.yaml" OpenStackCloudName = "openstack" CACertFile = "/etc/kubernetes/static-pod-resources/configmaps/cloud-config/ca-bundle.pem" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OpenStackActuator ¶
func NewOpenStackActuator ¶
func NewOpenStackActuator(client, rootCredClient client.Client) (*OpenStackActuator, error)
NewOpenStackActuator creates a new OpenStack actuator.
func (*OpenStackActuator) Create ¶
func (a *OpenStackActuator) Create(ctx context.Context, cr *minterv1.CredentialsRequest) error
Create the credentials.
func (*OpenStackActuator) Delete ¶
func (a *OpenStackActuator) Delete(ctx context.Context, cr *minterv1.CredentialsRequest) error
Delete credentials
func (*OpenStackActuator) Exists ¶
func (a *OpenStackActuator) Exists(ctx context.Context, cr *minterv1.CredentialsRequest) (bool, error)
Exists checks if the credentials currently exist.
func (*OpenStackActuator) GetCredentialsRootSecret ¶
func (a *OpenStackActuator) GetCredentialsRootSecret(ctx context.Context, cr *minterv1.CredentialsRequest) (*corev1.Secret, error)
func (*OpenStackActuator) GetCredentialsRootSecretLocation ¶
func (a *OpenStackActuator) GetCredentialsRootSecretLocation() types.NamespacedName
GetCredentialsRootSecretLocation returns the namespace and name where the parent credentials secret is stored.
func (*OpenStackActuator) IsTimedTokenCluster ¶
func (a *OpenStackActuator) IsTimedTokenCluster(c client.Client, ctx context.Context, logger log.FieldLogger) (bool, error)
func (*OpenStackActuator) Update ¶
func (a *OpenStackActuator) Update(ctx context.Context, cr *minterv1.CredentialsRequest) error
Update the credentials to the provided definition.
func (*OpenStackActuator) Upgradeable ¶
func (a *OpenStackActuator) Upgradeable(mode operatorv1.CloudCredentialsMode) *configv1.ClusterOperatorStatusCondition
Upgradeable returns a ClusterOperator status condition for the upgradeable type if the system is considered not upgradeable. Otherwise, return nil as the default value is for things to be upgradeable.