Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ARCH ?= $(shell go env GOARCH)
OS ?= $(shell uname -s | tr A-Z a-z)
K8S_LATEST_VER ?= $(shell curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
export CONTROLLER_IMG ?= $(REGISTRY)/$(IMAGE_NAME)
TAG ?= v1.11.0
TAG ?= main

## Tool Binaries
CONTROLLER_GEN := $(TOOLS_BIN_DIR)/controller-gen
Expand Down Expand Up @@ -226,6 +226,12 @@ deploy-crds: $(KUBECTL) ## Install all required Sveltos CRDs
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_sveltosclusters.lib.projectsveltos.io.yaml
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_configurationgroups.lib.projectsveltos.io.yaml
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_configurationbundles.lib.projectsveltos.io.yaml
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_healthchecks.lib.projectsveltos.io.yaml
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_healthcheckreports.lib.projectsveltos.io.yaml
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_eventsources.lib.projectsveltos.io.yaml
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_eventreports.lib.projectsveltos.io.yaml
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_reloaders.lib.projectsveltos.io.yaml
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/libsveltos/$(TAG)/manifests/apiextensions.k8s.io_v1_customresourcedefinition_reloaderreports.lib.projectsveltos.io.yaml

.PHONY: fv-namespace
fv-namespace: $(GINKGO) $(KUBECTL) $(KUSTOMIZE) $(ENVSUBST) ## Run FV tests with Sveltos deployed in a random namespace
Expand Down
2 changes: 1 addition & 1 deletion config/default/manager_auth_proxy_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
- "--shard-key="
- --capi-onboard-annotation=
- "--v=5"
- "--version=v1.11.0"
- "--version=main"
- "--registry="
- "--agent-in-mgmt-cluster=false"
env:
Expand Down
4 changes: 2 additions & 2 deletions config/default/manager_image_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ spec:
template:
spec:
initContainers:
- image: docker.io/projectsveltos/classifier:v1.11.0
- image: docker.io/projectsveltos/classifier:main
name: migrate
containers:
# Change the value of image field below to your controller image URL
- image: docker.io/projectsveltos/classifier:v1.11.0
- image: docker.io/projectsveltos/classifier:main
name: manager
6 changes: 3 additions & 3 deletions manifest/deployment-agentless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- --shard-key=
- --capi-onboard-annotation=
- --v=5
- --version=v1.11.0
- --version=main
- --registry=
- --agent-in-mgmt-cluster=true
command:
Expand All @@ -42,7 +42,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: docker.io/projectsveltos/classifier:v1.11.0
image: docker.io/projectsveltos/classifier:main
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
Expand Down Expand Up @@ -90,7 +90,7 @@ spec:
fieldPath: metadata.namespace
- name: IS_INITIALIZATION
value: "true"
image: docker.io/projectsveltos/classifier:v1.11.0
image: docker.io/projectsveltos/classifier:main
imagePullPolicy: IfNotPresent
name: migrate
resources:
Expand Down
6 changes: 3 additions & 3 deletions manifest/deployment-shard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- --shard-key={{.SHARD}}
- --capi-onboard-annotation=
- --v=5
- --version=v1.11.0
- --version=main
- --registry=
- --agent-in-mgmt-cluster=false
command:
Expand All @@ -42,7 +42,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: docker.io/projectsveltos/classifier:v1.11.0
image: docker.io/projectsveltos/classifier:main
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
Expand Down Expand Up @@ -90,7 +90,7 @@ spec:
fieldPath: metadata.namespace
- name: IS_INITIALIZATION
value: "true"
image: docker.io/projectsveltos/classifier:v1.11.0
image: docker.io/projectsveltos/classifier:main
imagePullPolicy: IfNotPresent
name: migrate
resources:
Expand Down
6 changes: 3 additions & 3 deletions manifest/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ spec:
- --shard-key=
- --capi-onboard-annotation=
- --v=5
- --version=v1.11.0
- --version=main
- --registry=
- --agent-in-mgmt-cluster=false
command:
Expand All @@ -187,7 +187,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: docker.io/projectsveltos/classifier:v1.11.0
image: docker.io/projectsveltos/classifier:main
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
Expand Down Expand Up @@ -235,7 +235,7 @@ spec:
fieldPath: metadata.namespace
- name: IS_INITIALIZATION
value: "true"
image: docker.io/projectsveltos/classifier:v1.11.0
image: docker.io/projectsveltos/classifier:main
imagePullPolicy: IfNotPresent
name: migrate
resources:
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/sveltos-agent-in-mgmt-cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
- --cluster-namespace=
- --cluster-name=
- --cluster-type=
- --version=v1.11.0
- --version=main
- --current-cluster=management-cluster
- --run-mode=do-not-send-reports
- --discard-managed-fields=true
Expand All @@ -62,7 +62,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: docker.io/projectsveltos/sveltos-agent@sha256:5ec6beee8191017cfeab3302228767a5cf28f755c55de69e9f65364801f47084
image: docker.io/projectsveltos/sveltos-agent@sha256:b2b23716cad70b4e876bd7f61353c3187976bdd80ae127c4890f46dbfdb5f56c
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/sveltos-agent-in-mgmt-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
- --cluster-namespace=
- --cluster-name=
- --cluster-type=
- --version=v1.11.0
- --version=main
- --current-cluster=management-cluster
- --run-mode=do-not-send-reports
- --discard-managed-fields=true
Expand All @@ -44,7 +44,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: docker.io/projectsveltos/sveltos-agent@sha256:5ec6beee8191017cfeab3302228767a5cf28f755c55de69e9f65364801f47084
image: docker.io/projectsveltos/sveltos-agent@sha256:b2b23716cad70b4e876bd7f61353c3187976bdd80ae127c4890f46dbfdb5f56c
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/sveltos-agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ spec:
- --cluster-namespace=
- --cluster-name=
- --cluster-type=
- --version=v1.11.0
- --version=main
- --current-cluster=managed-cluster
- --run-mode=do-not-send-reports
- --discard-managed-fields=true
Expand All @@ -221,7 +221,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: docker.io/projectsveltos/sveltos-agent@sha256:5ec6beee8191017cfeab3302228767a5cf28f755c55de69e9f65364801f47084
image: docker.io/projectsveltos/sveltos-agent@sha256:b2b23716cad70b4e876bd7f61353c3187976bdd80ae127c4890f46dbfdb5f56c
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/sveltos-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ spec:
- --cluster-namespace=
- --cluster-name=
- --cluster-type=
- --version=v1.11.0
- --version=main
- --current-cluster=managed-cluster
- --run-mode=do-not-send-reports
- --discard-managed-fields=true
Expand All @@ -203,7 +203,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: docker.io/projectsveltos/sveltos-agent@sha256:5ec6beee8191017cfeab3302228767a5cf28f755c55de69e9f65364801f47084
image: docker.io/projectsveltos/sveltos-agent@sha256:b2b23716cad70b4e876bd7f61353c3187976bdd80ae127c4890f46dbfdb5f56c
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/sveltos-applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ spec:
- --cluster-type=
- --secret-with-kubeconfig=
- --v=5
- --version=v1.11.0
- --version=main
command:
- /manager
env:
Expand All @@ -117,7 +117,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: docker.io/projectsveltos/sveltos-applier@sha256:81a0fdff0ba38ba2ecfa9c48c35e4d4167c21e603315d77cfdebe5630e532a92
image: docker.io/projectsveltos/sveltos-applier@sha256:46c46c8c4617a7a20c96cec5bce66d3ee1cf494123a07bf86574782e66d1c80e
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/sveltos-applier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
- --cluster-type=
- --secret-with-kubeconfig=
- --v=5
- --version=v1.11.0
- --version=main
command:
- /manager
env:
Expand All @@ -99,7 +99,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: docker.io/projectsveltos/sveltos-applier@sha256:81a0fdff0ba38ba2ecfa9c48c35e4d4167c21e603315d77cfdebe5630e532a92
image: docker.io/projectsveltos/sveltos-applier@sha256:46c46c8c4617a7a20c96cec5bce66d3ee1cf494123a07bf86574782e66d1c80e
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion test/pullmode-sveltosapplier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: docker.io/projectsveltos/sveltos-applier@sha256:81a0fdff0ba38ba2ecfa9c48c35e4d4167c21e603315d77cfdebe5630e532a92
image: docker.io/projectsveltos/sveltos-applier@sha256:46c46c8c4617a7a20c96cec5bce66d3ee1cf494123a07bf86574782e66d1c80e
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down