Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding LastTaskLog api feature #10

Merged
merged 5 commits into from
Sep 5, 2023

Conversation

trichardsonjr78
Copy link
Collaborator

@trichardsonjr78 trichardsonjr78 commented Sep 1, 2023

Changes:

  • added api call to get last tfo task log output.
  • enabled tforc to work perform operations on same cluster as tfo hub

Were using StatusUnprocessableEntity for most errors so I stuck with that error response.

Listing pods with labels (line 372) doesn't return an error if the. namespace exists.I added a namespace check before to return a precise error but it would also be picked up by the pod length check on (379) . I can remove it if you'd like but I like the idea of pre-checking

pkg/api/resource.go Outdated Show resolved Hide resolved
pkg/api/resource.go Outdated Show resolved Hide resolved
pkg/api/resource.go Outdated Show resolved Hide resolved
pkg/api/resource.go Outdated Show resolved Hide resolved
@trichardsonjr78 trichardsonjr78 marked this pull request as draft September 2, 2023 15:28
@trichardsonjr78 trichardsonjr78 marked this pull request as ready for review September 5, 2023 15:32
@isaaguilar
Copy link
Contributor

lgtm

@isaaguilar isaaguilar merged commit cbcfebd into GalleyBytes:master Sep 5, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants