changing rbac name for event tracker and change in workflow_id access (#2432)

Signed-off-by: Raj Das <mail.rajdas@gmail.com>
This commit is contained in:
Raj Babu Das 2021-02-05 20:04:04 +05:30 committed by GitHub
parent 30598e5929
commit f200afacec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View File

@ -165,13 +165,13 @@ subjects:
apiVersion: v1
kind: ServiceAccount
metadata:
name: event-tracker-sa
name: litmus-event-tracker-sa
namespace: #{AGENT-NAMESPACE}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: event-tracker-cluster-role
name: litmus-event-tracker-cluster-role
rules:
- apiGroups:
- ""
@ -191,12 +191,12 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: event-tracker-clusterole-binding
name: litmus-event-tracker-clusterole-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: event-tracker-cluster-role
name: litmus-event-tracker-cluster-role
subjects:
- kind: ServiceAccount
name: event-tracker-sa
name: litmus-event-tracker-sa
namespace: #{AGENT-NAMESPACE}

View File

@ -55,7 +55,7 @@ spec:
labels:
app: event-tracker
spec:
serviceAccountName: event-tracker-sa
serviceAccountName: litmus-event-tracker-sa
containers:
- image: #{EVENT-TRACKER-IMAGE}
imagePullPolicy: Always

View File

@ -70,7 +70,7 @@ func ProcessWorkflow(workflow *model.ChaosWorkFlowInput) (*model.ChaosWorkFlowIn
}
workflowManifest.Labels = map[string]string{
"workflow_id": workflow_id,
"workflow_id": *workflow.WorkflowID,
"cluster_id": workflow.ClusterID,
}
@ -142,13 +142,13 @@ func ProcessWorkflow(workflow *model.ChaosWorkFlowInput) (*model.ChaosWorkFlowIn
}
cronWorkflowManifest.Labels = map[string]string{
"workflow_id": workflow_id,
"workflow_id": *workflow.WorkflowID,
"cluster_id": workflow.ClusterID,
}
cronWorkflowManifest.Spec.WorkflowMetadata = &v1.ObjectMeta{
Labels: map[string]string{
"workflow_id": workflow_id,
"workflow_id": *workflow.WorkflowID,
"cluster_id": workflow.ClusterID,
},
}