-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add localstack as addon package (#257)
Signed-off-by: Bradon Kanyid (rattboi) <[email protected]>
- Loading branch information
Showing
4 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Localstack Integration | ||
|
||
Please use the below command to deploy an IDP reference implementation with an Argo application that adds Localstack, as well as integrating with Crossplane. | ||
|
||
```bash | ||
idpbuilder create \ | ||
--use-path-routing \ | ||
--package-dir examples/ref-implementation \ | ||
--package-dir examples/localstack-integration | ||
``` | ||
|
||
As you see above, this add-on to `idpbuilder` has a dependency on the [reference implementation](../ref-implementation/). This command primarily does the following: | ||
|
||
1. Installs `localstack` helmchart as an `argo` application. | ||
2. Adds localstack crossplane ProviderConfig, targetting localstack | ||
|
||
Once the custom package is installed, localstack can be used from the backstage template `app-with-aws-resources`, by changing the `providerConfigName` during the bucket configuration page from `default` to `localstack`. |
22 changes: 22 additions & 0 deletions
22
examples/localstack-integration/crossplane-provider-localstack.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: crossplane-provider-localstack | ||
namespace: argocd | ||
labels: | ||
example: localstack-integration | ||
spec: | ||
project: default | ||
source: | ||
repoURL: cnoe://crossplane-provider-localstack | ||
targetRevision: HEAD | ||
path: "." | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: crossplane-system | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true |
19 changes: 19 additions & 0 deletions
19
...les/localstack-integration/crossplane-provider-localstack/provider-config-localstack.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: aws.crossplane.io/v1beta1 | ||
kind: ProviderConfig | ||
metadata: | ||
name: localstack | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "20" | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
spec: | ||
credentials: | ||
source: Secret | ||
secretRef: | ||
namespace: crossplane-system | ||
name: local-secret | ||
key: creds | ||
endpoint: | ||
hostnameImmutable: true | ||
url: | ||
type: Static | ||
static: http://localstack.localstack.svc.cluster.local:4566 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: localstack | ||
namespace: argocd | ||
labels: | ||
example: localstack-integration | ||
spec: | ||
project: default | ||
source: | ||
repoURL: https://localstack.github.io/helm-charts | ||
targetRevision: 0.6.12 | ||
chart: localstack | ||
helm: | ||
releaseName: localstack | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: localstack | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true |