From a7982af16307154f955250fcb6786085583a6093 Mon Sep 17 00:00:00 2001 From: Alexander Sitnik Date: Tue, 9 Feb 2021 23:41:44 +0300 Subject: [PATCH] fix: set priorityClass for DaemonSets too The option to set priorityClass for StatefulSets was added in !51. DaemonSets must have it too. --- mirroroperator/registrymirror.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mirroroperator/registrymirror.py b/mirroroperator/registrymirror.py index 1d98feb..f9d240f 100644 --- a/mirroroperator/registrymirror.py +++ b/mirroroperator/registrymirror.py @@ -353,7 +353,8 @@ def generate_daemon_set(self, daemon_set): secret=client.V1SecretVolumeSource( secret_name=self.docker_certificate_secret ) - )] + )], + priority_class_name=self.priority_class ) ), update_strategy=client.V1DaemonSetUpdateStrategy(