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

feat(batch): Add service batch #1259

Merged
merged 1 commit into from
Nov 8, 2022
Merged

Conversation

wotolom
Copy link
Contributor

@wotolom wotolom commented Apr 13, 2022

Description of your changes

  • Add new resource ComputeEnvironment
  • Add new resource JobQueue
  • Add new resource JobDefinition
  • Add new resource Job

Fixes #1257

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

The resources ComputeEnvironment, JobQueue, JobDefinition and Job were tested manually (create, update, delete) with the objects in examples/batch.

Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @wotolom . Looking good already. I marked a few things that need to be tackled.

We should also clean up the examples and remove every fmt.Println before merging.

examples/batch/2ndspotfleettaggingrole.yaml Outdated Show resolved Hide resolved
examples/batch/fargatecomputeenvironment.yaml Outdated Show resolved Hide resolved
examples/batch/fargatecomputeenvironment.yaml Outdated Show resolved Hide resolved
examples/batch/fargatecomputeenvironment.yaml Show resolved Hide resolved
examples/batch/spotec2computeenvironment.yaml Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
examples/batch/servicerolebatch.yaml Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
pkg/controller/batch/computeenvironment/setup.go Outdated Show resolved Hide resolved
@wotolom wotolom changed the title feat(batch): Add ComputeEnvironment feat(batch): Add service batch May 10, 2022
@wotolom wotolom force-pushed the master branch 2 times, most recently from 4b65f4b to ea1f51f Compare June 10, 2022 09:25
Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks already pretty good. Thanks a lot, @wotolom, for the hard work!

apis/batch/manualv1alpha1/job.go Outdated Show resolved Hide resolved
apis/batch/manualv1alpha1/jobdefinition.go Outdated Show resolved Hide resolved
apis/batch/manualv1alpha1/jobdefinition.go Outdated Show resolved Hide resolved
apis/batch/manualv1alpha1/jobdefinition.go Outdated Show resolved Hide resolved
apis/batch/manualv1alpha1/jobdefinition.go Outdated Show resolved Hide resolved
apis/batch/manualv1alpha1/jobdefinition.go Outdated Show resolved Hide resolved
apis/batch/manualv1alpha1/jobdefinition.go Outdated Show resolved Hide resolved
examples/batch/multinodejobdefinition.yaml Outdated Show resolved Hide resolved
pkg/controller/batch/job/controller.go Outdated Show resolved Hide resolved
pkg/controller/batch/job/controller.go Outdated Show resolved Hide resolved
@wotolom wotolom marked this pull request as ready for review June 22, 2022 15:56
@wotolom
Copy link
Contributor Author

wotolom commented Jul 4, 2022

@haarchri would you like to review this?

@haarchri
Copy link
Member

@wotolom can you fix lint issue ?

-ComputeEnvironment
-JobQueue
-JobDefinition (manually, no ACK)
-Job (manually, no ACK)

Signed-off-by: wotolom <car_929@yahoo.de>
@wotolom
Copy link
Contributor Author

wotolom commented Sep 23, 2022

@wotolom can you fix lint issue ?

Seems to have been a timeout error (previous lint-check error line).

Did another rebase and pushed again. This time the check went through.

May be caused by the deprecated or disabled linters? Warnings also on current lint-check.

@haarchri
Copy link
Member

@MisterMX you need to review last time - you requested changes

Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @wotolom! That's quite a lot you did there.

@MisterMX MisterMX merged commit 6421620 into crossplane-contrib:master Nov 8, 2022
@wotolom wotolom mentioned this pull request Nov 10, 2022
2 tasks
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.

implement AWS Batch
3 participants