@opencdk8s/cdk8s-aws-lb-controller-api-object
Project description
cdk8s-aws-lb-controller-api-object
API Object for AWS Load Balancer Controller, powered by the cdk8s project and aws-load-balancer-controller 🚀
Overview
# Example automatically generated from non-compiling source. May contain errors.
from constructs import Construct
from cdk8s import App, Chart, ChartProps
from opencdk8s.cdk8s_aws_lb_controller_api_object import AWSLoadBalancerControllerObject
class MyChart(Chart):
def __init__(self, scope, id, *, namespace=None, labels=None):
super().__init__(scope, id, namespace=namespace, labels=labels)
AWSLoadBalancerControllerObject(self, "example",
metadata={
"annotations": {
"kubernetes.io/ingress.class": "alb"
}
},
spec={
"rules": [{
"host": "example.com",
"http": {
"paths": [{
"path": "/*",
"backend": {
"service_name": "helloworld-svc",
"service_port": 80
}
}]
}
}]
}
)
app = App()
MyChart(app, "example1")
app.synth()
Example cdk8s synth manifest as follows.
manifest.k8s.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: alb
name: example-c89c1904
spec:
rules:
- host: example.com
http:
paths:
- backend:
serviceName: helloworld-svc
servicePort: 80
path: /*
Installation
TypeScript
Use yarn or npm to install.
$ npm install @opencdk8s/cdk8s-aws-lb-controller-api-objects
$ yarn add @opencdk8s/cdk8s-aws-lb-controller-api-objects
Python
$ pip install cdk8s-aws-lb-controller-api-objects
Contribution
-
Fork (link)
-
Bootstrap the repo:
yarn install # installs dependencies yarn projen
-
Development scripts:
Command Description yarn compileCompiles typescript => javascript yarn watchWatch & compile yarn testRun unit test & linter through jest yarn test -uUpdate jest snapshots yarn run packageCreates a distwith packages for all languages.yarn buildCompile + test + package yarn bumpBump version (with changelog) based on [conventional commits] yarn releaseBump + push to master -
Create a feature branch
-
Commit your changes
-
Rebase your local changes against the master branch
-
Create a new Pull Request (use conventional commits for the title please)
Licence
Author
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
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 cdk8s-aws-lb-controller-api-object-0.0.7.tar.gz.
File metadata
- Download URL: cdk8s-aws-lb-controller-api-object-0.0.7.tar.gz
- Upload date:
- Size: 321.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec8fa176e098eb916363a9af0f268135ef75059757cd28c7d4499fad9dfd2f35
|
|
| MD5 |
45b09ea80a0f67c8396b576a9a803af4
|
|
| BLAKE2b-256 |
762b3e0379504fb641bbb3991a1b621b8a21f52180dfe2426f0bf778e702be79
|
File details
Details for the file cdk8s_aws_lb_controller_api_object-0.0.7-py3-none-any.whl.
File metadata
- Download URL: cdk8s_aws_lb_controller_api_object-0.0.7-py3-none-any.whl
- Upload date:
- Size: 319.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fc5a974af07d33af0fb0602233e5de29215799555814537c9d9d16fc7d388b6
|
|
| MD5 |
a804c037d4115ad61977ed49799fdab2
|
|
| BLAKE2b-256 |
4ce67e24f38c96025d1d236c7399a47c10ff19636739f2787ebe54aa65833936
|