@opencdk8s/cdk8s-argo-rollout
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 without compilation. See https://github.com/aws/jsii/issues/826
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, "example")
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:
npx projen # generates package.json yarn install # installs dependencies
-
Development scripts:
Command Description yarn compile
Compiles typescript => javascript yarn watch
Watch & compile yarn test
Run unit test & linter through jest yarn test -u
Update jest snapshots yarn run package
Creates a dist
with packages for all languages.yarn build
Compile + test + package yarn bump
Bump version (with changelog) based on [conventional commits] yarn release
Bump + 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
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
cdk8s-argo-rollout-0.0.5.tar.gz
(590.1 kB
view hashes)
Built Distribution
Close
Hashes for cdk8s_argo_rollout-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab380b62cc80685d445f9e13cf355564bd122f1a08f6ad6cf6ccdad159673303 |
|
MD5 | e19ee144576f4c902abc40beff0dab40 |
|
BLAKE2b-256 | eeb9688d019f948d2d10e1828bb29c48885218e3e818d281c3d1189f0ae75cca |