Skip to content

Commit

Permalink
rename ocpnodes filter as kubenodes
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Feb 27, 2025
1 parent 70009f7 commit 23c8eb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kvirt/jinjafilters/jinjafilters.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _type(value):
return 'list'


def ocpnodes(cluster, platform, ctlplanes, workers):
def kubenodes(cluster, ctlplanes=1, workers=1):
ctlplanes = [f'{cluster}-ctlplane-{num}' for num in range(ctlplanes)]
workers = [f'{cluster}-worker-{num}' for num in range(workers)]
return ctlplanes + workers
Expand Down Expand Up @@ -212,7 +212,7 @@ def max_ocp_version(version1, version2):
return version1 if version1 > version2 else version2


jinjafilters = {'basename': basename, 'dirname': dirname, 'ocpnodes': ocpnodes, 'none': none, 'type': _type,
jinjafilters = {'basename': basename, 'dirname': dirname, 'kubenodes': kubenodes, 'none': none, 'type': _type,
'certificate': certificate, 'base64': base64, 'github_version': github_version,
'defaultnodes': defaultnodes, 'wait_crd': wait_crd, 'local_ip': local_ip, 'network_ip': network_ip,
'kcli_info': kcli_info, 'find_manifests': find_manifests, 'exists': exists, 'ipv6_wrap': ipv6_wrap,
Expand Down

0 comments on commit 23c8eb9

Please sign in to comment.