epics-containers / edge-containers-cli

command line shortcuts for epics containers developers
Apache License 2.0
3 stars 1 forks source link

Switch to Argo CD #155

Closed gilesknap closed 2 weeks ago

gilesknap commented 3 months ago

Intro

This is a complete departure from the current tool so I'm thinking that we fork this and come up with a new name. We will want to support the old 'ec' for a short time while the transition of existing beamlines is yet to happen. Argo CD will not be deployed to beamline clusters until the cloud team has the time to do so.

Suggestions:

This is where we are headed for managing IOCs and services:

Specification

This tool will have as its backend argocd CLI only. It will also require no configuration via environment.sh instead you will login in to an argo cd instance and interact with that.

Goals are to support

Its a little annoying that we don't get instances which used to list all the tags that were relevant to a given service - but I guess that is better handled by looking at the repo itself, thus giving real meaning to the tags.

Command Implementation

All examples are for bl45p for app and bl45p-ea-dcam-02 for service.

NOTE: where we use enabled we could instead use not removed this would remove the child app but keep its entry in the services list of the root app so that it can be un-removed later. This is preferable for feedback in the argocd UI but looses argo rollback history. Given that we are using this tool to do the rollback that is probably not an issue.

gilesknap commented 3 months ago

Also note that all of the above interactions are near instantaneous, because they talk direct to ArgoCD, so no refreshing or waiting for polling required.

marcelldls commented 3 months ago

If we dont do configuration via environment.sh - how do you propose to set/switch the context that is the beamline? Something like acd set-context bl01t and store in .config? This could have auto-complete or an acd list-context command?

marcelldls commented 3 months ago

For acd deploy verification: Shall we get the repo from argo and use that to filter existing git refs?

marcelldls commented 3 months ago

As discussed: Lets defer attach/exec to kubectl

marcelldls commented 3 months ago

How shall we proceed with ec? If we keep only the kubectl and helm commands, it becomes less complex. There is surely some use for those not using argo?

gilesknap commented 3 months ago

As per our conversation today.

I approve:

gilesknap commented 1 month ago

@marcelldls is this one completed now?

GDYendell commented 2 weeks ago

What PR(s) resolved this issue?

marcelldls commented 2 weeks ago

What PR(s) resolved this issue?

160