Skip to content

Commit 6c52847

Browse files
author
Zach Swanson
committed
Update rollout stub types with WorkloadRef for external resources
1 parent 13e4fab commit 6c52847

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

api/stubs/argoproj/rollout_types.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ type Rollout struct {
3131

3232
// Rollout is the Schema for argoproj.io Rollouts
3333
type RolloutSpec struct {
34-
Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"`
34+
WorkloadRef *ObjectRef `json:"workloadRef,omitempty" protobuf:"bytes,10,opt,name=workloadRef"`
35+
Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"`
36+
}
37+
38+
type ObjectRef struct {
39+
APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,1,opt,name=apiVersion"`
40+
Kind string `json:"kind,omitempty" protobuf:"bytes,2,opt,name=kind"`
41+
Name string `json:"name,omitempty" protobuf:"bytes,3,opt,name=name"`
3542
}
3643

3744
// +kubebuilder:object:root=true

api/stubs/argoproj/zz_generated.deepcopy.go

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

0 commit comments

Comments
 (0)