Skip to main content

No project description provided

Project description

Kubernetes Secret Generator

This package contains a nice to create Kubernetes secret files
It can create secrets from .env files or from files using the
path of the file, and reading them

installation

pip install k8s-secretgenerator

Example

# Example:

namespace = 'your-awesome-namespace'
# Define file input
credentials = [
    {
        'secret_name': 'google-credentials',
        'namespace': namespace,
        'type': 'Opaque',
        'input_files': [
            {'name': 'service_account.json', 'path': './secrets/service_account.json'},
        ]
    }
]
# Define env file input
env_files = [
    {
        'secret_name': 'env-vars',
        'namespace': namespace,
        'type': 'Opaque',
        'input_file': '.env'
    }
]
manifest_generator = ManifestGenerator(output_dir='secrets')

manifest_generator.create_from_files(credentials)
manifest_generator.create_from_env_files(env_files)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

k8s-secretgenerator-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

k8s_secretgenerator-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file k8s-secretgenerator-1.0.0.tar.gz.

File metadata

  • Download URL: k8s-secretgenerator-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.7

File hashes

Hashes for k8s-secretgenerator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 85d6b9691f820a37da389ff1c7046338b4138ee7fc2ae1bef80d29c453437d23
MD5 87c54204b6337caf0e7d8770eed6cef2
BLAKE2b-256 a2280bb12ff0136bf7e63d3911207ca26d797d2a866eebdbe5c6781eb08146b0

See more details on using hashes here.

Provenance

File details

Details for the file k8s_secretgenerator-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: k8s_secretgenerator-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.7

File hashes

Hashes for k8s_secretgenerator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 087f55d37fe3add9062b5c4972f3e4db7714e1e421de51feaaad2891465f88a8
MD5 d2d325f959676582b44681fbb3188771
BLAKE2b-256 5239ba97f02e49210be25ca9f854ed77d6cb43ec175bb7164d3ec7596da6b70c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page