Skip to content

Commit

Permalink
Release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
oun committed Jul 28, 2023
1 parent ec21d56 commit 00a2899
Show file tree
Hide file tree
Showing 40 changed files with 2,224 additions and 1,969 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
=========

## 1.0.1

This release includes flux2 [v2.0.1](https://github.com/fluxcd/flux2/releases/tag/v2.0.1).

## 0.25.3

- Upgrade bridged provider to Terraform Plugin Framework
Expand Down
27 changes: 27 additions & 0 deletions examples/nodejs/flux-bootstrap-git/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Flux Bootstrap Git Example

This example deploy Flux into a Kubernetes cluster and configure it to synchroize from a Github repository.

If you don't have a Kuberentes cluster, create one using Kind:

```shell
kind create cluster --name pulumi-fluxcd-nodejs
```

Generate a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) (PAT) with repo permissions, make sure to copy the generated token.

Configure Github personal access token and repository owner:

```shell
export GITHUB_TOKEN=<your-github-personal-access-token>
export GITHUB_OWNER=<your-github-owner>
```

Update `repoName` and `githubOwner` variables in index.ts.

```javascript
const repoName = "your-deployment-repository";
const githubOwner = "your-github-owner";
```

Run `pulumi up`.
4 changes: 0 additions & 4 deletions examples/nodejs/flux-bootstrap-git/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import * as tls from "@pulumi/tls";
import * as github from "@pulumi/github";
import * as flux from "@worawat/flux";

// Require Github configurations
// export GITHUB_TOKEN=your-github-personal-access-token
// export GITHUB_OWNER=your-github-owner

const repoName = "pulumi-flux-sample";
const branch = "main";
const path = "clusters/dev";
Expand Down
4 changes: 2 additions & 2 deletions examples/nodejs/flux-bootstrap-git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"@types/node": "^16"
},
"dependencies": {
"@pulumi/pulumi": "^3.0.0",
"@pulumi/github": "^5.0.0",
"@worawat/flux": "^0.25.3",
"@pulumi/pulumi": "^3.0.0",
"@worawat/flux": "^1.0.1",
"@pulumi/tls": "^4.6.1"
}
}
27 changes: 27 additions & 0 deletions examples/python/flux-bootstrap-git/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Flux Bootstrap Git Example

This example deploy Flux into a Kubernetes cluster and configure it to synchroize from a Github repository.

If you don't have a Kuberentes cluster, create one using Kind:

```shell
kind create cluster --name pulumi-fluxcd-nodejs
```

Generate a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) (PAT) with repo permissions, make sure to copy the generated token.

Configure Github personal access token and repository owner:

```shell
export GITHUB_TOKEN=<your-github-personal-access-token>
export GITHUB_OWNER=<your-github-owner>
```

Update `repo_name` and `github_owner` variables in __main__.py.

```python
repo_name = "your-deployment-repository"
github_owner = "your-github-owner"
```

Run `pulumi up`.
4 changes: 0 additions & 4 deletions examples/python/flux-bootstrap-git/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
import pulumi_github as github
import pulumi_tls as tls

# Require Github configurations
# export GITHUB_TOKEN=your-github-personal-access-token
# export GITHUB_OWNER=your-github-owner

branch = "main"
target_path = "clusters/dev"
repo_name = "pulumi-flux-python-sample"
Expand Down
2 changes: 1 addition & 1 deletion examples/python/flux-bootstrap-git/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pulumi>=3.0.0,<4.0.0
pulumi-github>=5.0.0
pulumi-tls>=4.6.0
pulumi-flux>=0.25.3
pulumi-flux>=1.0.1
7 changes: 7 additions & 0 deletions provider/cmd/pulumi-resource-flux/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"configPaths": "config_paths",
"proxyUrl": "proxy_url"
},
"flux:config/kubernetesExec:kubernetesExec": {
"apiVersion": "api_version"
},
"flux:index/ProviderGit:ProviderGit": {
"authorEmail": "author_email",
"authorName": "author_name",
Expand All @@ -60,9 +63,13 @@
"configPaths": "config_paths",
"proxyUrl": "proxy_url"
},
"flux:index/ProviderKubernetesExec:ProviderKubernetesExec": {
"apiVersion": "api_version"
},
"flux:index/fluxBootstrapGit:FluxBootstrapGit": {
"clusterDomain": "cluster_domain",
"componentsExtras": "components_extra",
"disableSecretCreation": "disable_secret_creation",
"imagePullSecret": "image_pull_secret",
"kustomizationOverride": "kustomization_override",
"logLevel": "log_level",
Expand Down
293 changes: 173 additions & 120 deletions provider/cmd/pulumi-resource-flux/schema.json

Large diffs are not rendered by default.

Loading

0 comments on commit 00a2899

Please sign in to comment.