2 Copyright 2020 TATA ELXSI
4 Licensed under the Apache License, Version 2.0 (the 'License');
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
19 * @file Model for K8s related information.
22 /** Interface for K8SCLUSTERDATA */
23 export interface K8SCLUSTERDATA {
24 credentials: Credentials;
30 schema_version: string;
36 /** Interface for K8SCLUSTERDATA */
37 export interface K8SREPODATA {
40 schema_version: string;
47 /** Interface for the Credentials */
48 interface Credentials {
52 'current-context': string;
57 /** Interface for the Clusters */
62 /** Interface for the Cluster */
64 'certificate-authority-data': string;
67 /** Interface for the Contexts */
72 /** Interface for the Contexts */
77 /** Interface for the Users */
82 /** Interface for the Users */
84 'client-certificate-data': string;
85 'client-key-data': string;
87 /** Interface for the K8SCLUSTERDATA nets */
91 /** Interface for the K8SCLUSTERDATA _admin */
92 export interface Admin {
94 current_operation?: number;
95 'helm-chart'?: HelmChart;
96 'juju-bundle'?: JujuBundle;
97 operationalState?: string;
100 /** Interface for the K8SCLUSTERDATA _admin Helm chart */
101 interface HelmChart {
105 /** Interface for the K8SCLUSTERDATA _admin Juju Bundle */
106 interface JujuBundle {
109 /** Interface for the K8SCLUSTERDATA Return to Display */
110 export interface K8SCLUSTERDATADISPLAY {
113 operationalState: string;
118 description?: string;
122 /** Interface for the K8SCLUSTERDATA Return to Display */
123 export interface K8SREPODATADISPLAY {
131 description?: string;
136 /** Interface for the Create cluster */
137 export interface K8SCreateCLUSTERDATA {
139 description?: string,
140 k8s_version?: string,
144 'node_size/node_type'?: string,
147 infra_config_profiles?: ProfileMappings[];
151 /** Interface for the K8SCLUSTERDATA */
152 export interface K8SCREATEDATADISPLAY {
159 description?: string;
162 /** Interface for the Profile payload */
163 export interface INFRACONFIGPAYLOAD {
166 description?: string;
176 /** Interface for the KSU */
177 export interface KSU {
179 description?: string;
184 /** Interface for Project */
185 export interface PROFILE {
187 sw_catalog_path?: string;
188 profile_type?: string;
192 /** Interface for OKA */
193 export interface OKA {
195 sw_catalog_path?: string;
200 /** Interface for the K8S payload */
201 export interface K8SPayload {
204 vim_account?: string;
205 description?: string;
206 k8s_version?: string;
208 region_name?: string;
209 resource_group?: string;
210 'node_size'?: string;
213 /** Interface for Profile Mappings */
214 export interface ProfileMappings {
217 profile_name?: string;
220 /** Interface for profile mappings */
221 export interface ProfileMap {
222 add_profile?: ProjectRoleMappings[];
223 remove_profile?: ProjectRoleMappings[];
226 /** Interface for ProfileMappings */
227 export interface ProjectRoleMappings {