diff --git a/config/default/manager_auth_proxy_patch.yaml b/config/default/manager_auth_proxy_patch.yaml index f0e3568..14fe174 100644 --- a/config/default/manager_auth_proxy_patch.yaml +++ b/config/default/manager_auth_proxy_patch.yaml @@ -26,6 +26,9 @@ spec: runAsGroup: 1000 seccompProfile: type: RuntimeDefault + capabilities: + drop: + - all - name: manager args: - "--health-probe-bind-address=:8081" diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index a3b24ee..9640d4b 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -38,6 +38,9 @@ spec: runAsGroup: 1000 seccompProfile: type: RuntimeDefault + capabilities: + drop: + - all livenessProbe: httpGet: path: /healthz diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index a5ead25..891ba99 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -9,14 +9,22 @@ rules: resources: - configmaps - pods - - secrets - services verbs: - create - delete - get - list - - patch + - watch +- apiGroups: + - "" + resources: + - secrets + verbs: + - create + - delete + - get + - list - update - watch - apiGroups: diff --git a/controllers/ixiatg_controller.go b/controllers/ixiatg_controller.go index f48ee4d..6cb7487 100644 --- a/controllers/ixiatg_controller.go +++ b/controllers/ixiatg_controller.go @@ -207,10 +207,10 @@ type location struct { //+kubebuilder:rbac:groups=network.keysight.com,resources=ixiatgs,verbs=get;list;watch;create;update;patch;delete //+kubebuilder:rbac:groups=network.keysight.com,resources=ixiatgs/status,verbs=get;update;patch //+kubebuilder:rbac:groups=network.keysight.com,resources=ixiatgs/finalizers,verbs=update -//+kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch;create;update;patch;delete -//+kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;patch;delete -//+kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete -//+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete +//+kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch;create;delete +//+kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;delete +//+kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;delete +//+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;delete // Reconcile is part of the main kubernetes reconciliation loop which aims to // move the current state of the cluster closer to the desired state. @@ -650,11 +650,12 @@ func (r *IxiaTGReconciler) loadRelInfo(ctx context.Context, release string, relD case IMAGE_TRAFFIC_ENG: compRef.ContainerName = IMAGE_TRAFFIC_ENG compRef.DefEnv = map[string]string{ - "OPT_LISTEN_PORT": strconv.Itoa(int(TRAFFIC_ENG_PORT)), - "ARG_CORE_LIST": "2 3 4", - "ARG_IFACE_LIST": "virtual@af_packet,eth1", - "OPT_NO_HUGEPAGES": "Yes", - "DEFAULT_PORT_SPEED": "1000", + "OPT_LISTEN_PORT": strconv.Itoa(int(TRAFFIC_ENG_PORT)), + "ARG_CORE_LIST": "2 3 4", + "ARG_IFACE_LIST": "virtual@af_packet,eth1", + "OPT_NO_HUGEPAGES": "Yes", + "OPT_DEFAULT_PORT_SPEED": "1000", + "OPT_ADAPTIVE_CPU_USAGE": "", } case IMAGE_PROTOCOL_ENG: compRef.ContainerName = IMAGE_PROTOCOL_ENG diff --git a/version b/version index f18b7fb..cd906cd 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.3.31 +0.3.32