Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apis/cloud/v1alpha1/credential_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ type AzureStorageCredential struct {
type AWSCredential struct {
AccessKeyID string `json:"accessKeyID"`
SecretAccessKey string `json:"secretAccessKey"`
SessionToken string `json:"sessionToken"`
}

type PacketCredential struct {
Expand Down
23 changes: 16 additions & 7 deletions apis/cluster/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,23 @@ type BasicInfo struct {
HubClusterID string `json:"hubClusterID,omitempty"`
}

// +kubebuilder:validation:Enum=IRSA;PodIdentity
type EksAuthMode string

const (
EksAuthModeIRSA EksAuthMode = "IRSA"
EksAuthModePodIdentity EksAuthMode = "PodIdentity"
)

type ProviderOptions struct {
Name string `json:"name"`
Credential string `json:"credential,omitempty"`
ClusterID string `json:"clusterID,omitempty"`
Project string `json:"project,omitempty"`
Region string `json:"region,omitempty"`
ResourceGroup string `json:"resourceGroup,omitempty"`
KubeConfig string `json:"kubeConfig,omitempty"`
Name string `json:"name"`
Credential string `json:"credential,omitempty"`
EksAuthMode EksAuthMode `json:"eksAuthMode,omitempty"`
ClusterID string `json:"clusterID,omitempty"`
Project string `json:"project,omitempty"`
Region string `json:"region,omitempty"`
ResourceGroup string `json:"resourceGroup,omitempty"`
KubeConfig string `json:"kubeConfig,omitempty"`
}

type ComponentOptions struct {
Expand Down
3 changes: 3 additions & 0 deletions crds/cloud.appscode.com_credentials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ spec:
type: string
secretAccessKey:
type: string
sessionToken:
type: string
required:
- accessKeyID
- secretAccessKey
- sessionToken
type: object
azure:
properties:
Expand Down
Loading