Skip to content

Commit

Permalink
Add volume field to pass from operator
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha committed Dec 12, 2023
1 parent 9b37b59 commit cb8fd22
Show file tree
Hide file tree
Showing 6 changed files with 1,556 additions and 3 deletions.
1 change: 1 addition & 0 deletions .config/api-rules/violation_exceptions.list
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ API rule violation: list_type_missing,kubeops.dev/sidekick/apis/apps/v1alpha1,Si
API rule violation: list_type_missing,kubeops.dev/sidekick/apis/apps/v1alpha1,SidekickSpec,InitContainers
API rule violation: list_type_missing,kubeops.dev/sidekick/apis/apps/v1alpha1,SidekickSpec,ReadinessGates
API rule violation: list_type_missing,kubeops.dev/sidekick/apis/apps/v1alpha1,SidekickSpec,Tolerations
API rule violation: list_type_missing,kubeops.dev/sidekick/apis/apps/v1alpha1,SidekickSpec,Volumes
API rule violation: list_type_missing,kubeops.dev/sidekick/apis/apps/v1alpha1,SidekickStatus,Conditions
API rule violation: names_match,k8s.io/api/core/v1,AzureDiskVolumeSource,DataDiskURI
API rule violation: names_match,k8s.io/api/core/v1,ContainerStatus,LastTerminationState
Expand Down
22 changes: 21 additions & 1 deletion apis/apps/v1alpha1/openapi_generated.go

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

7 changes: 7 additions & 0 deletions apis/apps/v1alpha1/sidekick_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,13 @@ type SidekickSpec struct {
// +k8s:conversion-gen=false
// +optional
HostUsers *bool `json:"hostUsers,omitempty"`

// List of volumes that can be mounted by containers belonging to the pod.
// More info: https://kubernetes.io/docs/concepts/storage/volumes
// +optional
// +patchMergeKey=name
// +patchStrategy=merge,retainKeys
Volumes []core.Volume `json:"volumes,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name" protobuf:"bytes,1,rep,name=volumes"`
}

// A single application container that you want to run within a pod.
Expand Down
7 changes: 7 additions & 0 deletions apis/apps/v1alpha1/zz_generated.deepcopy.go

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

Loading

0 comments on commit cb8fd22

Please sign in to comment.