-
Notifications
You must be signed in to change notification settings - Fork 292
Promote BatchJob to Beta #5412
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
base: master
Are you sure you want to change the base?
Promote BatchJob to Beta #5412
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
issue #5338 |
// * `batch-hpc-rocky`: use Batch HPC Rocky Linux images. | ||
// +kcc:proto:field=google.cloud.batch.v1.AllocationPolicy.Disk.image | ||
ImageRef *v1alpha1.ResourceRef `json:"imageRef,omitempty"` | ||
Image *string `json:"image,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like an imageRef?
// BatchJobSpec defines the desired state of BatchJob | ||
// +kcc:spec:proto=google.cloud.batch.v1.Job | ||
type BatchJobSpec struct { | ||
ParentRef *parent.ProjectAndLocationRef `json:",inline"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: (not for this PR) ... I've realized that you probably mean ProjectRefAndLocation (?)
|
||
var BatchTaskGVK = GroupVersion.WithKind("BatchTask") | ||
|
||
type Parent struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Isn't this *parent.ProjectAndLocationRef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is. But this PR should only contain code for BatchJob promotion.
[refs] crd=batchjobs.batch.cnrm.cloud.google.com version=v1alpha1: field ".spec.allocationPolicy.serviceAccount" should be a reference | ||
[refs] crd=batchjobs.batch.cnrm.cloud.google.com version=v1beta1: field ".spec.allocationPolicy.instances[].policy.bootDisk.image" should be a reference | ||
[refs] crd=batchjobs.batch.cnrm.cloud.google.com version=v1beta1: field ".spec.allocationPolicy.instances[].policy.disks[].newDisk.image" should be a reference | ||
[refs] crd=batchjobs.batch.cnrm.cloud.google.com version=v1beta1: field ".spec.allocationPolicy.serviceAccount" should be a reference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think this is correct ... both image and serviceAccount should be references?
BRIEF Change description
Fixes #
WHY do we need this change?
Special notes for your reviewer:
Does this PR add something which needs to be 'release noted'?
Additional documentation e.g., references, usage docs, etc.:
Intended Milestone
Please indicate the intended milestone.
Tests you have done
make ready-pr
to ensure this PR is ready for review.