ocs_ci/ocs/ocp.py
def add_label(self, resource_name, label):
        """
        Adds a new label for this pod

        Args:
            resource_name (str): Name of the resource you want to label
            label (str): New label to be assigned for this pod
                E.g: "label=app='rook-ceph-mds'"
        """
        command = f"label {self.kind} {resource_name} {label}"
        status = self.exec_oc_cmd(command)
        return status

        Adds a new label for this pod

        Args:
            resource_name (str): Name of the resource you want to label
            label (str): New label to be assigned for this pod
                E.g: "label=app='rook-ceph-mds'"
        
Adds a new label for this pod
Adds a new label for this pod
def add_label(self, resource_name, label):
        command = f"label {self.kind} {resource_name} {label}"
        status = self.exec_oc_cmd(command)
        return status
def add_label ( self , resource_name , label ) : command = f"label {self.kind} {resource_name} {label}" status = self . exec_oc_cmd ( command ) return status
Adds a new label for this pod
Adds a new label for this pod
"""
        Adds a new label for this pod

        Args:
            resource_name (str): Name of the resource you want to label
            label (str): New label to be assigned for this pod
                E.g: "label=app='rook-ceph-mds'"
        """
self
resource_name
Name of the resource you want to label
Name of the resource you want to label
label
New label to be assigned for this pod
E.g: "label=app='rook-ceph-mds'"
New label to be assigned for this pod E . g : " label = app = ' rook - ceph - mds ' "