separate RootCAConfigMap from BoundServiceAccountTokenVolume

This commit is contained in:
Shihang Zhang
2020-11-03 14:35:19 -08:00
parent f75316e294
commit d40f0c43c4
12 changed files with 135 additions and 29 deletions

View File

@@ -200,6 +200,8 @@ func (c *Publisher) syncNamespace(ns string) error {
return nil
}
// copy so we don't modify the cache's instance of the configmap
cm = cm.DeepCopy()
cm.Data = data
_, err = c.client.CoreV1().ConfigMaps(ns).Update(context.TODO(), cm, metav1.UpdateOptions{})