Skip to content

Commit

Permalink
feat(capi): add recipes and modify tf to make compatible with CAPI te…
Browse files Browse the repository at this point in the history
…sting (#357)

Signed-off-by: David van der Spek <vanderspek.david@gmail.com>
  • Loading branch information
davidspek authored May 22, 2023
1 parent c673023 commit ca8218b
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 16 deletions.
8 changes: 4 additions & 4 deletions plural/plural/recipe/console-aws-cluster-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ oidcSettings:
domainKey: console_dns
dependencies:
- repo: bootstrap
name: aws-cluster-api
name: aws-cluster-capi
- repo: monitoring
name: monitoring-aws
name: monitoring-aws-capi
- repo: ingress-nginx
name: ingress-nginx-aws
name: ingress-nginx-aws-capi
- repo: postgres
name: aws-postgres
name: aws-postgres-capi
tests:
- name: git access
type: GIT
Expand Down
89 changes: 89 additions & 0 deletions plural/plural/recipe/console-azure-cluster-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: console-azure-cluster-api
description: Deploys console on an EKS cluster
provider: AZURE
primary: false
private: true
oidcSettings:
uriFormat: https://{domain}/oauth/callback
authMethod: POST
domainKey: console_dns
dependencies:
- repo: bootstrap
name: azure-cluster-capi
- repo: monitoring
name: monitoring-azure-capi
- repo: ingress-nginx
name: ingress-nginx-azure-capi
- repo: postgres
name: azure-postgres-capi
tests:
- name: git access
type: GIT
args:
- name: username
repo: console
key: git_user
- name: password
repo: console
key: access_token
- name: private_key
repo: console
key: private_key
- name: passphrase
repo: console
key: passphrase
- name: url
repo: console
key: repo_url
sections:
- name: console
configuration:
- name: console_dns
documentation: Fully Qualified Domain Name for the console dashboard, eg console.topleveldomain.com if topleveldomain.com is the hostname you inputed above.
type: DOMAIN
- name: git_user
documentation: git username for console to use in git operations, eg your github username
type: STRING
- name: git_email
documentation: email for git operations by console
type: STRING
- name: admin_name
documentation: name for the initial admin user
type: STRING
- name: repo_url
documentation: the url to the remote git repo
type: FUNCTION
functionName: repoUrl
- name: access_token
documentation: github/gitlab access token to use for http git authentication
type: STRING
condition:
operation: PREFIX
field: repo_url
value: https
- name: private_key
documentation: path to the private key to use for git authentication
type: FILE
default: ~/.ssh/id_rsa
condition:
operation: NOT
field: access_token
- name: public_key
documentation: path to the public key to use for git authentication
type: FILE
default: ~/.ssh/id_rsa.pub
condition:
operation: NOT
field: access_token
- name: passphrase
documentation: passphrase to use for encrypted private keys (leave empty if not applicable)
type: PASSWORD
optional: true
condition:
operation: NOT
field: access_token
items:
- type: TERRAFORM
name: azure-cluster-api
- type: HELM
name: console
8 changes: 4 additions & 4 deletions plural/plural/recipe/console-gcp-cluster-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ dependencies:
- repo: bootstrap
name: gcp-cluster-api
- repo: monitoring
name: monitoring-gcp
name: monitoring-gcp-capi
- repo: ingress-nginx
name: ingress-nginx-gcp
name: ingress-nginx-gcp-capi
- repo: postgres
name: gcp-postgres
name: gcp-postgres-capi
tests:
- name: git access
type: GIT
Expand Down Expand Up @@ -86,4 +86,4 @@ sections:
- type: TERRAFORM
name: gcp
- type: HELM
name: console
name: console
5 changes: 2 additions & 3 deletions plural/terraform/aws/deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ dependencies:
repo: bootstrap
type: terraform
version: '>= 0.1.1'

optional: true
providers:
- aws

description: console aws bootstrapping
version: 0.1.6
version: 0.1.7
6 changes: 2 additions & 4 deletions plural/terraform/azure/deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ dependencies:
repo: bootstrap
type: terraform
version: '>= 0.1.1'
optional: true
- type: terraform
name: azure
repo: minio
version: '>= 0.1.0'
optional: true

providers:
- azure

outputs:
console_msi_client_id: console_msi_client_id
console_msi_id: console_msi_id

description: console azure bootstrapping
version: 0.1.2
version: 0.1.3
3 changes: 2 additions & 1 deletion plural/terraform/gcp/deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ dependencies:
repo: bootstrap
type: terraform
version: '>= 0.1.1'
optional: true
providers:
- gcp
description: console gcp bootstrapping
version: 0.1.2
version: 0.1.3

0 comments on commit ca8218b

Please sign in to comment.