Skip to content

Commit

Permalink
Ran non-test related make commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Edwins committed Mar 28, 2024
1 parent 6d3f0a0 commit 80643db
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 1 deletion.
7 changes: 7 additions & 0 deletions api/jobset/v1alpha2/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions api/jobset/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions client-go/applyconfiguration/jobset/v1alpha2/jobsetspec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions config/components/crd/bases/jobset.x-k8s.io_jobsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ spec:
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
managedBy:
description: ManagedBy is used to indicate the controller or entity
that manages an JobSet
type: string
network:
description: Network defines the networking options for the jobset.
properties:
Expand Down
4 changes: 4 additions & 0 deletions hack/python-sdk/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
"description": "FailurePolicy, if set, configures when to declare the JobSet as failed. The JobSet is always declared failed if any job in the set finished with status failed.",
"$ref": "#/definitions/jobset.v1alpha2.FailurePolicy"
},
"managedBy": {
"description": "ManagedBy is used to indicate the controller or entity that manages an JobSet",
"type": "string"
},
"network": {
"description": "Network defines the networking options for the jobset.",
"$ref": "#/definitions/jobset.v1alpha2.Network"
Expand Down
1 change: 1 addition & 0 deletions sdk/python/docs/JobsetV1alpha2JobSetSpec.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ JobSetSpec defines the desired state of JobSet
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**failure_policy** | [**JobsetV1alpha2FailurePolicy**](JobsetV1alpha2FailurePolicy.md) | | [optional]
**managed_by** | **str** | ManagedBy is used to indicate the controller or entity that manages an JobSet | [optional]
**network** | [**JobsetV1alpha2Network**](JobsetV1alpha2Network.md) | | [optional]
**replicated_jobs** | [**list[JobsetV1alpha2ReplicatedJob]**](JobsetV1alpha2ReplicatedJob.md) | ReplicatedJobs is the group of jobs that will form the set. | [optional]
**startup_policy** | [**JobsetV1alpha2StartupPolicy**](JobsetV1alpha2StartupPolicy.md) | | [optional]
Expand Down
30 changes: 29 additions & 1 deletion sdk/python/jobset/models/jobset_v1alpha2_job_set_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class JobsetV1alpha2JobSetSpec(object):
"""
openapi_types = {
'failure_policy': 'JobsetV1alpha2FailurePolicy',
'managed_by': 'str',
'network': 'JobsetV1alpha2Network',
'replicated_jobs': 'list[JobsetV1alpha2ReplicatedJob]',
'startup_policy': 'JobsetV1alpha2StartupPolicy',
Expand All @@ -43,20 +44,22 @@ class JobsetV1alpha2JobSetSpec(object):

attribute_map = {
'failure_policy': 'failurePolicy',
'managed_by': 'managedBy',
'network': 'network',
'replicated_jobs': 'replicatedJobs',
'startup_policy': 'startupPolicy',
'success_policy': 'successPolicy',
'suspend': 'suspend'
}

def __init__(self, failure_policy=None, network=None, replicated_jobs=None, startup_policy=None, success_policy=None, suspend=None, local_vars_configuration=None): # noqa: E501
def __init__(self, failure_policy=None, managed_by=None, network=None, replicated_jobs=None, startup_policy=None, success_policy=None, suspend=None, local_vars_configuration=None): # noqa: E501
"""JobsetV1alpha2JobSetSpec - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration

self._failure_policy = None
self._managed_by = None
self._network = None
self._replicated_jobs = None
self._startup_policy = None
Expand All @@ -66,6 +69,8 @@ def __init__(self, failure_policy=None, network=None, replicated_jobs=None, star

if failure_policy is not None:
self.failure_policy = failure_policy
if managed_by is not None:
self.managed_by = managed_by
if network is not None:
self.network = network
if replicated_jobs is not None:
Expand Down Expand Up @@ -98,6 +103,29 @@ def failure_policy(self, failure_policy):

self._failure_policy = failure_policy

@property
def managed_by(self):
"""Gets the managed_by of this JobsetV1alpha2JobSetSpec. # noqa: E501
ManagedBy is used to indicate the controller or entity that manages an JobSet # noqa: E501
:return: The managed_by of this JobsetV1alpha2JobSetSpec. # noqa: E501
:rtype: str
"""
return self._managed_by

@managed_by.setter
def managed_by(self, managed_by):
"""Sets the managed_by of this JobsetV1alpha2JobSetSpec.
ManagedBy is used to indicate the controller or entity that manages an JobSet # noqa: E501
:param managed_by: The managed_by of this JobsetV1alpha2JobSetSpec. # noqa: E501
:type: str
"""

self._managed_by = managed_by

@property
def network(self):
"""Gets the network of this JobsetV1alpha2JobSetSpec. # noqa: E501
Expand Down
1 change: 1 addition & 0 deletions sdk/python/test/test_jobset_v1alpha2_job_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def make_instance(self, include_optional):
spec = jobset.models.jobset_v1alpha2_job_set_spec.JobsetV1alpha2JobSetSpec(
failure_policy = jobset.models.jobset_v1alpha2_failure_policy.JobsetV1alpha2FailurePolicy(
max_restarts = 56, ),
managed_by = '0',
network = jobset.models.jobset_v1alpha2_network.JobsetV1alpha2Network(
enable_dns_hostnames = True,
subdomain = '0', ),
Expand Down
2 changes: 2 additions & 0 deletions sdk/python/test/test_jobset_v1alpha2_job_set_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def make_instance(self, include_optional):
spec = jobset.models.jobset_v1alpha2_job_set_spec.JobsetV1alpha2JobSetSpec(
failure_policy = jobset.models.jobset_v1alpha2_failure_policy.JobsetV1alpha2FailurePolicy(
max_restarts = 56, ),
managed_by = '0',
network = jobset.models.jobset_v1alpha2_network.JobsetV1alpha2Network(
enable_dns_hostnames = True,
subdomain = '0', ),
Expand Down Expand Up @@ -92,6 +93,7 @@ def make_instance(self, include_optional):
spec = jobset.models.jobset_v1alpha2_job_set_spec.JobsetV1alpha2JobSetSpec(
failure_policy = jobset.models.jobset_v1alpha2_failure_policy.JobsetV1alpha2FailurePolicy(
max_restarts = 56, ),
managed_by = '0',
network = jobset.models.jobset_v1alpha2_network.JobsetV1alpha2Network(
enable_dns_hostnames = True,
subdomain = '0', ),
Expand Down
1 change: 1 addition & 0 deletions sdk/python/test/test_jobset_v1alpha2_job_set_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def make_instance(self, include_optional):
return JobsetV1alpha2JobSetSpec(
failure_policy = jobset.models.jobset_v1alpha2_failure_policy.JobsetV1alpha2FailurePolicy(
max_restarts = 56, ),
managed_by = '0',
network = jobset.models.jobset_v1alpha2_network.JobsetV1alpha2Network(
enable_dns_hostnames = True,
subdomain = '0', ),
Expand Down

0 comments on commit 80643db

Please sign in to comment.