Skip to content

Commit

Permalink
fixes label for bucket access keys (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarededwards authored Mar 14, 2024
1 parent 7cef871 commit 8bb8d41
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/akamai/objectstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ import (
func (c *AkamaiConfiguration) CreateObjectStorageBucketAndKeys(clusterName string) (AkamaiBucketAndKeysConfiguration, error) {

// todo get rid of hardcode default
// this also has implications on the state store url in the gitops template. see tf state configurations
DEFAULT_CLUSTER := "us-east-1"
// todo look at this
// creds, err := c.checkKubefirstCredentials(credentialName, region)
// if err != nil {
// log.Info().Msg(err.Error())
// }

bucket, err := c.Client.CreateObjectStorageBucket(context.TODO(), linodego.ObjectStorageBucketCreateOptions{
Cluster: DEFAULT_CLUSTER,
Label: clusterName,
Expand All @@ -28,7 +21,7 @@ func (c *AkamaiConfiguration) CreateObjectStorageBucketAndKeys(clusterName strin
}

creds, err := c.Client.CreateObjectStorageKey(context.TODO(), linodego.ObjectStorageKeyCreateOptions{
Label: "clusterName",
Label: clusterName,
BucketAccess: &[]linodego.ObjectStorageKeyBucketAccess{
{
BucketName: clusterName,
Expand Down

0 comments on commit 8bb8d41

Please sign in to comment.