Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apis/config/target_cleardeviation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type TargetClearDeviationConfigResult struct {

// TargetClearDeviation is the Schema for the TargetClearDeviation API
// +k8s:openapi-gen=true
// +kubebuilder:storageversion
type TargetClearDeviation struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
Expand Down
1 change: 1 addition & 0 deletions apis/config/target_configblame_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +kubebuilder:storageversion

// TargetConfigBlame is the Schema for the TargetConfigBlame API
type TargetConfigBlame struct {
Expand Down
1 change: 1 addition & 0 deletions apis/config/target_runningconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +kubebuilder:storageversion

// TargetRunningConfig is the Schema for the TargetRunning API
type TargetRunningConfig struct {
Expand Down
1 change: 1 addition & 0 deletions apis/config/v1alpha1/target_cleardeviation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type TargetClearDeviationConfigResult struct {

// TargetClearDeviation is the Schema for the TargetClearDeviation API
// +k8s:openapi-gen=true
// +kubebuilder:storageversion
type TargetClearDeviation struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
Expand Down
1 change: 1 addition & 0 deletions apis/config/v1alpha1/target_configblame_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +kubebuilder:storageversion

// TargetConfigBlame is the Schema for the TargetConfigBlame API
type TargetConfigBlame struct {
Expand Down
1 change: 1 addition & 0 deletions apis/config/v1alpha1/target_runningconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:openapi-gen=true
// +kubebuilder:storageversion

// TargetRunningConfig is the Schema for the TargetRunningConfig API
type TargetRunningConfig struct {
Expand Down
8 changes: 4 additions & 4 deletions crds/config.sdcio.dev_configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
type: object
priority:
description: Priority defines the priority of this config
format: int64
format: int32
type: integer
revertive:
description: Revertive defines if this CR is enabled for revertive
Expand Down Expand Up @@ -118,7 +118,7 @@ spec:
type: object
priority:
description: Priority defines the priority of this config
format: int64
format: int32
type: integer
revertive:
description: Revertive defines if this CR is enabled for revertive
Expand Down Expand Up @@ -270,7 +270,7 @@ spec:
type: object
priority:
description: Priority defines the priority of this config
format: int64
format: int32
type: integer
revertive:
description: Revertive defines if this CR is enabled for revertive
Expand Down Expand Up @@ -321,7 +321,7 @@ spec:
type: object
priority:
description: Priority defines the priority of this config
format: int64
format: int32
type: integer
revertive:
description: Revertive defines if this CR is enabled for revertive
Expand Down
4 changes: 2 additions & 2 deletions crds/config.sdcio.dev_configsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
type: object
priority:
description: Priority defines the priority of this config
format: int64
format: int32
type: integer
revertive:
description: Revertive defines if this CR is enabled for revertive
Expand Down Expand Up @@ -320,7 +320,7 @@ spec:
type: object
priority:
description: Priority defines the priority of this config
format: int64
format: int32
type: integer
revertive:
description: Revertive defines if this CR is enabled for revertive
Expand Down
153 changes: 145 additions & 8 deletions crds/config.sdcio.dev_targetcleardeviations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,160 @@ spec:
spec:
description: TargetClearDeviationSpec defines the desired state of Target
properties:
paths:
description: Paths provide the path of the deviation to be cleared
config:
description: Config defines the clear deviations configs to applied
on the taget
items:
type: string
properties:
name:
description: Name of the config on which the paths should be
cleared
type: string
paths:
description: Paths provide the path of the deviation to be cleared
items:
type: string
type: array
required:
- name
- paths
type: object
type: array
required:
- paths
- config
type: object
status:
properties:
cleared:
type: integer
message:
description: Message is a global message for the transaction
type: string
results:
description: Results holds per-config outcomes, keyed by intent name
items:
properties:
errors:
description: Errors lists any errors for this specific config
items:
type: string
type: array
message:
description: Message provides detail on the outcome
type: string
name:
description: Name of the config on which the paths should be
cleared
type: string
success:
description: Success indicates whether the clear deviation was
successful
type: boolean
warnings:
description: Warnings lists any warnings for this specific config
items:
type: string
type: array
required:
- name
- success
type: object
type: array
warnings:
description: Warnings are global warnings from the transaction
items:
type: string
type: array
type: object
type: object
served: true
storage: true
- name: v1alpha1
schema:
openAPIV3Schema:
description: TargetClearDeviation is the Schema for the TargetClearDeviation
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: TargetClearDeviationSpec defines the desired state of Target
properties:
config:
description: Config defines the clear deviations configs to applied
on the taget
items:
properties:
name:
description: Name of the config on which the paths should be
cleared
type: string
paths:
description: Paths provide the path of the deviation to be cleared
items:
type: string
type: array
required:
- name
- paths
type: object
type: array
required:
- cleared
- message
- config
type: object
status:
properties:
message:
description: Message is a global message for the transaction
type: string
results:
description: Results holds per-config outcomes, keyed by intent name
items:
properties:
errors:
description: Errors lists any errors for this specific config
items:
type: string
type: array
message:
description: Message provides detail on the outcome
type: string
name:
description: Name of the config on which the paths should be
cleared
type: string
success:
description: Success indicates whether the clear deviation was
successful
type: boolean
warnings:
description: Warnings lists any warnings for this specific config
items:
type: string
type: array
required:
- name
- success
type: object
type: array
warnings:
description: Warnings are global warnings from the transaction
items:
type: string
type: array
type: object
type: object
served: true
Expand Down
76 changes: 76 additions & 0 deletions crds/config.sdcio.dev_targetconfigblames.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.20.0
name: targetconfigblames.config.sdcio.dev
spec:
group: config.sdcio.dev
names:
kind: TargetConfigBlame
listKind: TargetConfigBlameList
plural: targetconfigblames
singular: targetconfigblame
scope: Namespaced
versions:
- name: config
schema:
openAPIV3Schema:
description: TargetConfigBlame is the Schema for the TargetConfigBlame 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
value:
type: object
x-kubernetes-preserve-unknown-fields: true
required:
- value
type: object
served: true
storage: true
- name: v1alpha1
schema:
openAPIV3Schema:
description: TargetConfigBlame is the Schema for the TargetConfigBlame 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
value:
type: object
x-kubernetes-preserve-unknown-fields: true
required:
- value
type: object
served: true
storage: true
Loading