Skip to content

Commit 90eb0de

Browse files
committed
Advance sveltos-agent
This picks a memory enhancement in sveltos-agent when running in agentless mode
1 parent def7835 commit 90eb0de

13 files changed

Lines changed: 32 additions & 26 deletions

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ARCH ?= $(shell go env GOARCH)
4646
OS ?= $(shell uname -s | tr A-Z a-z)
4747
K8S_LATEST_VER ?= $(shell curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
4848
export CONTROLLER_IMG ?= $(REGISTRY)/$(IMAGE_NAME)
49-
TAG ?= v1.11.0
49+
TAG ?= main
5050

5151
## Tool Binaries
5252
CONTROLLER_GEN := $(TOOLS_BIN_DIR)/controller-gen
@@ -226,6 +226,12 @@ deploy-crds: $(KUBECTL) ## Install all required Sveltos CRDs
226226
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_sveltosclusters.lib.projectsveltos.io.yaml
227227
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_configurationgroups.lib.projectsveltos.io.yaml
228228
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_configurationbundles.lib.projectsveltos.io.yaml
229+
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_healthchecks.lib.projectsveltos.io.yaml
230+
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_healthcheckreports.lib.projectsveltos.io.yaml
231+
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_eventsources.lib.projectsveltos.io.yaml
232+
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_eventreports.lib.projectsveltos.io.yaml
233+
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_reloaders.lib.projectsveltos.io.yaml
234+
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_reloaderreports.lib.projectsveltos.io.yaml
229235

230236
.PHONY: fv-namespace
231237
fv-namespace: $(GINKGO) $(KUBECTL) $(KUSTOMIZE) $(ENVSUBST) ## Run FV tests with Sveltos deployed in a random namespace

config/default/manager_auth_proxy_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- "--shard-key="
1717
- --capi-onboard-annotation=
1818
- "--v=5"
19-
- "--version=v1.11.0"
19+
- "--version=main"
2020
- "--registry="
2121
- "--agent-in-mgmt-cluster=false"
2222
env:

config/default/manager_image_patch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ spec:
77
template:
88
spec:
99
initContainers:
10-
- image: docker.io/projectsveltos/classifier:v1.11.0
10+
- image: docker.io/projectsveltos/classifier:main
1111
name: migrate
1212
containers:
1313
# Change the value of image field below to your controller image URL
14-
- image: docker.io/projectsveltos/classifier:v1.11.0
14+
- image: docker.io/projectsveltos/classifier:main
1515
name: manager

manifest/deployment-agentless.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
- --shard-key=
2525
- --capi-onboard-annotation=
2626
- --v=5
27-
- --version=v1.11.0
27+
- --version=main
2828
- --registry=
2929
- --agent-in-mgmt-cluster=true
3030
command:
@@ -42,7 +42,7 @@ spec:
4242
valueFrom:
4343
fieldRef:
4444
fieldPath: metadata.namespace
45-
image: docker.io/projectsveltos/classifier:v1.11.0
45+
image: docker.io/projectsveltos/classifier:main
4646
imagePullPolicy: IfNotPresent
4747
livenessProbe:
4848
failureThreshold: 3
@@ -90,7 +90,7 @@ spec:
9090
fieldPath: metadata.namespace
9191
- name: IS_INITIALIZATION
9292
value: "true"
93-
image: docker.io/projectsveltos/classifier:v1.11.0
93+
image: docker.io/projectsveltos/classifier:main
9494
imagePullPolicy: IfNotPresent
9595
name: migrate
9696
resources:

manifest/deployment-shard.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
- --shard-key={{.SHARD}}
2525
- --capi-onboard-annotation=
2626
- --v=5
27-
- --version=v1.11.0
27+
- --version=main
2828
- --registry=
2929
- --agent-in-mgmt-cluster=false
3030
command:
@@ -42,7 +42,7 @@ spec:
4242
valueFrom:
4343
fieldRef:
4444
fieldPath: metadata.namespace
45-
image: docker.io/projectsveltos/classifier:v1.11.0
45+
image: docker.io/projectsveltos/classifier:main
4646
imagePullPolicy: IfNotPresent
4747
livenessProbe:
4848
failureThreshold: 3
@@ -90,7 +90,7 @@ spec:
9090
fieldPath: metadata.namespace
9191
- name: IS_INITIALIZATION
9292
value: "true"
93-
image: docker.io/projectsveltos/classifier:v1.11.0
93+
image: docker.io/projectsveltos/classifier:main
9494
imagePullPolicy: IfNotPresent
9595
name: migrate
9696
resources:

manifest/manifest.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ spec:
169169
- --shard-key=
170170
- --capi-onboard-annotation=
171171
- --v=5
172-
- --version=v1.11.0
172+
- --version=main
173173
- --registry=
174174
- --agent-in-mgmt-cluster=false
175175
command:
@@ -187,7 +187,7 @@ spec:
187187
valueFrom:
188188
fieldRef:
189189
fieldPath: metadata.namespace
190-
image: docker.io/projectsveltos/classifier:v1.11.0
190+
image: docker.io/projectsveltos/classifier:main
191191
imagePullPolicy: IfNotPresent
192192
livenessProbe:
193193
failureThreshold: 3
@@ -235,7 +235,7 @@ spec:
235235
fieldPath: metadata.namespace
236236
- name: IS_INITIALIZATION
237237
value: "true"
238-
image: docker.io/projectsveltos/classifier:v1.11.0
238+
image: docker.io/projectsveltos/classifier:main
239239
imagePullPolicy: IfNotPresent
240240
name: migrate
241241
resources:

pkg/agent/sveltos-agent-in-mgmt-cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
- --cluster-namespace=
4343
- --cluster-name=
4444
- --cluster-type=
45-
- --version=v1.11.0
45+
- --version=main
4646
- --current-cluster=management-cluster
4747
- --run-mode=do-not-send-reports
4848
- --discard-managed-fields=true
@@ -62,7 +62,7 @@ spec:
6262
valueFrom:
6363
fieldRef:
6464
fieldPath: metadata.namespace
65-
image: docker.io/projectsveltos/sveltos-agent@sha256:5ec6beee8191017cfeab3302228767a5cf28f755c55de69e9f65364801f47084
65+
image: docker.io/projectsveltos/sveltos-agent@sha256:b2b23716cad70b4e876bd7f61353c3187976bdd80ae127c4890f46dbfdb5f56c
6666
livenessProbe:
6767
failureThreshold: 3
6868
httpGet:

pkg/agent/sveltos-agent-in-mgmt-cluster.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
- --cluster-namespace=
2525
- --cluster-name=
2626
- --cluster-type=
27-
- --version=v1.11.0
27+
- --version=main
2828
- --current-cluster=management-cluster
2929
- --run-mode=do-not-send-reports
3030
- --discard-managed-fields=true
@@ -44,7 +44,7 @@ spec:
4444
valueFrom:
4545
fieldRef:
4646
fieldPath: metadata.namespace
47-
image: docker.io/projectsveltos/sveltos-agent@sha256:5ec6beee8191017cfeab3302228767a5cf28f755c55de69e9f65364801f47084
47+
image: docker.io/projectsveltos/sveltos-agent@sha256:b2b23716cad70b4e876bd7f61353c3187976bdd80ae127c4890f46dbfdb5f56c
4848
livenessProbe:
4949
failureThreshold: 3
5050
httpGet:

pkg/agent/sveltos-agent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ spec:
201201
- --cluster-namespace=
202202
- --cluster-name=
203203
- --cluster-type=
204-
- --version=v1.11.0
204+
- --version=main
205205
- --current-cluster=managed-cluster
206206
- --run-mode=do-not-send-reports
207207
- --discard-managed-fields=true
@@ -221,7 +221,7 @@ spec:
221221
valueFrom:
222222
fieldRef:
223223
fieldPath: metadata.namespace
224-
image: docker.io/projectsveltos/sveltos-agent@sha256:5ec6beee8191017cfeab3302228767a5cf28f755c55de69e9f65364801f47084
224+
image: docker.io/projectsveltos/sveltos-agent@sha256:b2b23716cad70b4e876bd7f61353c3187976bdd80ae127c4890f46dbfdb5f56c
225225
livenessProbe:
226226
failureThreshold: 3
227227
httpGet:

pkg/agent/sveltos-agent.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ spec:
183183
- --cluster-namespace=
184184
- --cluster-name=
185185
- --cluster-type=
186-
- --version=v1.11.0
186+
- --version=main
187187
- --current-cluster=managed-cluster
188188
- --run-mode=do-not-send-reports
189189
- --discard-managed-fields=true
@@ -203,7 +203,7 @@ spec:
203203
valueFrom:
204204
fieldRef:
205205
fieldPath: metadata.namespace
206-
image: docker.io/projectsveltos/sveltos-agent@sha256:5ec6beee8191017cfeab3302228767a5cf28f755c55de69e9f65364801f47084
206+
image: docker.io/projectsveltos/sveltos-agent@sha256:b2b23716cad70b4e876bd7f61353c3187976bdd80ae127c4890f46dbfdb5f56c
207207
livenessProbe:
208208
failureThreshold: 3
209209
httpGet:

0 commit comments

Comments
 (0)