@@ -97,18 +97,18 @@ def update_values_yaml_file(fpath, seldon_core_version, debug=False):
9797
9898 print "updated {fpath}" .format (** locals ())
9999
100- def set_version (seldon_core_version , pom_files , chart_yaml_file , values_yaml_file , debug = False ):
100+ def set_version (seldon_core_version , pom_files , chart_yaml_files , values_yaml_file , debug = False ):
101101 # Normalize file paths
102102 pom_files_realpaths = [os .path .realpath (x ) for x in pom_files ]
103- chart_yaml_file_realpath = os .path .realpath (chart_yaml_file ) if chart_yaml_file != None else None
103+ chart_yaml_file_realpaths = [ os .path .realpath (x ) for x in chart_yaml_files ]
104104 values_yaml_file_realpath = os .path .realpath (values_yaml_file ) if values_yaml_file != None else None
105105
106106 # update the pom files
107107 for fpath in pom_files_realpaths :
108108 update_pom_file (fpath , seldon_core_version , debug )
109109
110- # update the helm chart file
111- if chart_yaml_file != None :
110+ # update the helm chart files
111+ for chart_yaml_file_realpath in chart_yaml_file_realpaths :
112112 update_chart_yaml_file (chart_yaml_file_realpath , seldon_core_version , debug )
113113
114114 # update the helm values file
@@ -117,13 +117,13 @@ def set_version(seldon_core_version, pom_files, chart_yaml_file, values_yaml_fil
117117
118118def main (argv ):
119119 POM_FILES = ['engine/pom.xml' , 'api-frontend/pom.xml' , 'cluster-manager/pom.xml' ]
120- CHART_YAML_FILE = 'helm-charts/seldon-core/Chart.yaml'
120+ CHART_YAML_FILES = [ 'helm-charts/seldon-core/Chart.yaml' , 'helm-charts/seldon-core-crd/Chart.yaml' ]
121121 VALUES_YAML_FILE = 'helm-charts/seldon-core/values.yaml'
122122
123123 opts = getOpts (argv [1 :])
124124 if opts .debug :
125125 pp (opts )
126- set_version (opts .seldon_core_version , POM_FILES , CHART_YAML_FILE , VALUES_YAML_FILE , opts .debug )
126+ set_version (opts .seldon_core_version , POM_FILES , CHART_YAML_FILES , VALUES_YAML_FILE , opts .debug )
127127 print "done"
128128
129129if __name__ == "__main__" :
0 commit comments