gorgeous-minister-4113102/21/2023, 11:57 PM
from helm, in Pulumi?
billowy-army-6859902/22/2023, 12:12 AM
gorgeous-minister-4113102/22/2023, 12:30 AM
resource, so I need an alternative that can provide me with a unique-yet-consistent value for each run) I think I would be able to just use a random generated slug just fine, just wasn't sure..
def random_id(length: int = 4) -> str: """ Generates a random n-length character hexidecimal ID that can be used for naming, annotating, labeling or tagging a deployment, namespace etc. """ charsets: str = string.ascii_lowercase + string.digits return "".join(random.choice(charsets) for _ in range(length))