# Additional params for the workflow
cluster_kustomization_name = cluster_name
osm_project_name = "osm_admin" # TODO: get project name from content
+ if db_cluster.get("openshift", True):
+ templates_dir = "/sw-catalogs/sw-catalogs-osm/cloud-resources/flux-remote-bootstrap/cluster-base-openshift/templates"
+ self.logger.info(
+ "Rendering OpenShift bootstrap templates from %s", templates_dir
+ )
+ else:
+ templates_dir = "/sw-catalogs/sw-catalogs-osm/cloud-resources/flux-remote-bootstrap/cluster-base/templates"
+ self.logger.info(
+ "Rendering Standard bootstrap templates from %s", templates_dir
+ )
manifest = self.render_jinja_template(
workflow_template,
public_key_new_cluster=public_key_new_cluster,
secret_name_private_key_new_cluster=secret_name,
osm_project_name=osm_project_name,
+ templates_dir=templates_dir,
workflow_debug=self._workflow_debug,
workflow_dry_run=self._workflow_dry_run,
)