Procházet zdrojové kódy

refixed service_account_id removal

jusrhee před 5 roky
rodič
revize
e9ec087fb9

+ 0 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedChart.tsx

@@ -106,7 +106,6 @@ export default class ExpandedChart extends Component<PropsType, StateType> {
       id: currentProject.id, 
       name: this.props.currentChart.name,
       cluster_id: currentCluster.id,
-      service_account_id: currentCluster.service_account_id,
     }, (err: any, res: any) => {
       if (err) {
         setCurrentError(err);

+ 0 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/RevisionSection.tsx

@@ -81,7 +81,6 @@ export default class RevisionSection extends Component<PropsType, StateType> {
       id: currentProject.id,
       name: this.props.chart.name,
       cluster_id: currentCluster.id,
-      service_account_id: currentCluster.service_account_id,
     }, (err: any, res: any) => {
       if (err) {
         console.log(err);

+ 0 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/ValuesYaml.tsx

@@ -56,7 +56,6 @@ export default class ValuesYaml extends Component<PropsType, StateType> {
       id: currentProject.id, 
       name: this.props.currentChart.name,
       cluster_id: currentCluster.id,
-      service_account_id: currentCluster.service_account_id,
     }, (err: any, res: any) => {
       if (err) {
         console.log(err)

+ 0 - 1
dashboard/src/main/home/templates/expanded-template/LaunchTemplate.tsx

@@ -44,7 +44,6 @@ export default class LaunchTemplate extends Component<PropsType, StateType> {
     }, {
       id: currentProject.id,
       cluster_id: currentCluster.id,
-      service_account_id: currentCluster.service_account_id,
     }, (err: any, res: any) => {
       if (err) {
         console.log(err)

+ 1 - 1
dashboard/src/shared/api.tsx

@@ -159,7 +159,7 @@ const deployTemplate = baseApi<{
   formValues: any,
   storage: StorageType,
 }, { id: number, cluster_id: number }>('POST', pathParams => {
-  let { cluster_id } = pathParams;
+  let { cluster_id, id } = pathParams;
   return `/api/projects/${id}/deploy?cluster_id=${cluster_id}`;
 });