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:
parent
30598e5929
commit
f200afacec
|
|
@ -165,13 +165,13 @@ subjects:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: event-tracker-sa
|
name: litmus-event-tracker-sa
|
||||||
namespace: #{AGENT-NAMESPACE}
|
namespace: #{AGENT-NAMESPACE}
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: event-tracker-cluster-role
|
name: litmus-event-tracker-cluster-role
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
|
|
@ -191,12 +191,12 @@ rules:
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: event-tracker-clusterole-binding
|
name: litmus-event-tracker-clusterole-binding
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: event-tracker-cluster-role
|
name: litmus-event-tracker-cluster-role
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: event-tracker-sa
|
name: litmus-event-tracker-sa
|
||||||
namespace: #{AGENT-NAMESPACE}
|
namespace: #{AGENT-NAMESPACE}
|
||||||
|
|
@ -55,7 +55,7 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: event-tracker
|
app: event-tracker
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: event-tracker-sa
|
serviceAccountName: litmus-event-tracker-sa
|
||||||
containers:
|
containers:
|
||||||
- image: #{EVENT-TRACKER-IMAGE}
|
- image: #{EVENT-TRACKER-IMAGE}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ func ProcessWorkflow(workflow *model.ChaosWorkFlowInput) (*model.ChaosWorkFlowIn
|
||||||
}
|
}
|
||||||
|
|
||||||
workflowManifest.Labels = map[string]string{
|
workflowManifest.Labels = map[string]string{
|
||||||
"workflow_id": workflow_id,
|
"workflow_id": *workflow.WorkflowID,
|
||||||
"cluster_id": workflow.ClusterID,
|
"cluster_id": workflow.ClusterID,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -142,13 +142,13 @@ func ProcessWorkflow(workflow *model.ChaosWorkFlowInput) (*model.ChaosWorkFlowIn
|
||||||
}
|
}
|
||||||
|
|
||||||
cronWorkflowManifest.Labels = map[string]string{
|
cronWorkflowManifest.Labels = map[string]string{
|
||||||
"workflow_id": workflow_id,
|
"workflow_id": *workflow.WorkflowID,
|
||||||
"cluster_id": workflow.ClusterID,
|
"cluster_id": workflow.ClusterID,
|
||||||
}
|
}
|
||||||
|
|
||||||
cronWorkflowManifest.Spec.WorkflowMetadata = &v1.ObjectMeta{
|
cronWorkflowManifest.Spec.WorkflowMetadata = &v1.ObjectMeta{
|
||||||
Labels: map[string]string{
|
Labels: map[string]string{
|
||||||
"workflow_id": workflow_id,
|
"workflow_id": *workflow.WorkflowID,
|
||||||
"cluster_id": workflow.ClusterID,
|
"cluster_id": workflow.ClusterID,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue