def generateNamespacePod(DIR, yamlContent): # GenerateNamespacePod generate the yaml file to create the namespace for k8s, and return a set of paths which indicate the location of org files orgs = [] for org in os.listdir(DIR): orgDIR = os.path.join(DIR, org) ## generate namespace first. orgs.append(orgDIR) offset = orgs.index(orgDIR) tc.configORGS(org, orgDIR, offset, yamlContent) return orgs
def generateNamespacePod(DIR): orgs = [] for org in os.listdir(DIR): orgDIR = os.path.join(DIR, org) ## generate namespace first. tc.configORGS(org, orgDIR) orgs.append(orgDIR) #orgs.append(orgDIR + "/" + DIR.lower()) #print(orgs) return orgs
def generateNamespacePod(DIR, override, all_volumes, nfs, ex_ports): orderer0 = sorted(os.listdir(ORDERER))[0] orgs = [] for index, org in enumerate(sorted(os.listdir(DIR))): orgDIR = os.path.join(DIR, org) ## generate namespace first. tc.configORGS(org, orgDIR, orderer0, override, index, all_volumes, nfs, ex_ports) orgs.append(orgDIR) # orgs.append(orgDIR + "/" + DIR.lower()) # print(orgs) return orgs
def generateNamespacePod(dir, name, domain): ## generate namespace first. tc.configORGS(name, dir, domain)