fix(provider/kubernetes): v2 Use artifact replacers for DaemonSets
MODIFY
clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/handler/KubernetesDaemonSetHandler.java
clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/handler/KubernetesDaemonSetHandler.java
package com.netflix.spinnaker.clouddriver.kubernetes.v2.op.handler;
+import com.netflix.spinnaker.clouddriver.kubernetes.v2.artifact.ArtifactReplacerFactory;
import com.netflix.spinnaker.clouddriver.kubernetes.v2.caching.Keys;
import com.netflix.spinnaker.clouddriver.kubernetes.v2.caching.agent.KubernetesCacheDataConverter;
import com.netflix.spinnaker.clouddriver.kubernetes.v2.caching.agent.KubernetesDaemonSetCachingAgent;
@@ -41,6 +42,14 @@ public class KubernetesDaemonSetHandler extends KubernetesHandler implements
CanUndoRollout,
ServerGroupHandler {
+ public KubernetesDaemonSetHandler() {
+ registerReplacer(ArtifactReplacerFactory.dockerImageReplacer());
+ registerReplacer(ArtifactReplacerFactory.configMapVolumeReplacer());
+ registerReplacer(ArtifactReplacerFactory.secretVolumeReplacer());
+ registerReplacer(ArtifactReplacerFactory.configMapEnvFromReplacer());
+ registerReplacer(ArtifactReplacerFactory.secretEnvFromReplacer());
+ }
+
@Override
public KubernetesKind kind() {
return KubernetesKind.DAEMON_SET;

fix(provider/kubernetes): v2 Use artifact replacers for DaemonSets (#2445)