Parcourir la source

fix spacing, add comments

AjayTripathy il y a 7 ans
Parent
commit
7c24bf58a2
4 fichiers modifiés avec 12 ajouts et 3 suppressions
  1. 3 3
      cloud/aws.json
  2. 3 0
      cloud/awsprovider.go
  3. 3 0
      cloud/gcpprovider.go
  4. 3 0
      cloud/provider.go

+ 3 - 3
cloud/aws.json

@@ -13,8 +13,8 @@
     "awsSpotDataBucket": "kc-test-spot",
     "awsSpotDataPrefix": "spotdata",
     "athenaBucketName": "s3://aws-athena-query-results-530337586275-us-east-1",
-	"athenaRegion": "us-east-1",
-	"athenaDatabase": "athenacurcfn_athena_test",
-	"athenaTable": "athena_test",
+    "athenaRegion": "us-east-1",
+    "athenaDatabase": "athenacurcfn_athena_test",
+    "athenaTable": "athena_test",
     "projectID": "530337586275"
 }

+ 3 - 0
cloud/awsprovider.go

@@ -709,6 +709,9 @@ func (*AWS) GetDisks() ([]byte, error) {
 	return json.Marshal(volumeResult)
 }
 
+// ExternalAllocations represents tagged assets outside the scope of kubernetes.
+// "start" and "end" are dates of the format YYYY-MM-DD
+// "aggregator" is the tag used to determine how to allocate those assets, ie namespace, pod, etc.
 func (a *AWS) ExternalAllocations(start string, end string, aggregator string) ([]*OutOfClusterAllocation, error) {
 	customPricing, err := a.GetConfig()
 	if err != nil {

+ 3 - 0
cloud/gcpprovider.go

@@ -149,6 +149,9 @@ func (gcp *GCP) UpdateConfig(r io.Reader, updateType string) (*CustomPricing, er
 
 }
 
+// ExternalAllocations represents tagged assets outside the scope of kubernetes.
+// "start" and "end" are dates of the format YYYY-MM-DD
+// "aggregator" is the tag used to determine how to allocate those assets, ie namespace, pod, etc.
 func (gcp *GCP) ExternalAllocations(start string, end string, aggregator string) ([]*OutOfClusterAllocation, error) {
 	c, err := GetDefaultPricingData("gcp.json")
 	if err != nil {

+ 3 - 0
cloud/provider.go

@@ -259,6 +259,9 @@ func (c *CustomProvider) GetKey(labels map[string]string) Key {
 	}
 }
 
+// ExternalAllocations represents tagged assets outside the scope of kubernetes.
+// "start" and "end" are dates of the format YYYY-MM-DD
+// "aggregator" is the tag used to determine how to allocate those assets, ie namespace, pod, etc.
 func (*CustomProvider) ExternalAllocations(start string, end string, aggregator string) ([]*OutOfClusterAllocation, error) {
 	return nil, nil // TODO: transform the QuerySQL lines into the new OutOfClusterAllocation Struct
 }