Skip to content

Commit 9a1bb22

Browse files
Security updates and env variables added for some containers (#42)
1 parent f75d4d7 commit 9a1bb22

File tree

5 files changed

+27
-12
lines changed

5 files changed

+27
-12
lines changed

config/default/manager_auth_proxy_patch.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ spec:
2626
runAsGroup: 1000
2727
seccompProfile:
2828
type: RuntimeDefault
29+
capabilities:
30+
drop:
31+
- all
2932
- name: manager
3033
args:
3134
- "--health-probe-bind-address=:8081"

config/manager/manager.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ spec:
3838
runAsGroup: 1000
3939
seccompProfile:
4040
type: RuntimeDefault
41+
capabilities:
42+
drop:
43+
- all
4144
livenessProbe:
4245
httpGet:
4346
path: /healthz

config/rbac/role.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,22 @@ rules:
99
resources:
1010
- configmaps
1111
- pods
12-
- secrets
1312
- services
1413
verbs:
1514
- create
1615
- delete
1716
- get
1817
- list
19-
- patch
18+
- watch
19+
- apiGroups:
20+
- ""
21+
resources:
22+
- secrets
23+
verbs:
24+
- create
25+
- delete
26+
- get
27+
- list
2028
- update
2129
- watch
2230
- apiGroups:

controllers/ixiatg_controller.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ type location struct {
207207
//+kubebuilder:rbac:groups=network.keysight.com,resources=ixiatgs,verbs=get;list;watch;create;update;patch;delete
208208
//+kubebuilder:rbac:groups=network.keysight.com,resources=ixiatgs/status,verbs=get;update;patch
209209
//+kubebuilder:rbac:groups=network.keysight.com,resources=ixiatgs/finalizers,verbs=update
210-
//+kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch;create;update;patch;delete
211-
//+kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;patch;delete
212-
//+kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete
213-
//+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete
210+
//+kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch;create;delete
211+
//+kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;delete
212+
//+kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;delete
213+
//+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;delete
214214

215215
// Reconcile is part of the main kubernetes reconciliation loop which aims to
216216
// 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
650650
case IMAGE_TRAFFIC_ENG:
651651
compRef.ContainerName = IMAGE_TRAFFIC_ENG
652652
compRef.DefEnv = map[string]string{
653-
"OPT_LISTEN_PORT": strconv.Itoa(int(TRAFFIC_ENG_PORT)),
654-
"ARG_CORE_LIST": "2 3 4",
655-
"ARG_IFACE_LIST": "virtual@af_packet,eth1",
656-
"OPT_NO_HUGEPAGES": "Yes",
657-
"DEFAULT_PORT_SPEED": "1000",
653+
"OPT_LISTEN_PORT": strconv.Itoa(int(TRAFFIC_ENG_PORT)),
654+
"ARG_CORE_LIST": "2 3 4",
655+
"ARG_IFACE_LIST": "virtual@af_packet,eth1",
656+
"OPT_NO_HUGEPAGES": "Yes",
657+
"OPT_DEFAULT_PORT_SPEED": "1000",
658+
"OPT_ADAPTIVE_CPU_USAGE": "",
658659
}
659660
case IMAGE_PROTOCOL_ENG:
660661
compRef.ContainerName = IMAGE_PROTOCOL_ENG

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.31
1+
0.3.32

0 commit comments

Comments
 (0)