|
|
@ -157,6 +157,7 @@ func (cfgmaps *ConfigMaps) Create(key string, rls *rspb.Release) error {
|
|
|
|
var lbs labels
|
|
|
|
var lbs labels
|
|
|
|
|
|
|
|
|
|
|
|
lbs.init()
|
|
|
|
lbs.init()
|
|
|
|
|
|
|
|
lbs.fromMap(rls.Labels)
|
|
|
|
lbs.set("createdAt", strconv.Itoa(int(time.Now().Unix())))
|
|
|
|
lbs.set("createdAt", strconv.Itoa(int(time.Now().Unix())))
|
|
|
|
|
|
|
|
|
|
|
|
// create a new configmap to hold the release
|
|
|
|
// create a new configmap to hold the release
|
|
|
@ -184,6 +185,7 @@ func (cfgmaps *ConfigMaps) Update(key string, rls *rspb.Release) error {
|
|
|
|
var lbs labels
|
|
|
|
var lbs labels
|
|
|
|
|
|
|
|
|
|
|
|
lbs.init()
|
|
|
|
lbs.init()
|
|
|
|
|
|
|
|
lbs.fromMap(rls.Labels)
|
|
|
|
lbs.set("modifiedAt", strconv.Itoa(int(time.Now().Unix())))
|
|
|
|
lbs.set("modifiedAt", strconv.Itoa(int(time.Now().Unix())))
|
|
|
|
|
|
|
|
|
|
|
|
// create a new configmap object to hold the release
|
|
|
|
// create a new configmap object to hold the release
|
|
|
|