Skip to content

Commit 24848d5

Browse files
committed
Also reuse ScanTypeStatus in ClusterScanType
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
1 parent b561a3f commit 24848d5

3 files changed

Lines changed: 3 additions & 24 deletions

File tree

operator/apis/execution/v1/clusterscantype_types.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ import (
1111
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
1212
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
1313

14-
// ClusterScanTypeStatus defines the observed state of ClusterScanType
15-
type ClusterScanTypeStatus struct {
16-
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
17-
// Important: Run "make" to regenerate code after modifying this file
18-
}
19-
2014
// +kubebuilder:object:root=true
2115
// +kubebuilder:resource:scope=Cluster
2216
// +kubebuilder:printcolumn:name="Image",type=string,JSONPath=`.spec.jobTemplate.spec.template.spec.containers[0].image`,description="Scanner Container Image"
@@ -26,8 +20,8 @@ type ClusterScanType struct {
2620
metav1.TypeMeta `json:",inline"`
2721
metav1.ObjectMeta `json:"metadata,omitempty"`
2822

29-
Spec ScanTypeSpec `json:"spec,omitempty"`
30-
Status ClusterScanTypeStatus `json:"status,omitempty"`
23+
Spec ScanTypeSpec `json:"spec,omitempty"`
24+
Status ScanTypeStatus `json:"status,omitempty"`
3125
}
3226

3327
// +kubebuilder:object:root=true

operator/apis/execution/v1/zz_generated.deepcopy.go

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

operator/config/crd/bases/execution.securecodebox.io_clusterscantypes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8273,7 +8273,7 @@ spec:
82738273
type: object
82748274
type: object
82758275
status:
8276-
description: ClusterScanTypeStatus defines the observed state of ClusterScanType
8276+
description: ScanTypeStatus defines the observed state of ScanType
82778277
type: object
82788278
type: object
82798279
served: true

0 commit comments

Comments
 (0)