Skip to content

Commit

Permalink
Merge branch 'main' of github.com:/SovereignCloudStack/standards into…
Browse files Browse the repository at this point in the history
… feat/generator-form

Also add a few more comments.

Signed-off-by: Kurt Garloff <[email protected]>
  • Loading branch information
garloff committed Dec 8, 2023
2 parents c752af8 + 9cd2c9d commit 631228c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Standards/scs-0211-v1-kaas-default-storage-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: |

## Introduction

Cluster consumers can request persistent storage via [`PersistentVolumeClaims`](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#persistentvolumeclaim-v1-core) which is provisioned automatically by cloud-provided automation.
Cluster consumers can request persistent storage via [`PersistentVolumeClaims`](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims) which is provisioned automatically by cloud-provided automation.
Storage requirements may vary across use cases, so there is the concept of `StorageClasses`. `StorageClasses` define some set of storage properties. So, consumers can choose one of these depending on the use case.

[Kubernetes documentation](https://kubernetes.io/docs/concepts/storage/persistent-volumes/)
Expand Down
5 changes: 5 additions & 0 deletions Tests/iaas/flavor-naming/flavor-form.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ def output_parse():


def find_spec(lst, key):
"Find index of class name key in lst, -1 means not found"
for i in range(0, len(lst)):
if type(lst[i]).type == key:
return i
return -1


def find_attr(cls, key):
"Find index of attribute in object cls, -1 means not found"
for i in range(0, len(cls.pattrs)):
if cls.pattrs[i] == key:
return i
Expand Down Expand Up @@ -119,6 +121,7 @@ def generate_name(form):


def input_method(self):
"Interactive input method for reference"
print(self.type)
for i in range(0, len(self.pnames)):
tbl = None
Expand Down Expand Up @@ -178,13 +181,15 @@ def input_method(self):


def is_checked(flag):
"Checked attribute string"
if flag:
return "checked"
else:
return ""


def keystr(key):
"Empty string gets converted to NN"
if key == "":
return "NN"
else:
Expand Down

0 comments on commit 631228c

Please sign in to comment.