Documentation ¶
Overview ¶
* * * Copyright (c) 2020 WSO2 Inc. (http:www.wso2.org) All Rights Reserved. * * * * WSO2 Inc. licenses this file to you 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 (c) 2020 WSO2 Inc. (http:www.wso2.org) All Rights Reserved. * * * * WSO2 Inc. licenses this file to you 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 GetAccessModesFromString(modes string) []v1.PersistentVolumeAccessMode
- func MakeMysqlPvc(apimanager *apimv1alpha1.APIManager, sqlconf *PvcConfig) *corev1.PersistentVolumeClaim
- func MysqlDeployment(apimanager *apimv1alpha1.APIManager) *appsv1.Deployment
- func MysqlService(apimanager *apimv1alpha1.APIManager) *corev1.Service
- type PvcConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccessModesFromString ¶
func GetAccessModesFromString(modes string) []v1.PersistentVolumeAccessMode
GetAccessModesFromString returns an array of AccessModes from a string created by GetAccessModesAsString
func MakeMysqlPvc ¶
func MakeMysqlPvc(apimanager *apimv1alpha1.APIManager, sqlconf *PvcConfig) *corev1.PersistentVolumeClaim
func MysqlDeployment ¶
func MysqlDeployment(apimanager *apimv1alpha1.APIManager) *appsv1.Deployment
for handling mysql deployment
func MysqlService ¶
func MysqlService(apimanager *apimv1alpha1.APIManager) *corev1.Service
// for handling mysql service
Types ¶
type PvcConfig ¶
type PvcConfig struct { Name string AccessModes []v1.PersistentVolumeAccessMode ClaimSize string StorageClass *string PVCConfigmap string }
func AssignConfigMapValuesForMysqlPvc ¶
func AssignConfigMapValuesForMysqlPvc(apimanager *apimv1alpha1.APIManager, pvcConfWso2 *v1.ConfigMap) *PvcConfig