File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11### Features
2- - feat(event-reporter): using sources-server for getting application version
2+ - feat(event-reporter): allow git integration ConfigMap reporting
Original file line number Diff line number Diff line change @@ -52,8 +52,9 @@ var allowedResourceTypes = map[ResourceTypeKey]bool{
5252}
5353
5454const (
55- CODEFRESH_IO_ENTITY = "codefresh_io_entity"
56- CODEFRESH_CM_NAME = "codefresh-cm"
55+ CODEFRESH_IO_ENTITY = "codefresh.io/entity"
56+ CODEFRESH_IO_ENTITY_ALT = "codefresh_io_entity"
57+ CODEFRESH_CM_NAME = "codefresh-cm"
5758)
5859
5960func isAllowedResource (rs appv1.ResourceStatus ) bool {
@@ -77,8 +78,13 @@ func isAllowedConfigMap(manifest string) bool {
7778 return true
7879 }
7980
80- // Check for the codefresh_io_entity label
81+ // Check for both possible Codefresh entity label formats
8182 labels := u .GetLabels ()
82- _ , hasCodefreshEntityLabel := labels [CODEFRESH_IO_ENTITY ]
83- return labels != nil && hasCodefreshEntityLabel
83+ if labels == nil {
84+ return false
85+ }
86+
87+ _ , hasUnderscoreLabel := labels [CODEFRESH_IO_ENTITY ]
88+ _ , hasDotLabel := labels [CODEFRESH_IO_ENTITY_ALT ]
89+ return hasUnderscoreLabel || hasDotLabel
8490}
You can’t perform that action at this time.
0 commit comments