Skip to content

Commit

Permalink
updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
freschri committed Jul 31, 2023
1 parent 20a3382 commit 153ff65
Showing 1 changed file with 37 additions and 5 deletions.
42 changes: 37 additions & 5 deletions docs/addons/fluxcd.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,36 @@ Flux is a declarative, GitOps-based continuous delivery tool that can be integra

## Usage

### Single bootstrap repo path

```typescript
import * as cdk from 'aws-cdk-lib';
import * as blueprints from '@aws-quickstart/eks-blueprints';

const app = new cdk.App();

const addOn = new blueprints.addons.FluxCDAddOn({
bootstrapRepo: {
repoUrl: 'https://github.com/aws-observability/aws-observability-accelerator',
name: "aws-observability-accelerator",
targetRevision: "main",
path: "./artifacts/grafana-operator-manifests/eks/infrastructure"
},
bootstrapValues: {
"region": "us-east-1"
}
})
...

const blueprint = blueprints.EksBlueprint.builder()
.addOns(addOn)
.build(app, 'my-stack-name');
```

### Multiple bootstrap repo paths

Multiple bootstrap repo paths are useful when you want to create multiple Kustomizations, pointing to different paths, e.g. to deploy manifests from specific subfolders in your repository:

```typescript
import * as cdk from 'aws-cdk-lib';
import * as blueprints from '@aws-quickstart/eks-blueprints';
Expand All @@ -14,15 +44,17 @@ const app = new cdk.App();

const addOn = new blueprints.addons.FluxCDAddOn({
bootstrapRepo: {
repoUrl: 'https://github.com/stefanprodan/podinfo',
name: "podinfo",
targetRevision: "master",
path: "./kustomize"
repoUrl: 'https://github.com/aws-observability/aws-observability-accelerator',
name: "aws-observability-accelerator",
targetRevision: "main",
path: "./artifacts/grafana-operator-manifests/eks/infrastructure"
},
bootstrapValues: {
"region": "us-east-1"
},
}),
additionalFluxKustomizationPaths: ["./artifacts/grafana-operator-manifests/eks/java"]
})
...

const blueprint = blueprints.EksBlueprint.builder()
.addOns(addOn)
Expand Down

0 comments on commit 153ff65

Please sign in to comment.