Skip to content

Commit 9d0b9d6

Browse files
committed
Add canary.spec.deployment.labels
1 parent 37043f8 commit 9d0b9d6

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

pkg/apis/flagger/v1alpha4/types.go

+13
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ type CanarySpec struct {
5656
// +optional
5757
IngressRef *hpav1.CrossVersionObjectReference `json:"ingressRef,omitempty"`
5858

59+
// primary deployment spec
60+
Deployment CanaryDeployment `json:"deployment,omitempty"`
61+
5962
// virtual service spec
6063
Service CanaryService `json:"service"`
6164

@@ -112,6 +115,16 @@ type CanaryStatus struct {
112115
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
113116
}
114117

118+
// CanaryDeployment is used to customize the generated primary deployment
119+
type CanaryDeployment struct {
120+
// Map of string keys and values that can be used to organize and categorize
121+
// (scope and select) objects. May match selectors of replication controllers
122+
// and services.
123+
// More info: http://kubernetes.io/docs/user-guide/labels
124+
// +optional
125+
Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"`
126+
}
127+
115128
// CanaryService is used to create ClusterIP services
116129
// and Istio Virtual Service
117130
type CanaryService struct {

pkg/apis/flagger/v1alpha4/zz_generated.deepcopy.go

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)