Skip to content

Commit

Permalink
Merge branch 'update-limitrange' into 'master'
Browse files Browse the repository at this point in the history
Update CPU and memory limitrange

See merge request ansible-roles/osbs-namespace!21
  • Loading branch information
MartinBasti committed Nov 2, 2020
2 parents cbf99f6 + 13a4756 commit c1aa004
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ osbs_is_admin: true
osbs_service_accounts: []

osbs_cpu_limitrange: ''
osbs_memory_limitrange: ''

osbs_admin_groups: []
osbs_admin_users: []
Expand Down
3 changes: 3 additions & 0 deletions templates/openshift-limitrange.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ spec:
- type: Container
defaultRequest:
cpu: {{ osbs_cpu_limitrange }}
{% if osbs_memory_limitrange %}
memory: {{ osbs_memory_limitrange }}
{% endif %}

0 comments on commit c1aa004

Please sign in to comment.