Skip to content

Commit

Permalink
etl: fix (RESTful) comment
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Aizman <[email protected]>
  • Loading branch information
alex-aizman committed Dec 21, 2024
1 parent 165c8d3 commit c2ca3c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ais/tgtetl.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (t *target) handleETLGet(w http.ResponseWriter, r *http.Request) {
return
}

// /v1/etl/_objects/<secret>/<uname>
// /v1/etl/_object/<secret>/<uname>
if apiItems[0] == apc.ETLObject {
t.getObjectETL(w, r)
return
Expand Down Expand Up @@ -238,12 +238,12 @@ func etlParseObjectReq(_ http.ResponseWriter, r *http.Request) (secret string, b
return
}

// GET /v1/etl/_objects/<secret>/<uname>
// GET /v1/etl/_object/<secret>/<uname>
// Handles GET requests from ETL containers (K8s Pods).
// Validates the secret that was injected into a Pod during its initialization
// (see boot.go `_setPodEnv`).
//
// NOTE: this is an internal URL with "_objects" in its path intended to avoid
// NOTE: this is an internal URL with "_object" in its path intended to avoid
// conflicts with ETL name in `/v1/elts/<etl-name>/...`
func (t *target) getObjectETL(w http.ResponseWriter, r *http.Request) {
secret, bck, objName, err := etlParseObjectReq(w, r)
Expand Down

0 comments on commit c2ca3c9

Please sign in to comment.