Skip to content

Commit

Permalink
add skip stop service on remove annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Sep 18, 2024
1 parent 1613b7c commit 8e8a1f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/ck8s/config_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ func GenerateInitControlPlaneConfig(cfg InitControlPlaneConfig) (apiv1.Bootstrap
out.ClusterConfig.Annotations[apiv1.AnnotationSkipCleanupKubernetesNodeOnRemove] = "true"
}

if _, ok := out.ClusterConfig.Annotations[apiv1.AnnotationSkipStopServicesOnRemove]; !ok {

Check failure on line 94 in pkg/ck8s/config_init.go

View workflow job for this annotation

GitHub Actions / Unit Tests & Code Quality

undefined: apiv1.AnnotationSkipStopServicesOnRemove
out.ClusterConfig.Annotations[apiv1.AnnotationSkipStopServicesOnRemove] = "true"

Check failure on line 95 in pkg/ck8s/config_init.go

View workflow job for this annotation

GitHub Actions / Unit Tests & Code Quality

undefined: apiv1.AnnotationSkipStopServicesOnRemove
}

// features
out.ClusterConfig.DNS.Enabled = ptr.To(cfg.InitConfig.GetEnableDefaultDNS())
out.ClusterConfig.LocalStorage.Enabled = ptr.To(cfg.InitConfig.GetEnableDefaultLocalStorage())
Expand Down

0 comments on commit 8e8a1f5

Please sign in to comment.