fix/argo #133

Merged
letian merged 10 commits from fix/argo into master 2025-09-08 14:04:13 +00:00
Owner
No description provided.
wjro added 8 commits 2025-09-05 15:39:14 +00:00
feat(example): added an example of packaging a rust app from github
All checks were successful
Run Check Script / check (pull_request) Successful in 1m0s
aebde3a382
> tar building function orders files and sets mtime to zero so it is consistent across docker image builds
Merge remote-tracking branch 'origin/master' into example/tryrust-webapp
Some checks failed
Run Check Script / check (pull_request) Failing after 7s
85d7baac6c
fix:deploys namespaced grafana operator in all cases
Some checks failed
Run Check Script / check (pull_request) Failing after -4s
95c2e1dd72
fix:cargo
Some checks failed
Run Check Script / check (pull_request) Failing after -5s
c6041bc154
fix: duplicate cargo entries
Some checks failed
Run Check Script / check (pull_request) Failing after 16s
8e5e674124
fix: example url and cargo incorrect
All checks were successful
Run Check Script / check (pull_request) Successful in 59s
fde0cb0a0f
fix: argo cd uses the correct hostname for route, helmchart is not hardcoded
All checks were successful
Run Check Script / check (pull_request) Successful in 59s
d13a23c001
letian reviewed 2025-09-05 16:46:55 +00:00
@ -59,6 +61,7 @@ pub struct RustWebapp {
pub domain: Url,
/// The path to the root of the Rust project to be containerized.
pub project_root: PathBuf,
pub service_port: u32,
Owner

Is there a way to not have to provide this? It seems to me that the end user shouldn't have to worry about it and that it should be handled by the topology.

Is there a way to not have to provide this? It seems to me that the end user shouldn't have to worry about it and that it should be handled by the topology.
letian reviewed 2025-09-05 19:20:48 +00:00
@ -176,18 +176,18 @@ impl<
}
target => {
info!("Deploying {} to target {target:?}", self.application.name());
info!("application name {}", self.application.name());
Owner

The info above wasn't enough? It's already logging the application.name

The info above wasn't enough? It's already logging the `application.name`
letian marked this conversation as resolved
letian reviewed 2025-09-05 19:35:30 +00:00
@ -88,0 +103,4 @@
) -> Result<String, InterpretError> {
//This should be the job of the topology to determine if we are in
//openshift, potentially we need on openshift topology the same way we create a
//localhosttopology
Owner

It's probably a bit too much to fix it now, but indeed the Topology should provide the capability to get the host domain. Actually it should probably provide a higher level capability: create domain for a service (<-- example of a Tell Don't Ask).

For example:

let domain = topology.map_domain("argo");
let helm_score = argo_helm_chart_score(&self.score.namespace, self.score.openshift, &domain);
It's probably a bit too much to fix it now, but indeed the Topology should provide the capability to get the host domain. Actually it should probably provide a higher level capability: create domain for a service (<-- example of a Tell Don't Ask). For example: ```rs let domain = topology.map_domain("argo"); let helm_score = argo_helm_chart_score(&self.score.namespace, self.score.openshift, &domain); ```
letian reviewed 2025-09-05 19:37:36 +00:00
@ -205,0 +202,4 @@
// return Ok(Outcome::success("Grafana CRDs already exist".to_string()));
// }
//may not need to check this since the grafana operator is namespaceScope=true -> it
//will deploy with rolebindings rather than cluster role bindings
Owner

still need to keep that commented?

still need to keep that commented?
letian marked this conversation as resolved
letian added 1 commit 2025-09-08 14:01:12 +00:00
Merge branch 'master' into fix/argo
All checks were successful
Run Check Script / check (pull_request) Successful in 58s
ab34b06aec
letian added 1 commit 2025-09-08 14:02:43 +00:00
remove extra info log
All checks were successful
Run Check Script / check (pull_request) Successful in 1m2s
c4479d3d6f
letian merged commit ed70bfd236 into master 2025-09-08 14:04:13 +00:00
letian deleted branch fix/argo 2025-09-08 14:04:14 +00:00
letian referenced this issue from a commit 2025-09-08 14:04:15 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: NationTech/harmony#133
No description provided.