Skip to content

Commit

Permalink
Add service_name to deploy_s2i_app
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek committed Jun 12, 2024
1 parent 9520839 commit c2ee5d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions container_ci_suite/imagestreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __init__(self, working_dir: Path = Path(".")):

def get_latest_version(self) -> str:
latest_version = ""
print(f"Working dir for latest imagestream is {self.working_dir}.")
with open(self.working_dir / "Makefile") as f:
for line in f:
if not line.startswith("VERSIONS ="):
Expand Down
5 changes: 3 additions & 2 deletions container_ci_suite/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,12 @@ def imagestream_quickstart(
openshift_args=openshift_args
)

def deploy_s2i_app(self, image_name: str, app: str, context: str) -> bool:
def deploy_s2i_app(self, image_name: str, app: str, context: str, service_name: str = "") -> bool:
tagged_image = utils.get_tagged_image(image_name=image_name, version=self.version)
print(f"Source image {image_name} was tagged as {tagged_image}")
self.upload_image(source_image=image_name, tagged_image=tagged_image)
service_name = utils.get_service_image(image_name)
if service_name == "":
service_name = utils.get_service_image(image_name)
print(f"Service name in app is: {service_name}")
app_param = app
if Path(app).is_dir():
Expand Down

0 comments on commit c2ee5d0

Please sign in to comment.