Skip to content

Commit

Permalink
Cherry pick: Fix recurring runs (#533)
Browse files Browse the repository at this point in the history
* Change namespace in kfp-schedwf

* Change namespace in kfp-schedwf

* Fix linting

* Fix linting

* Fix cherry-picking

* Remove log_level field
  • Loading branch information
mvlassis authored Jul 2, 2024
1 parent 29a6541 commit e66facb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion charms/kfp-schedwf/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def __init__(self, *args):
container_name="ml-pipeline-scheduledworkflow",
service_name="controller",
timezone=self.model.config["timezone"],
namespace=self.model.name,
),
depends_on=[self.kubernetes_resources],
)
Expand Down
10 changes: 5 additions & 5 deletions charms/kfp-schedwf/src/components/pebble_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ def __init__(
self,
*args,
timezone: str,
namespace: str,
**kwargs,
):
"""Pebble service container component in order to configure Pebble layer"""
super().__init__(*args, **kwargs)
self.environment = {"CRON_SCHEDULE_TIMEZONE": timezone}
self.namespace = namespace
self.environment = {
"CRON_SCHEDULE_TIMEZONE": timezone,
"NAMESPACE": "",
}

def get_layer(self) -> Layer:
"""Defines and returns Pebble layer configuration
Expand All @@ -41,8 +42,7 @@ def get_layer(self) -> Layer:
"override": "replace",
"summary": "scheduled workflow controller service",
"startup": "enabled",
"command": "/bin/controller --logtostderr=true"
" --namespace={self.namespace}",
"command": "/bin/controller --logtostderr=true" ' --namespace=""',
"environment": self.environment,
}
},
Expand Down

0 comments on commit e66facb

Please sign in to comment.