modules/management/kubectl-apply/manifests/jobset-v0.7.2.yaml [15:237]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apiVersion: v1
kind: Namespace
metadata:
  labels:
    app.kubernetes.io/component: manager
    app.kubernetes.io/created-by: jobset
    app.kubernetes.io/instance: system
    app.kubernetes.io/managed-by: kustomize
    app.kubernetes.io/name: namespace
    app.kubernetes.io/part-of: jobset
    control-plane: controller-manager
  name: jobset-system
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
    controller-gen.kubebuilder.io/version: v0.16.2
  name: jobsets.jobset.x-k8s.io
spec:
  conversion:
    strategy: Webhook
    webhook:
      clientConfig:
        service:
          name: jobset-webhook-service
          namespace: jobset-system
          path: /convert
      conversionReviewVersions:
      - v1
  group: jobset.x-k8s.io
  names:
    kind: JobSet
    listKind: JobSetList
    plural: jobsets
    singular: jobset
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - description: Final state of JobSet
      jsonPath: .status.terminalState
      name: TerminalState
      type: string
    - description: Number of restarts
      jsonPath: .status.restarts
      name: Restarts
      type: string
    - jsonPath: .status.conditions[?(@.type=="Completed")].status
      name: Completed
      type: string
    - description: JobSet suspended
      jsonPath: .spec.suspend
      name: Suspended
      type: string
    - description: Time this JobSet was created
      jsonPath: .metadata.creationTimestamp
      name: Age
      type: date
    name: v1alpha2
    schema:
      openAPIV3Schema:
        description: JobSet is the Schema for the jobsets API
        properties:
          apiVersion:
            description: |-
              APIVersion defines the versioned schema of this representation of an object.
              Servers should convert recognized schemas to the latest internal value, and
              may reject unrecognized values.
              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
            type: string
          kind:
            description: |-
              Kind is a string value representing the REST resource this object represents.
              Servers may infer this from the endpoint the client submits requests to.
              Cannot be updated.
              In CamelCase.
              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
            type: string
          metadata:
            type: object
          spec:
            description: JobSetSpec defines the desired state of JobSet
            properties:
              coordinator:
                description: |-
                  Coordinator can be used to assign a specific pod as the coordinator for
                  the JobSet. If defined, an annotation will be added to all Jobs and pods with
                  coordinator pod, which contains the stable network endpoint where the
                  coordinator pod can be reached.
                  jobset.sigs.k8s.io/coordinator=<pod hostname>.<headless service>
                properties:
                  jobIndex:
                    description: |-
                      JobIndex is the index of Job which contains the coordinator pod
                      (i.e., for a ReplicatedJob with N replicas, there are Job indexes 0 to N-1).
                    type: integer
                  podIndex:
                    description: PodIndex is the Job completion index of the coordinator pod.
                    type: integer
                  replicatedJob:
                    description: |-
                      ReplicatedJob is the name of the ReplicatedJob which contains
                      the coordinator pod.
                    type: string
                required:
                - replicatedJob
                type: object
              failurePolicy:
                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.
                properties:
                  maxRestarts:
                    description: |-
                      MaxRestarts defines the limit on the number of JobSet restarts.
                      A restart is achieved by recreating all active child jobs.
                    format: int32
                    type: integer
                  restartStrategy:
                    default: Recreate
                    description: |-
                      RestartStrategy defines the strategy to use when restarting the JobSet.
                      Defaults to Recreate.
                    enum:
                    - Recreate
                    - BlockingRecreate
                    type: string
                  rules:
                    description: |-
                      List of failure policy rules for this JobSet.
                      For a given Job failure, the rules will be evaluated in order,
                      and only the first matching rule will be executed.
                      If no matching rule is found, the RestartJobSet action is applied.
                    items:
                      description: |-
                        FailurePolicyRule defines a FailurePolicyAction to be executed if a child job
                        fails due to a reason listed in OnJobFailureReasons.
                      properties:
                        action:
                          description: The action to take if the rule is matched.
                          enum:
                          - FailJobSet
                          - RestartJobSet
                          - RestartJobSetAndIgnoreMaxRestarts
                          type: string
                        name:
                          description: |-
                            The name of the failure policy rule.
                            The name is defaulted to 'failurePolicyRuleN' where N is the index of the failure policy rule.
                            The name must match the regular expression "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$".
                          type: string
                        onJobFailureReasons:
                          description: |-
                            The requirement on the job failure reasons. The requirement
                            is satisfied if at least one reason matches the list.
                            The rules are evaluated in order, and the first matching
                            rule is executed.
                            An empty list applies the rule to any job failure reason.
                          items:
                            type: string
                          type: array
                        targetReplicatedJobs:
                          description: |-
                            TargetReplicatedJobs are the names of the replicated jobs the operator applies to.
                            An empty list will apply to all replicatedJobs.
                          items:
                            type: string
                          type: array
                          x-kubernetes-list-type: atomic
                      required:
                      - action
                      - name
                      type: object
                    type: array
                type: object
                x-kubernetes-validations:
                - message: Value is immutable
                  rule: self == oldSelf
              managedBy:
                description: |-
                  ManagedBy is used to indicate the controller or entity that manages a JobSet.
                  The built-in JobSet controller reconciles JobSets which don't have this
                  field at all or the field value is the reserved string
                  `jobset.sigs.k8s.io/jobset-controller`, but skips reconciling JobSets
                  with a custom value for this field.

                  The value must be a valid domain-prefixed path (e.g. acme.io/foo) -
                  all characters before the first "/" must be a valid subdomain as defined
                  by RFC 1123. All characters trailing the first "/" must be valid HTTP Path
                  characters as defined by RFC 3986. The value cannot exceed 63 characters.
                  The field is immutable.
                type: string
              network:
                description: Network defines the networking options for the jobset.
                properties:
                  enableDNSHostnames:
                    description: |-
                      EnableDNSHostnames allows pods to be reached via their hostnames.
                      Pods will be reachable using the fully qualified pod hostname:
                      <jobSet.name>-<spec.replicatedJob.name>-<job-index>-<pod-index>.<subdomain>
                    type: boolean
                  publishNotReadyAddresses:
                    description: |-
                      Indicates if DNS records of pods should be published before the pods are ready.
                      Defaults to True.
                    type: boolean
                  subdomain:
                    description: |-
                      Subdomain is an explicit choice for a network subdomain name
                      When set, any replicated job in the set is added to this network.
                      Defaults to <jobSet.name> if not set.
                    type: string
                type: object
                x-kubernetes-validations:
                - message: Value is immutable
                  rule: self == oldSelf
              replicatedJobs:
                description: ReplicatedJobs is the group of jobs that will form the set.
                items:
                  properties:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



modules/management/kubectl-apply/manifests/jobset-v0.8.1.yaml [15:237]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apiVersion: v1
kind: Namespace
metadata:
  labels:
    app.kubernetes.io/component: manager
    app.kubernetes.io/created-by: jobset
    app.kubernetes.io/instance: system
    app.kubernetes.io/managed-by: kustomize
    app.kubernetes.io/name: namespace
    app.kubernetes.io/part-of: jobset
    control-plane: controller-manager
  name: jobset-system
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
    controller-gen.kubebuilder.io/version: v0.16.2
  name: jobsets.jobset.x-k8s.io
spec:
  conversion:
    strategy: Webhook
    webhook:
      clientConfig:
        service:
          name: jobset-webhook-service
          namespace: jobset-system
          path: /convert
      conversionReviewVersions:
      - v1
  group: jobset.x-k8s.io
  names:
    kind: JobSet
    listKind: JobSetList
    plural: jobsets
    singular: jobset
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - description: Final state of JobSet
      jsonPath: .status.terminalState
      name: TerminalState
      type: string
    - description: Number of restarts
      jsonPath: .status.restarts
      name: Restarts
      type: string
    - jsonPath: .status.conditions[?(@.type=="Completed")].status
      name: Completed
      type: string
    - description: JobSet suspended
      jsonPath: .spec.suspend
      name: Suspended
      type: string
    - description: Time this JobSet was created
      jsonPath: .metadata.creationTimestamp
      name: Age
      type: date
    name: v1alpha2
    schema:
      openAPIV3Schema:
        description: JobSet is the Schema for the jobsets API
        properties:
          apiVersion:
            description: |-
              APIVersion defines the versioned schema of this representation of an object.
              Servers should convert recognized schemas to the latest internal value, and
              may reject unrecognized values.
              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
            type: string
          kind:
            description: |-
              Kind is a string value representing the REST resource this object represents.
              Servers may infer this from the endpoint the client submits requests to.
              Cannot be updated.
              In CamelCase.
              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
            type: string
          metadata:
            type: object
          spec:
            description: JobSetSpec defines the desired state of JobSet
            properties:
              coordinator:
                description: |-
                  Coordinator can be used to assign a specific pod as the coordinator for
                  the JobSet. If defined, an annotation will be added to all Jobs and pods with
                  coordinator pod, which contains the stable network endpoint where the
                  coordinator pod can be reached.
                  jobset.sigs.k8s.io/coordinator=<pod hostname>.<headless service>
                properties:
                  jobIndex:
                    description: |-
                      JobIndex is the index of Job which contains the coordinator pod
                      (i.e., for a ReplicatedJob with N replicas, there are Job indexes 0 to N-1).
                    type: integer
                  podIndex:
                    description: PodIndex is the Job completion index of the coordinator pod.
                    type: integer
                  replicatedJob:
                    description: |-
                      ReplicatedJob is the name of the ReplicatedJob which contains
                      the coordinator pod.
                    type: string
                required:
                - replicatedJob
                type: object
              failurePolicy:
                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.
                properties:
                  maxRestarts:
                    description: |-
                      MaxRestarts defines the limit on the number of JobSet restarts.
                      A restart is achieved by recreating all active child jobs.
                    format: int32
                    type: integer
                  restartStrategy:
                    default: Recreate
                    description: |-
                      RestartStrategy defines the strategy to use when restarting the JobSet.
                      Defaults to Recreate.
                    enum:
                    - Recreate
                    - BlockingRecreate
                    type: string
                  rules:
                    description: |-
                      List of failure policy rules for this JobSet.
                      For a given Job failure, the rules will be evaluated in order,
                      and only the first matching rule will be executed.
                      If no matching rule is found, the RestartJobSet action is applied.
                    items:
                      description: |-
                        FailurePolicyRule defines a FailurePolicyAction to be executed if a child job
                        fails due to a reason listed in OnJobFailureReasons.
                      properties:
                        action:
                          description: The action to take if the rule is matched.
                          enum:
                          - FailJobSet
                          - RestartJobSet
                          - RestartJobSetAndIgnoreMaxRestarts
                          type: string
                        name:
                          description: |-
                            The name of the failure policy rule.
                            The name is defaulted to 'failurePolicyRuleN' where N is the index of the failure policy rule.
                            The name must match the regular expression "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$".
                          type: string
                        onJobFailureReasons:
                          description: |-
                            The requirement on the job failure reasons. The requirement
                            is satisfied if at least one reason matches the list.
                            The rules are evaluated in order, and the first matching
                            rule is executed.
                            An empty list applies the rule to any job failure reason.
                          items:
                            type: string
                          type: array
                        targetReplicatedJobs:
                          description: |-
                            TargetReplicatedJobs are the names of the replicated jobs the operator applies to.
                            An empty list will apply to all replicatedJobs.
                          items:
                            type: string
                          type: array
                          x-kubernetes-list-type: atomic
                      required:
                      - action
                      - name
                      type: object
                    type: array
                type: object
                x-kubernetes-validations:
                - message: Value is immutable
                  rule: self == oldSelf
              managedBy:
                description: |-
                  ManagedBy is used to indicate the controller or entity that manages a JobSet.
                  The built-in JobSet controller reconciles JobSets which don't have this
                  field at all or the field value is the reserved string
                  `jobset.sigs.k8s.io/jobset-controller`, but skips reconciling JobSets
                  with a custom value for this field.

                  The value must be a valid domain-prefixed path (e.g. acme.io/foo) -
                  all characters before the first "/" must be a valid subdomain as defined
                  by RFC 1123. All characters trailing the first "/" must be valid HTTP Path
                  characters as defined by RFC 3986. The value cannot exceed 63 characters.
                  The field is immutable.
                type: string
              network:
                description: Network defines the networking options for the jobset.
                properties:
                  enableDNSHostnames:
                    description: |-
                      EnableDNSHostnames allows pods to be reached via their hostnames.
                      Pods will be reachable using the fully qualified pod hostname:
                      <jobSet.name>-<spec.replicatedJob.name>-<job-index>-<pod-index>.<subdomain>
                    type: boolean
                  publishNotReadyAddresses:
                    description: |-
                      Indicates if DNS records of pods should be published before the pods are ready.
                      Defaults to True.
                    type: boolean
                  subdomain:
                    description: |-
                      Subdomain is an explicit choice for a network subdomain name
                      When set, any replicated job in the set is added to this network.
                      Defaults to <jobSet.name> if not set.
                    type: string
                type: object
                x-kubernetes-validations:
                - message: Value is immutable
                  rule: self == oldSelf
              replicatedJobs:
                description: ReplicatedJobs is the group of jobs that will form the set.
                items:
                  properties:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



