Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
okozachenko1203 committed Jan 23, 2024
1 parent d62ccd3 commit ef990be
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions magnum_cluster_api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ def get_object(self) -> pykube.ConfigMap:
**{
"keystone-auth.yaml": image_utils.update_manifest_images(
self.cluster.uuid,
os.path.join(manifests_path, "keystone-auth/keystone-auth.yaml"),
os.path.join(
manifests_path, "keystone-auth/keystone-auth.yaml"
),
repository=repository,
auth_url=auth_url,
policy=utils.get_keystone_auth_default_policy(self.cluster),
Expand Down Expand Up @@ -557,7 +559,9 @@ def get_object(self) -> objects.KubeadmControlPlaneTemplate:
"magnum_cluster_api", "manifests"
)
audit_policy = open(os.path.join(manifests_path, "audit/policy.yaml")).read()
keystone_auth_webhook = open(os.path.join(manifests_path, "keystone-auth/webhook.yaml")).read()
keystone_auth_webhook = open(
os.path.join(manifests_path, "keystone-auth/webhook.yaml")
).read()

return objects.KubeadmControlPlaneTemplate(
self.api,
Expand Down Expand Up @@ -601,9 +605,11 @@ def get_object(self) -> objects.KubeadmControlPlaneTemplate:
},
{
"path": "/etc/kubernetes/webhooks/webhookconfig.yaml",
"owner": "root:root"
"owner": "root:root",
"permissions": "0644",
"content": base64.encode_as_text(keystone_auth_webhook),
"content": base64.encode_as_text(
keystone_auth_webhook
),
"encoding": "base64",
},
],
Expand Down Expand Up @@ -1654,9 +1660,9 @@ def get_object(self) -> objects.ClusterClass:
),
},
},
]
],
}
]
],
},
{
"name": "controlPlaneConfig",
Expand Down Expand Up @@ -2191,7 +2197,9 @@ def get_object(self) -> objects.Cluster:
},
{
"name": "enableKeystoneAuth",
"value": utils.get_cluster_label_as_bool(self.cluster, "keystone_auth_enabled", True),
"value": utils.get_cluster_label_as_bool(
self.cluster, "keystone_auth_enabled", True
),
},
],
},
Expand Down

0 comments on commit ef990be

Please sign in to comment.