Skip to content

Commit

Permalink
Commit in codegen files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Feb 24, 2025
1 parent 21117ad commit 6516c29
Show file tree
Hide file tree
Showing 2 changed files with 238 additions and 3 deletions.
40 changes: 37 additions & 3 deletions apis/scheduledtask.k8ssandra.io/v1alpha1/zz_generated.deepcopy.go

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.4
name: scheduledtasks.scheduledtask.k8ssandra.io.cassandra.datastax.com
spec:
group: scheduledtask.k8ssandra.io.cassandra.datastax.com
names:
kind: ScheduledTask
listKind: ScheduledTaskList
plural: scheduledtasks
singular: scheduledtask
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ScheduledTask is the Schema for the scheduledtasks 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: ScheduledTaskSpec defines the desired state of ScheduledTask
properties:
schedule:
type: string
taskDetails:
properties:
name:
description: Name of the task. Always populated.
type: string
omitempty:
description: CassandraTaskSpec defines the desired state of CassandraTask
properties:
concurrencyPolicy:
description: |-
Specifics if this task can be run concurrently with other active tasks. Valid values are:
- "Allow": allows multiple Tasks to run concurrently on Cassandra cluster
- "Forbid" (default): only a single task is executed at once
The "Allow" property is only valid if all the other active Tasks have "Allow" as well.
type: string
datacenter:
description: |-
Which datacenter this task is targetting. Note, this must be a datacenter which the current cass-operator
can access
properties:
apiVersion:
description: API version of the referent.
type: string
fieldPath:
description: |-
If referring to a piece of an object instead of an entire object, this string
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
For example, if the object reference is to a container within a pod, this would take on a value like:
"spec.containers{name}" (where "name" refers to the name of the container that triggered
the event) or if no container name is specified "spec.containers[2]" (container with
index 2 in this pod). This syntax is chosen only to have some well-defined way of
referencing a part of an object.
type: string
kind:
description: |-
Kind of the referent.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
namespace:
description: |-
Namespace of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
type: string
resourceVersion:
description: |-
Specific resourceVersion to which this reference is made, if any.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
type: string
uid:
description: |-
UID of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
type: string
type: object
x-kubernetes-map-type: atomic
jobs:
description: Jobs defines the jobs this task will execute
(and their order)
items:
properties:
args:
description: Arguments are additional parameters for
the command
properties:
end_token:
type: string
jobs:
type: integer
keyspace_name:
type: string
new_tokens:
additionalProperties:
type: string
description: |-
NewTokens is a map of pod names to their newly-assigned tokens. Required for the move
command, ignored otherwise. Pods referenced in this map must exist; any existing pod not
referenced in this map will not be moved.
type: object
no_snapshot:
type: boolean
no_validate:
description: Scrub arguments
type: boolean
pod_name:
type: string
rack:
type: string
skip_corrupted:
type: boolean
source_datacenter:
type: string
split_output:
description: Compaction arguments
type: boolean
start_token:
type: string
tables:
items:
type: string
type: array
type: object
command:
description: Command defines what is run against Cassandra
pods
type: string
name:
type: string
required:
- command
- name
type: object
type: array
restartPolicy:
description: RestartPolicy indicates the behavior n case of
failure. Default is Never.
type: string
scheduledTime:
description: |-
ScheduledTime indicates the earliest possible time this task is executed. This does not necessarily
equal to the time it is actually executed (if other tasks are blocking for example). If not set,
the task will be executed immediately.
format: date-time
type: string
ttlSecondsAfterFinished:
description: |-
TTLSecondsAfterFinished defines how long the completed job will kept before being cleaned up. If set to 0
the task will not be cleaned up by the cass-operator. If unset, the default time (86400s) is used.
format: int32
type: integer
type: object
required:
- omitempty
type: object
type: object
status:
description: MedusaTaskStatus defines the observed state of MedusaTask
properties:
lastExecution:
description: LastExecution tells when the backup was last time taken.
If empty, the backup has never been taken
format: date-time
type: string
nextSchedule:
description: NextSchedule indicates when the next backup is going
to be done
format: date-time
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}

0 comments on commit 6516c29

Please sign in to comment.