Versioned sealed-secrets models for cloudcoil
Project description
cloudcoil-models-sealed-secrets
Versioned sealed-secrets models for cloudcoil.
[!WARNING]
This repository is auto-generated from the cloudcoil repository. Please do not submit pull requests here. Instead, submit them to the main repository at https://github.com/cloudcoil/cloudcoil.
🔧 Installation
[!NOTE] For versioning information and compatibility, see the Versioning Guide.
Using uv (recommended):
# Install with Sealed Secrets support
uv add cloudcoil.models.sealed-secrets
Using pip:
pip install cloudcoil.models.sealed-secrets
💡 Examples
Using Sealed Secrets Models
from cloudcoil import apimachinery
import cloudcoil.models.sealed_secrets.v1alpha1 as sealed_secrets
# Create a SealedSecret
sealed_secret = sealed_secrets.SealedSecret(
metadata=apimachinery.ObjectMeta(name="mysecret"),
spec=sealed_secrets.SealedSecretSpec(
encrypted_data={
"username": "AgBy8hCi8...", # Your encrypted data here
"password": "AgBy8hCi8..." # Your encrypted data here
}
)
).create()
# List SealedSecrets
for secret in sealed_secrets.SealedSecret.list():
print(f"Found SealedSecret: {secret.metadata.name}")
Using the Fluent Builder API
Cloudcoil provides a powerful fluent builder API for Sealed Secrets resources:
from cloudcoil.models.sealed_secrets.v1alpha1 import SealedSecret
# Create a SealedSecret using the fluent builder
sealed_secret = (
SealedSecret.builder()
.metadata(lambda metadata: metadata
.name("mysecret")
.namespace("default")
.labels({"app": "myapp"})
)
.spec(lambda spec: spec
.encrypted_data({
"username": "AgBy8hCi8...", # Your encrypted data here
"password": "AgBy8hCi8..." # Your encrypted data here
})
.template(lambda template: template
.metadata(lambda t_metadata: t_metadata
.labels({"app": "myapp"})
)
.type("Opaque")
)
)
.build()
)
Using the Context Manager Builder API
For complex sealed secret configurations, you can use the context manager-based builder:
from cloudcoil.models.sealed_secrets.v1alpha1 import SealedSecret
# Create a SealedSecret using context managers
with SealedSecret.new() as secret:
with secret.metadata() as metadata:
metadata.name("mysecret")
metadata.namespace("default")
with secret.spec() as spec:
spec.encrypted_data({
"username": "AgBy8hCi8...", # Your encrypted data here
"password": "AgBy8hCi8..." # Your encrypted data here
})
with spec.template() as template:
template.type("Opaque")
with template.metadata() as t_metadata:
t_metadata.labels({"app": "myapp"})
final_secret = secret.build()
📚 Documentation
For complete documentation, visit cloudcoil.github.io/cloudcoil
📜 License
Apache License, Version 2.0 - see LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudcoil_models_sealed_secrets-0.28.0.1.tar.gz.
File metadata
- Download URL: cloudcoil_models_sealed_secrets-0.28.0.1.tar.gz
- Upload date:
- Size: 71.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eeb0e12cac7d4037e2dacc4f09336349b72b577c48afc486429094273e862fb4
|
|
| MD5 |
a99e225ae8430015ac2131e6c9834f0b
|
|
| BLAKE2b-256 |
009db7f7a300881839852dec442dcec1195ca199c52882ae6dc9563e6ae2b718
|
Provenance
The following attestation bundles were made for cloudcoil_models_sealed_secrets-0.28.0.1.tar.gz:
Publisher:
pypi_publish.yml on cloudcoil/models-sealed-secrets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudcoil_models_sealed_secrets-0.28.0.1.tar.gz -
Subject digest:
eeb0e12cac7d4037e2dacc4f09336349b72b577c48afc486429094273e862fb4 - Sigstore transparency entry: 169942679
- Sigstore integration time:
-
Permalink:
cloudcoil/models-sealed-secrets@5560f1fa881b5036fed00231aa476215b764e483 -
Branch / Tag:
refs/tags/0.28.0.1 - Owner: https://github.com/cloudcoil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@5560f1fa881b5036fed00231aa476215b764e483 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cloudcoil_models_sealed_secrets-0.28.0.1-py3-none-any.whl.
File metadata
- Download URL: cloudcoil_models_sealed_secrets-0.28.0.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bab68a39eab9ad67ab1010901b55c7d031593cf516c0895487399584b305db1c
|
|
| MD5 |
b791baa5a05d5035d5adfe262c1ac0a2
|
|
| BLAKE2b-256 |
8edbbacc8f969c33d31ffe85ac456d173d20ab988818496354cda389b7b14be0
|
Provenance
The following attestation bundles were made for cloudcoil_models_sealed_secrets-0.28.0.1-py3-none-any.whl:
Publisher:
pypi_publish.yml on cloudcoil/models-sealed-secrets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudcoil_models_sealed_secrets-0.28.0.1-py3-none-any.whl -
Subject digest:
bab68a39eab9ad67ab1010901b55c7d031593cf516c0895487399584b305db1c - Sigstore transparency entry: 169942680
- Sigstore integration time:
-
Permalink:
cloudcoil/models-sealed-secrets@5560f1fa881b5036fed00231aa476215b764e483 -
Branch / Tag:
refs/tags/0.28.0.1 - Owner: https://github.com/cloudcoil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yml@5560f1fa881b5036fed00231aa476215b764e483 -
Trigger Event:
release
-
Statement type: