Skip to content

Commit

Permalink
mypy_checks_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil1697 committed Jan 31, 2024
1 parent 4889805 commit a394d65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kubemarine/patches/strong_ciphers_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from kubemarine.core.resources import DynamicResources

class TheAction(Action):
def __init__(self):
def __init__(self) -> None:
super().__init__("Update API Server TLS cipher suites (if necessary)")

def run(self, res: DynamicResources) -> None:
Expand Down Expand Up @@ -57,7 +57,7 @@ def run(self, res: DynamicResources) -> None:
# Call the update_kubeadm_configmap_tls_cipher_suites method
self.update_kubeadm_configmap_tls_cipher_suites(control_plane, tls_cipher_suites)

def update_kubeadm_configmap_tls_cipher_suites(self, control_plane, tls_cipher_suite):
def update_kubeadm_configmap_tls_cipher_suites(self, control_plane, tls_cipher_suite) -> None:
yaml = ruamel.yaml.YAML()

# Retrieve current kubeadm config map
Expand All @@ -84,7 +84,7 @@ def update_kubeadm_configmap_tls_cipher_suites(self, control_plane, tls_cipher_s
control_plane.sudo("rm -f /tmp/%s.yaml" % filename)

class UpdateApiServerCipherSuites(RegularPatch):
def __init__(self):
def __init__(self) -> None:
super().__init__("apiserver_cipher_suites")

@property
Expand Down

0 comments on commit a394d65

Please sign in to comment.