Skip to content

Commit 6dec7fd

Browse files
committed
feat: added the creation of the provider for terranetes
1 parent 504c93e commit 6dec7fd

3 files changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
5+
resources:
6+
- provider.yaml
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
apiVersion: terraform.appvia.io/v1alpha1
3+
kind: Provider
4+
metadata:
5+
name: aws
6+
namespace: terraform-system
7+
labels:
8+
app.kubernetes.io/component: provider
9+
app.kubernetes.io/managed-by: argocd
10+
app.kubernetes.io/name: aws
11+
app.kubernetes.io/part-of: terranetes
12+
spec:
13+
## Source of the credentials for the provider
14+
source: injected
15+
## The provider to use
16+
provider: aws
17+
## Preload options for the provider
18+
preload:
19+
# Indicates if the preloading should be enabled
20+
enabled: true
21+
# Is the EKS cluster we use to pivot network and settings around
22+
cluster: CLUSTER_NAME
23+
# Is the cloud region the cluster above resides
24+
region: CLUSTER_REGION
25+
# Is the terranetes context resource we should provision
26+
context: default
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
kustomize:
3+
## Human friendly description
4+
description: Used to provision the various addons for the Terranetes platform
5+
## The feature flag used to enable the feature
6+
feature: terranetes
7+
## The path to the kustomize overlay
8+
path: base
9+
## Patches to apply to the kustomize overlay
10+
patches:
11+
- target:
12+
kind: Provider
13+
name: aws
14+
patch:
15+
- op: replace
16+
path: /spec/preload/cluster
17+
key: .metadata.labels.cluster_name
18+
default: unknown
19+
- op: replace
20+
path: /spec/preload/region
21+
key: .metadata.annotations.region
22+
default: unknown
23+
24+
## The namespace options
25+
namespace:
26+
## The name of the namespace to deploy the application
27+
name: terraform-system
28+
29+
## Synchronization options
30+
sync:
31+
## How to order the deployment of the resources
32+
phase: secondary

0 commit comments

Comments
 (0)