Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
Adding Generated Code for Dynamo Data Variable
Browse files Browse the repository at this point in the history
**Why:**

* Copy and pasted code and using the wrong name in my model file

Signed-off-by: Christopher Hein <me@christopherhein.com>
  • Loading branch information
christopherhein committed Sep 7, 2018
1 parent 1d1d06a commit 223ab92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/operator/dynamodb/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ func syncAdditionalResources(config *config.Config, s *awsV1alpha1.DynamoDB) (er
resource = resource.DeepCopy()

configmaps := []string{}
s3BucketCMData := map[string]string{
dynamoCMData := map[string]string{
"tableName": "{{.Obj.Output.TableName}}",
"tableARN": "{{.Obj.Output.TableARN}}",
"region": "{{.Config.Region}}",
}
s3BucketCM := helpers.CreateConfigMap(config, s, s.Name, s.Namespace, s3BucketCMData)
configmaps = append(configmaps, s3BucketCM)
dynamoCM := helpers.CreateConfigMap(config, s, s.Name, s.Namespace, dynamoCMData)
configmaps = append(configmaps, dynamoCM)
resource.AdditionalResources.ConfigMaps = configmaps

_, err = clientSet.DynamoDBs(s.Namespace).Update(resource)
Expand Down

0 comments on commit 223ab92

Please sign in to comment.