Skip to content

Commit

Permalink
Merge pull request #12 from symbiosis-cloud/fix/input-pointers
Browse files Browse the repository at this point in the history
pointers only used in results, not in input structs
  • Loading branch information
thecodeassassin authored Oct 9, 2022
2 parents 1dcb761 + 1255639 commit 3b7da71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ type ServiceAccountInput struct {
SubjectId string `json:"subjectId"`
}

type ServiceAccount struct {
ID string `json:"id"`
KubeConfig string `json:"kubeConfig"`
ServiceAccountToken string `json:"serviceAccountToken"`
ClusterCertificateAuthority string `json:"clusterCertificateAuthority"`
}

type ClusterIdentity struct {
CertificatePem string `json:"certificatePem"`
PrivateKeyPem string `json:"privateKeyPem"`
Expand Down Expand Up @@ -171,13 +178,6 @@ func (c *ClusterServiceClient) ListNodes(clusterName string) (*NodeList, error)
return nodeList, nil
}

type ServiceAccount struct {
ID string `json:"id"`
KubeConfig string `json:"kubeConfig"`
ServiceAccountToken string `json:"serviceAccountToken"`
ClusterCertificateAuthority string `json:"clusterCertificateAuthority"`
}

func (c *ClusterServiceClient) CreateServiceAccountForSelf(clusterName string) (*ServiceAccount, error) {
var serviceAccount *ServiceAccount

Expand Down
8 changes: 4 additions & 4 deletions node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ type NodePool struct {
NodeTypeName string `json:"nodeTypeName"`
ClusterName string `json:"clusterName"`
DesiredQuantity int `json:"desiredQuantity"`
Labels []NodeLabel `json:"labels"`
Taints []NodeTaint `json:"taints"`
Labels []*NodeLabel `json:"labels"`
Taints []*NodeTaint `json:"taints"`
Nodes []*Node `json:"nodes"`
Autoscaling AutoscalingSettings `json:"autoscaling"`
}
Expand All @@ -51,8 +51,8 @@ type NodePoolInput struct {
ClusterName string `json:"clusterName"`
NodeTypeName string `json:"nodeTypeName"`
Quantity int `json:"quantity"`
Labels []*NodeLabel `json:"labels"`
Taints []*NodeTaint `json:"taints"`
Labels []NodeLabel `json:"labels"`
Taints []NodeTaint `json:"taints"`
Autoscaling AutoscalingSettings `json:"autoscaling"`
}

Expand Down

0 comments on commit 3b7da71

Please sign in to comment.