Skip to content

Commit 6e4873d

Browse files
committed
isCM and isCS on configMapbean.resourceType
1 parent 7cf8c7d commit 6e4873d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/pipeline/bean/ConfigMapBean.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ func (r ResourceType) ToString() string {
147147
return string(r)
148148
}
149149

150+
func (r ResourceType) IsCS() bool {
151+
return r == CS
152+
}
153+
154+
func (r ResourceType) IsCM() bool {
155+
return r == CM
156+
}
157+
150158
type ResolvedCmCsRequest struct {
151159
Scope resourceQualifiers.Scope
152160
AppId int

0 commit comments

Comments
 (0)