-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new fields for cluster access.
- Loading branch information
Jesten Herrild
committed
Mar 18, 2024
1 parent
102b2ad
commit 2efa136
Showing
4 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
Copyright 2022 VMware, Inc. All Rights Reserved. | ||
SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
|
||
package models | ||
|
||
import ( | ||
"github.com/go-openapi/swag" | ||
) | ||
|
||
// VmwareTanzuManageV1alpha1EksclusterAccessEntry EKS cluster IAM Access Entry. | ||
// | ||
// swagger:model vmware.tanzu.manage.v1alpha1.ekscluster.AccessEntry | ||
type VmwareTanzuManageV1alpha1EksclusterAccessEntry struct { | ||
|
||
// The AccessEntry will be primary if the value is set to true. | ||
IsPrimary bool `json:"isPrimary,omitempty"` | ||
|
||
// The user name to which the access entry is associated. | ||
UserName string `json:"userName,omitempty"` | ||
|
||
// The group names to which the access entry is associated. | ||
GroupNames []string `json:"groupNames,omitempty"` | ||
|
||
// Tags applied to AccessEntry. | ||
Tags map[string]string `json:"tags,omitempty"` | ||
} | ||
|
||
// MarshalBinary interface implementation. | ||
func (m *VmwareTanzuManageV1alpha1EksclusterAccessEntry) MarshalBinary() ([]byte, error) { | ||
if m == nil { | ||
return nil, nil | ||
} | ||
|
||
return swag.WriteJSON(m) | ||
} | ||
|
||
// UnmarshalBinary interface implementation. | ||
func (m *VmwareTanzuManageV1alpha1EksclusterAccessEntry) UnmarshalBinary(b []byte) error { | ||
var res VmwareTanzuManageV1alpha1EksclusterAccessEntry | ||
if err := swag.ReadJSON(b, &res); err != nil { | ||
return err | ||
} | ||
|
||
*m = res | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
Copyright 2024 VMware, Inc. All Rights Reserved. | ||
SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
|
||
package models | ||
|
||
const () | ||
|
||
// VmwareTanzuManageV1alpha1EksclusterAuthenticationMode The EKS authentication mode. | ||
// | ||
// - API: Controlled only by API. | ||
// - API_AND_CONFIG_MAP: Controlled by API and by config map. | ||
// - CONFIG_MAP: Controlled only by config map. | ||
// | ||
// swagger:model vmware.tanzu.manage.v1alpha1.ekscluster.AuthenticationMode | ||
type VmwareTanzuManageV1alpha1EksclusterAuthenticationMode string | ||
|
||
func NewVmwareTanzuManageV1alpha1EksAuthenticationMode(value VmwareTanzuManageV1alpha1EksclusterPhase) *VmwareTanzuManageV1alpha1EksclusterPhase { | ||
return &value | ||
} | ||
|
||
// Pointer returns a pointer to a freshly-allocated VmwareTanzuManageV1alpha1EksclusterAuthenticationMode. | ||
func (m VmwareTanzuManageV1alpha1EksclusterAuthenticationMode) Pointer() *VmwareTanzuManageV1alpha1EksclusterAuthenticationMode { | ||
return &m | ||
} | ||
|
||
const ( | ||
|
||
// VmwareTanzuManageV1alpha1EksclusterAuthenticationModeAPI captures enum value "API". | ||
VmwareTanzuManageV1alpha1EksclusterAuthenticationModeAPI VmwareTanzuManageV1alpha1EksclusterPhase = "API" | ||
|
||
// VmwareTanzuManageV1alpha1EksclusterAuthenticationModeAPIANDCONFIGMAP captures enum value "API_AND_CONFIG_MAP". | ||
VmwareTanzuManageV1alpha1EksclusterAuthenticationModeAPIANDCONFIGMAP VmwareTanzuManageV1alpha1EksclusterPhase = "API_AND_CONFIG_MAP" | ||
|
||
// VmwareTanzuManageV1alpha1EksclusterAuthenticationModeCONFIGMAP captures enum value "CONFIG_MAP". | ||
VmwareTanzuManageV1alpha1EksclusterAuthenticationModeCONFIGMAP VmwareTanzuManageV1alpha1EksclusterPhase = "CONFIG_MAP" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.