Skip to content

Commit

Permalink
Merge pull request #359 from openinfradev/fix_policy2
Browse files Browse the repository at this point in the history
trivial. bugfix for creating stack
  • Loading branch information
zugwan authored Apr 18, 2024
2 parents 9ba3431 + 33b16e4 commit cce8edb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion deploy_apps/tks-policy-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
value: '{{inputs.parameters.contract_id}}'
- name: cluster_id
value: '{{inputs.parameters.cluster_id}}'
- name: policy-ids
- name: policy_ids
value: '{{inputs.parameters.policy_ids}}'

- name: createNamespace
Expand Down
6 changes: 3 additions & 3 deletions tks-cluster/create-usercluster-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,10 @@ spec:
parameters:
- name: cluster_id
value: "{{workflow.parameters.cluster_id}}"
- name: appname
value: "policy-resources"
- name: contract_id
value: "{{workflow.parameters.contract_id}}"
- name: policy_ids
value: ""
value: "{{workflow.parameters.policy_ids}}"
# when: "{{steps.get-clusters-in-contract.outputs.parameters.primary_cluster}} != '' && {{workflow.parameters.cluster_id}} != {{steps.get-clusters-in-contract.outputs.parameters.primary_cluster}}"

#######################
Expand Down
8 changes: 4 additions & 4 deletions tks_info/apply-policies.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: apply-policies
name: tks-apply-policies
namespace: argo
spec:
entrypoint: applyPolicies
arguments:
parameters:
- name: tks_api_url
value: "http://tks-api-dev.taco-cat.xyz"
- name: organization_id
- name: contract_id
value: ""
- name: cluster_id
value: ""
Expand All @@ -20,7 +20,7 @@ spec:
- name: applyPolicies
inputs:
parameters:
- name: organization_id
- name: contract_id
- name: cluster_id
- name: policy_ids

Expand All @@ -41,7 +41,7 @@ spec:
import sys
TKS_API_URL = '{{workflow.parameters.tks_api_url}}'
ORGANIZATION_ID = '{{inputs.parameters.organization_id}}'
ORGANIZATION_ID = '{{inputs.parameters.contract_id}}'
CLUSTER_ID = '{{inputs.parameters.cluster_id}}'
POLICY_IDS = '{{inputs.parameters.policy_ids}}'
Expand Down

0 comments on commit cce8edb

Please sign in to comment.