@@ -17,7 +17,7 @@ import (
17
17
)
18
18
19
19
func deployment (ctx * common.RenderContext ) ([]runtime.Object , error ) {
20
- labels := common .DefaultLabels ( Component )
20
+ labels := common .CustomizeLabel ( ctx , Component , common . TypeMetaDeployment )
21
21
22
22
configHash , err := common .ObjectHash (configmap (ctx ))
23
23
if err != nil {
@@ -127,9 +127,10 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
127
127
& appsv1.Deployment {
128
128
TypeMeta : common .TypeMetaDeployment ,
129
129
ObjectMeta : metav1.ObjectMeta {
130
- Name : Component ,
131
- Namespace : ctx .Namespace ,
132
- Labels : labels ,
130
+ Name : Component ,
131
+ Namespace : ctx .Namespace ,
132
+ Labels : labels ,
133
+ Annotations : common .CustomizeAnnotation (ctx , Component , common .TypeMetaDeployment ),
133
134
},
134
135
Spec : appsv1.DeploymentSpec {
135
136
Selector : & metav1.LabelSelector {MatchLabels : labels },
@@ -140,9 +141,11 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
140
141
Name : Component ,
141
142
Namespace : ctx .Namespace ,
142
143
Labels : labels ,
143
- Annotations : map [string ]string {
144
- common .AnnotationConfigChecksum : configHash ,
145
- },
144
+ Annotations : common .CustomizeAnnotation (ctx , Component , common .TypeMetaDeployment , func () map [string ]string {
145
+ return map [string ]string {
146
+ common .AnnotationConfigChecksum : configHash ,
147
+ }
148
+ }),
146
149
},
147
150
Spec : podSpec ,
148
151
},
0 commit comments