Skip to content

Commit

Permalink
Organize the project and fix a bug (#9)
Browse files Browse the repository at this point in the history
- Organize a bit. Still some minor things to take care of, but mainly
  there.
- If the user deleted the previous pods and they were in "terminating"
  state, the function of GetPods would get the pods in "terminating"
  state.. Pod phase is still running, but we needed to look for the
  DeletionTimestamp

Signed-off-by: Joe Talerico (rook) <[email protected]>

Signed-off-by: Joe Talerico (rook) <[email protected]>
  • Loading branch information
jtaleric authored Sep 9, 2022
1 parent 4ecb8dd commit fb5676f
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 380 deletions.
2 changes: 2 additions & 0 deletions archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ type ElasticParams struct {
index string
}

// Connect accepts ElasticParams which describe how to connect to ES.
// Returns a client connected to the desired ES Cluster.
func Connect(es ElasticParams) (*elasticsearch.Client, error) {
log.Infof("Connecting to ES - %s", es.url)
esc := elasticsearch.Config{
Expand Down
Loading

0 comments on commit fb5676f

Please sign in to comment.