Skip to content

Commit

Permalink
Merge pull request #222 from openinfradev/s3support
Browse files Browse the repository at this point in the history
S3support
  • Loading branch information
ktkfree authored Jul 26, 2023
2 parents 2b114dd + 55a5aa0 commit 1598c2e
Show file tree
Hide file tree
Showing 9 changed files with 330 additions and 79 deletions.
20 changes: 12 additions & 8 deletions deploy_apps/tks-lma-federation-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,25 @@ spec:
arguments:
parameters:
- name: site_name
value: "decapod-refrence"
value: "coyar0qx1"
- name: logging_component
value: "loki"
- name: object_store
value: "s3"
- name: github_account
value: "decapod10"
- name: manifest_repo_url
value: "https://github.com/decapod10/c3c16juq5-manifests"
value: "https://github.com/decapod10/coyar0qx1-manifests"
- name: revision
value: "main"
- name: organization_id
value: "o086tb3zc"
value: "ovbxm7jvf"
- name: app_prefix
value: "{{workflow.parameters.site_name}}"
- name: keycloak_url
value: ""
value: "https://tks-console-dev.taco-cat.xyz"
- name: console_url
value: ""
value: "https://tks-console-dev.taco-cat.xyz"
- name: alert_tks
value: "https://tks-api-dev.taco-cat.xyz/system-api/1.0/alerts"
- name: alert_slack
Expand All @@ -35,11 +37,13 @@ spec:
- name: tks_info_host
value: "http://tks-api.tks.svc:9110"
- name: cluster_id
value: "c3c16juq5"
value: "coyar0qx1"
- name: app_group_id
value: "a60sfxh4v"
value: "a4z9mqwew"
- name: base_repo_branch
value: "main"
value: develop
- name: cloud_account_id
value: ""

volumes:
- name: tks-proto-vol
Expand Down
331 changes: 281 additions & 50 deletions deploy_apps/tks-primary-cluster.yaml

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions deploy_apps/tks-remove-lma-federation-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@ spec:
- name: tks_info_host
value: "http://tks-api.tks.svc:9110"
- name: organization_id
value: "ohxwkh7iy"
value: "ovbxm7jvf"
- name: cluster_id
value: "c750jgmy8"
value: "cs7r4tu4d"
- name: app_group_id
value: "aey4niy0a"
value: "acq1x8rcb"
- name: keycloak_url
value: ""
value: "https://tks-console-dev.taco-cat.xyz"
- name: base_repo_branch
value: "main"
value: "develop"
- name: cloud_account_id
value: ""
- name: object_store
value: "s3"

##########################
# For removeLMA task #
Expand Down
2 changes: 1 addition & 1 deletion git-repo/create-cluster-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,4 @@ spec:
parameter: "{{steps.createClusterRepo.outputs.parameters.infra_provider}}"
- name: managed_cluster
valueFrom:
parameter: "{{steps.createClusterRepo.outputs.parameters.managed_cluster}}"
parameter: "{{steps.createClusterRepo.outputs.parameters.managed_cluster}}"
25 changes: 19 additions & 6 deletions tks-cluster/create-usercluster-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,6 @@ spec:
- name: list
value: |
[
{
"app_group": "tks-cluster",
"path": "aws-ebs-csi-driver",
"namespace": "kube-system",
"target_cluster": ""
},
{
"app_group": "tks-cluster",
"path": "s3-chart-crds",
Expand All @@ -282,6 +276,25 @@ spec:
"target_cluster": ""
}
]
when: >-
{{steps.tks-create-cluster-repo.outputs.parameters.infra_provider}} == aws
- - name: install-addons-aws-for-self-managed
templateRef:
name: create-application
template: installApps
arguments:
parameters:
- name: list
value: |
[
{
"app_group": "tks-cluster",
"path": "aws-ebs-csi-driver",
"namespace": "kube-system",
"target_cluster": ""
}
]
when: >-
{{steps.tks-create-cluster-repo.outputs.parameters.infra_provider}} == aws &&
{{steps.tks-create-cluster-repo.outputs.parameters.managed_cluster}} == false
Expand Down
1 change: 0 additions & 1 deletion tks-cluster/import-usercluster-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,3 @@ spec:
env:
- name: CLUSTER_ID
value: "{{ inputs.parameters.cluster_id }}"

10 changes: 2 additions & 8 deletions tks-cluster/remove-usercluster-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ spec:
parameters:
- name: app_name
value: "{{workflow.parameters.app_prefix}}-s3-chart"
when: >-
( {{steps.findInfraProvider.outputs.parameters.infra_provider}} == aws &&
{{steps.findInfraProvider.outputs.parameters.managed_cluster}} == false
)
when: "{{steps.findInfraProvider.outputs.parameters.infra_provider}} == aws "

- - name: deleteS3ChartCrdApp
templateRef:
Expand All @@ -151,10 +148,7 @@ spec:
parameters:
- name: app_name
value: "{{workflow.parameters.app_prefix}}-s3-chart-crds"
when: >-
( {{steps.findInfraProvider.outputs.parameters.infra_provider}} == aws &&
{{steps.findInfraProvider.outputs.parameters.managed_cluster}} == false
)
when: "{{steps.findInfraProvider.outputs.parameters.infra_provider}} == aws "

- - name: deleteCalicoController
template: deleteCalicoController
Expand Down
4 changes: 4 additions & 0 deletions tks-stack/tks-stack-create-aws-msa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
value: ""
- name: infra_conf
value: ""
- name: object_store
value: "s3"
- name: base_repo_branch
value: develop

templates:
- name: main
Expand Down
2 changes: 2 additions & 0 deletions tks-stack/tks-stack-create-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
value: ""
- name: infra_conf
value: ""
- name: object_store
value: "s3"

templates:
- name: main
Expand Down

0 comments on commit 1598c2e

Please sign in to comment.