-
Notifications
You must be signed in to change notification settings - Fork 54
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
add publish not ready headless service to jobset #505
add publish not ready headless service to jobset #505
Conversation
✅ Deploy Preview for kubernetes-sigs-jobset canceled.
|
05b6212
to
8ab1de0
Compare
Man this is a rough one.. I am not able to generate CRDs anymore so the integration tests are failing due to the fact that crd are not generated. Looking into this now. /hold |
/hold cancel |
Makefile
Outdated
@@ -83,6 +83,11 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust | |||
$(CONTROLLER_GEN) \ | |||
rbac:roleName=manager-role output:rbac:artifacts:config=config/components/rbac\ | |||
paths="./api/..." | |||
|
|||
$(CONTROLLER_GEN) \ |
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.
I noticed that I wasn’t generating crds anymore. Added this allows me to generate the CRD.
not sure when this broke.
18e28a2
to
cd1c961
Compare
cd1c961
to
cfcf10f
Compare
/assign @ahg-g @danielvegamyhre |
pkg/webhooks/jobset_webhook_test.go
Outdated
@@ -35,6 +35,8 @@ var TestPodTemplate = corev1.PodTemplateSpec{ | |||
}, | |||
} | |||
|
|||
var defaultNetwork = &jobset.Network{EnableDNSHostnames: ptr.To(true), PublishNotReadyAddresses: ptr.To(true)} |
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.
Is this only used in TestJobSetDefaulting
? If so let's move it into TestJobSetDefaulting next to the defaultSuccessPolicy and defaultStartupPolicy variables.
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.
done.
api/jobset/v1alpha2/jobset_types.go
Outdated
|
||
// PublishNotReadyAddresses indicates that any agent | ||
// which deals with endpoints for this Service should disregard any indications of ready/not-ready. | ||
// Defaults to true if not set |
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.
"Indicates if DNS records of pods should be published before the pods are ready. Defaults to True."
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.
updated.
/lgtm leaving approve to Daniel |
This change makes sense to me, thanks for working on it. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielvegamyhre, kannon92 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #504
Adds PublishNotReadyHeadlessService to Jobset.
Defaulting logic sets to true.
Did one optimization in network defaulting where I moved it out of a loop.