summaryrefslogtreecommitdiffstats
path: root/roles/openshift_aws/filter_plugins/openshift_aws_filters.py
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-11-03 05:42:59 -0700
committerGitHub <noreply@github.com>2017-11-03 05:42:59 -0700
commit01e09bac6835ec95c053749b302d9bfba2eefa2f (patch)
tree773eadd9423ee7c792da807c7cc5d6a8067fd463 /roles/openshift_aws/filter_plugins/openshift_aws_filters.py
parent42b4e7da984b6f755ed773b062eec8a7d90e8d60 (diff)
parent082ed08a07f6c61e45c69dec8006f4034f8d80dd (diff)
downloadopenshift-01e09bac6835ec95c053749b302d9bfba2eefa2f.tar.gz
openshift-01e09bac6835ec95c053749b302d9bfba2eefa2f.tar.bz2
openshift-01e09bac6835ec95c053749b302d9bfba2eefa2f.tar.xz
openshift-01e09bac6835ec95c053749b302d9bfba2eefa2f.zip
Merge pull request #5945 from kwoodson/elb_fixes
Automatic merge from submit-queue. Fixing elb creation for infra and adding to scale group. Elb creation was missing for the infra nodes. This was either an issue with a refactor or it was missed. The other issue was that after instances were removed and re-added via a scale group the ELB no longer referenced those hosts. This PR names the ELBs so they are automatically tied to a scale group instead of an instance. This allows for instances to come and go but the ELBs will continue to work with all new instances in the ASG.
Diffstat (limited to 'roles/openshift_aws/filter_plugins/openshift_aws_filters.py')
-rw-r--r--roles/openshift_aws/filter_plugins/openshift_aws_filters.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_aws/filter_plugins/openshift_aws_filters.py b/roles/openshift_aws/filter_plugins/openshift_aws_filters.py
index 06e1f9602..a9893c0a7 100644
--- a/roles/openshift_aws/filter_plugins/openshift_aws_filters.py
+++ b/roles/openshift_aws/filter_plugins/openshift_aws_filters.py
@@ -9,17 +9,17 @@ class FilterModule(object):
''' Custom ansible filters for use by openshift_aws role'''
@staticmethod
- def build_instance_tags(clusterid, status='owned'):
+ def build_instance_tags(clusterid):
''' This function will return a dictionary of the instance tags.
The main desire to have this inside of a filter_plugin is that we
need to build the following key.
- {"kubernetes.io/cluster/{{ openshift_aws_clusterid }}": 'owned'}
+ {"kubernetes.io/cluster/{{ openshift_aws_clusterid }}": "{{ openshift_aws_clusterid}}"}
'''
tags = {'clusterid': clusterid,
- 'kubernetes.io/cluster/{}'.format(clusterid): status}
+ 'kubernetes.io/cluster/{}'.format(clusterid): clusterid}
return tags