-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathcontrol_plane_config.go
61 lines (45 loc) · 1.86 KB
/
control_plane_config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
Copyright 2022 VMware, Inc. All Rights Reserved.
SPDX-License-Identifier: MPL-2.0
*/
package models
import (
"github.com/go-openapi/swag"
)
// VmwareTanzuManageV1alpha1EksclusterControlPlaneConfig The EKS cluster config.
//
// swagger:model vmware.tanzu.manage.v1alpha1.ekscluster.ControlPlaneConfig
type VmwareTanzuManageV1alpha1EksclusterControlPlaneConfig struct {
// Kubernetes Network Config.
KubernetesNetworkConfig *VmwareTanzuManageV1alpha1EksclusterKubernetesNetworkConfig `json:"kubernetesNetworkConfig,omitempty"`
// EKS logging configuration.
Logging *VmwareTanzuManageV1alpha1EksclusterLogging `json:"logging,omitempty"`
// ARN of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations.
RoleArn string `json:"roleArn,omitempty"`
// The metadata to apply to the cluster to assist with categorization and organization.
Tags map[string]string `json:"tags,omitempty"`
// Kubernetes version of the cluster.
Version string `json:"version,omitempty"`
// VPC config.
Vpc *VmwareTanzuManageV1alpha1EksclusterVPCConfig `json:"vpc,omitempty"`
// EKS addons configuration.
AddonsConfig *VmwareTanzuManageV1alpha1EksclusterAddonsConfig `json:"addonsConfig,omitempty"`
// Authentication mode for the cluster.
AuthenticationMode VmwareTanzuManageV1alpha1EksclusterAuthenticationMode `json:"authenticationMode,omitempty"`
}
// MarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1EksclusterControlPlaneConfig) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation.
func (m *VmwareTanzuManageV1alpha1EksclusterControlPlaneConfig) UnmarshalBinary(b []byte) error {
var res VmwareTanzuManageV1alpha1EksclusterControlPlaneConfig
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}