Skip to content

Commit

Permalink
add feastDir w/ git & init options
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy Hughes <[email protected]>
  • Loading branch information
tchughesiv committed Feb 25, 2025
1 parent 6d3062a commit 40d5642
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 190 deletions.
25 changes: 0 additions & 25 deletions infra/feast-operator/api/v1alpha1/featurestore_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,6 @@ type JobSpec struct {
// +optional
PodFailurePolicy *batchv1.PodFailurePolicy `json:"podFailurePolicy,omitempty" protobuf:"bytes,11,opt,name=podFailurePolicy"`

// successPolicy specifies the policy when the Job can be declared as succeeded.
// If empty, the default behavior applies - the Job is declared as succeeded
// only when the number of succeeded pods equals to the completions.
// When the field is specified, it must be immutable and works only for the Indexed Jobs.
// Once the Job meets the SuccessPolicy, the lingering pods are terminated.
//
// This field is alpha-level. To use this field, you must enable the
// `JobSuccessPolicy` feature gate (disabled by default).
// +optional
SuccessPolicy *batchv1.SuccessPolicy `json:"successPolicy,omitempty" protobuf:"bytes,16,opt,name=successPolicy"`

// Specifies the number of retries before marking this job failed.
// Defaults to 6
// +optional
Expand Down Expand Up @@ -320,20 +309,6 @@ type JobSpec struct {
// This is on by default.
// +optional
PodReplacementPolicy *batchv1.PodReplacementPolicy `json:"podReplacementPolicy,omitempty" protobuf:"bytes,14,opt,name=podReplacementPolicy,casttype=podReplacementPolicy"`

// ManagedBy field indicates the controller that manages a Job. The k8s Job
// controller reconciles jobs which don't have this field at all or the field
// value is the reserved string `kubernetes.io/job-controller`, but skips
// reconciling Jobs 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 64 characters.
//
// This field is alpha-level. The job controller accepts setting the field
// when the feature gate JobManagedBy is enabled (disabled by default).
// +optional
ManagedBy *string `json:"managedBy,omitempty" protobuf:"bytes,15,opt,name=managedBy"`
}

// FeatureStoreServices defines the desired feast services. An ephemeral onlineStore feature server is deployed by default.
Expand Down
10 changes: 0 additions & 10 deletions infra/feast-operator/api/v1alpha1/zz_generated.deepcopy.go

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

67 changes: 0 additions & 67 deletions infra/feast-operator/config/crd/bases/feast.dev_featurestores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,6 @@ spec:
job should be run with.
format: int32
type: integer
managedBy:
description: ManagedBy field indicates the controller that
manages a Job.
type: string
manualSelector:
description: manualSelector controls generation of pod labels
and pod selectors.
Expand Down Expand Up @@ -422,35 +418,6 @@ spec:
type: object
type: object
x-kubernetes-map-type: atomic
successPolicy:
description: successPolicy specifies the policy when the Job
can be declared as succeeded.
properties:
rules:
description: |-
rules represents the list of alternative rules for the declaring the Jobs
as successful before `.status.succeeded >= .
items:
description: SuccessPolicyRule describes rule for declaring
a Job as succeeded.
properties:
succeededCount:
description: |-
succeededCount specifies the minimal required size of the actual set of the succeeded indexes
for the Job.
format: int32
type: integer
succeededIndexes:
description: "succeededIndexes specifies the set
of indexes\nwhich need to be contained in the
actual set of the succeeded indexes for "
type: string
type: object
type: array
x-kubernetes-list-type: atomic
required:
- rules
type: object
suspend:
description: suspend specifies whether the Job controller
should create Pods or not.
Expand Down Expand Up @@ -4170,10 +4137,6 @@ spec:
job should be run with.
format: int32
type: integer
managedBy:
description: ManagedBy field indicates the controller
that manages a Job.
type: string
manualSelector:
description: manualSelector controls generation of pod
labels and pod selectors.
Expand Down Expand Up @@ -4308,36 +4271,6 @@ spec:
type: object
type: object
x-kubernetes-map-type: atomic
successPolicy:
description: successPolicy specifies the policy when the
Job can be declared as succeeded.
properties:
rules:
description: |-
rules represents the list of alternative rules for the declaring the Jobs
as successful before `.status.succeeded >= .
items:
description: SuccessPolicyRule describes rule for
declaring a Job as succeeded.
properties:
succeededCount:
description: |-
succeededCount specifies the minimal required size of the actual set of the succeeded indexes
for the Job.
format: int32
type: integer
succeededIndexes:
description: "succeededIndexes specifies the
set of indexes\nwhich need to be contained
in the actual set of the succeeded indexes
for "
type: string
type: object
type: array
x-kubernetes-list-type: atomic
required:
- rules
type: object
suspend:
description: suspend specifies whether the Job controller
should create Pods or not.
Expand Down
67 changes: 0 additions & 67 deletions infra/feast-operator/dist/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,6 @@ spec:
job should be run with.
format: int32
type: integer
managedBy:
description: ManagedBy field indicates the controller that
manages a Job.
type: string
manualSelector:
description: manualSelector controls generation of pod labels
and pod selectors.
Expand Down Expand Up @@ -430,35 +426,6 @@ spec:
type: object
type: object
x-kubernetes-map-type: atomic
successPolicy:
description: successPolicy specifies the policy when the Job
can be declared as succeeded.
properties:
rules:
description: |-
rules represents the list of alternative rules for the declaring the Jobs
as successful before `.status.succeeded >= .
items:
description: SuccessPolicyRule describes rule for declaring
a Job as succeeded.
properties:
succeededCount:
description: |-
succeededCount specifies the minimal required size of the actual set of the succeeded indexes
for the Job.
format: int32
type: integer
succeededIndexes:
description: "succeededIndexes specifies the set
of indexes\nwhich need to be contained in the
actual set of the succeeded indexes for "
type: string
type: object
type: array
x-kubernetes-list-type: atomic
required:
- rules
type: object
suspend:
description: suspend specifies whether the Job controller
should create Pods or not.
Expand Down Expand Up @@ -4178,10 +4145,6 @@ spec:
job should be run with.
format: int32
type: integer
managedBy:
description: ManagedBy field indicates the controller
that manages a Job.
type: string
manualSelector:
description: manualSelector controls generation of pod
labels and pod selectors.
Expand Down Expand Up @@ -4316,36 +4279,6 @@ spec:
type: object
type: object
x-kubernetes-map-type: atomic
successPolicy:
description: successPolicy specifies the policy when the
Job can be declared as succeeded.
properties:
rules:
description: |-
rules represents the list of alternative rules for the declaring the Jobs
as successful before `.status.succeeded >= .
items:
description: SuccessPolicyRule describes rule for
declaring a Job as succeeded.
properties:
succeededCount:
description: |-
succeededCount specifies the minimal required size of the actual set of the succeeded indexes
for the Job.
format: int32
type: integer
succeededIndexes:
description: "succeededIndexes specifies the
set of indexes\nwhich need to be contained
in the actual set of the succeeded indexes
for "
type: string
type: object
type: array
x-kubernetes-list-type: atomic
required:
- rules
type: object
suspend:
description: suspend specifies whether the Job controller
should create Pods or not.
Expand Down
21 changes: 0 additions & 21 deletions infra/feast-operator/docs/api/markdown/ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,6 @@ with restartPolicy=OnFailure.

This field is beta-level. It can be used when the `JobPodFailurePolicy`
feature gate is enabled (enabled by default). |
| `successPolicy` _[SuccessPolicy](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#successpolicy-v1-batch)_ | successPolicy specifies the policy when the Job can be declared as succeeded.
If empty, the default behavior applies - the Job is declared as succeeded
only when the number of succeeded pods equals to the completions.
When the field is specified, it must be immutable and works only for the Indexed Jobs.
Once the Job meets the SuccessPolicy, the lingering pods are terminated.


This field is alpha-level. To use this field, you must enable the
`JobSuccessPolicy` feature gate (disabled by default). |
| `backoffLimit` _integer_ | Specifies the number of retries before marking this job failed.
Defaults to 6 |
| `backoffLimitPerIndex` _integer_ | Specifies the limit for the number of retries within an
Expand Down Expand Up @@ -379,18 +370,6 @@ When using podFailurePolicy, Failed is the the only allowed value.
TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.
This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle.
This is on by default. |
| `managedBy` _string_ | ManagedBy field indicates the controller that manages a Job. The k8s Job
controller reconciles jobs which don't have this field at all or the field
value is the reserved string `kubernetes.io/job-controller`, but skips
reconciling Jobs 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 64 characters.


This field is alpha-level. The job controller accepts setting the field
when the feature gate JobManagedBy is enabled (disabled by default). |


#### KubernetesAuthz
Expand Down

0 comments on commit 40d5642

Please sign in to comment.