From a7fddefe0a5c36aa3c5eaa3f6df90d9b7d84bd5a Mon Sep 17 00:00:00 2001 From: Plamen Kokanov Date: Thu, 11 Jul 2024 16:55:48 +0300 Subject: [PATCH] Make necessary skaffold changes --- .reuse/dep5 | 2 ++ local-setup/kustomization.yaml | 4 ++-- skaffold.yaml | 22 +++++++++++++++------- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.reuse/dep5 b/.reuse/dep5 index 75f55a5d..dd0126f9 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -25,9 +25,11 @@ Files: example/extension/extension-config-patch.yaml.tmpl example/local/charts/rsyslog-relp-echo-server/.helmignore example/controller-registration.yaml + example/kustomization.yaml hack/api-reference/*.json hack/cherry-pick-pull.sh test/integration/controller/lifecycle/resources/*.yaml + local-setup go.mod go.sum skaffold.yaml diff --git a/local-setup/kustomization.yaml b/local-setup/kustomization.yaml index f24d9536..5b50fa87 100644 --- a/local-setup/kustomization.yaml +++ b/local-setup/kustomization.yaml @@ -7,8 +7,8 @@ resources: patches: - patch: | - op: replace - path: /providerConfig/values/image - value: local-skaffold/gardener/extensions/shoot-rsyslog-relp + path: /helm/values/image + value: local-skaffold/gardener-extension-shoot-rsyslog-relp target: group: core.gardener.cloud kind: ControllerDeployment diff --git a/skaffold.yaml b/skaffold.yaml index 501f45ce..57a5da8d 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -4,10 +4,10 @@ metadata: name: rsyslog-relp-echo-server build: artifacts: - - image: local-skaffold/gardener/extensions/shoot-rsyslog-relp-echo-server + - image: local-skaffold/gardener-extension-shoot-rsyslog-relp-echo-server docker: cacheFrom: - - local-skaffold/gardener/extensions/shoot-rsyslog-relp-echo-server + - local-skaffold/gardener-extension-shoot-rsyslog-relp-echo-server local: {} deploy: helm: @@ -18,7 +18,7 @@ deploy: wait: true chartPath: example/local/charts/rsyslog-relp-echo-server setValueTemplates: - images.rsyslog: '{{.IMAGE_FULLY_QUALIFIED_local_skaffold_gardener_extensions_shoot_rsyslog_relp_echo_server}}' + images.rsyslog: '{{.IMAGE_FULLY_QUALIFIED_local_skaffold_gardener_extension_shoot_rsyslog_relp_echo_server}}' setValues: service.clusterIP: 10.2.64.54 --- @@ -28,7 +28,7 @@ metadata: name: extension build: artifacts: - - image: local-skaffold/gardener/extensions/shoot-rsyslog-relp + - image: local-skaffold/gardener-extension-shoot-rsyslog-relp ko: dependencies: paths: @@ -45,8 +45,16 @@ build: - pkg/controller/config - pkg/controller/lifecycle - imagevector + - imagevector/images.yaml - pkg/utils - pkg/webhook/operatingsystemconfig + - pkg/webhook/operatingsystemconfig/resources/auditrules/00-base-config.rules + - pkg/webhook/operatingsystemconfig/resources/auditrules/10-privilege-escalation.rules + - pkg/webhook/operatingsystemconfig/resources/auditrules/11-privileged-special.rules + - pkg/webhook/operatingsystemconfig/resources/auditrules/12-system-integrity.rules + - pkg/webhook/operatingsystemconfig/resources/templates/60-audit.conf.tpl + - pkg/webhook/operatingsystemconfig/resources/templates/scripts/configure-rsyslog.tpl.sh + - pkg/webhook/operatingsystemconfig/resources/templates/scripts/process-rsyslog-pstats.tpl.sh - VERSION ldflags: - '{{.LD_FLAGS}}' @@ -69,7 +77,7 @@ metadata: name: admission build: artifacts: - - image: local-skaffold/gardener/extensions/shoot-rsyslog-relp-admission + - image: local-skaffold/gardener-extension-shoot-rsyslog-relp-admission ko: dependencies: paths: @@ -95,8 +103,8 @@ deploy: wait: true chartPath: charts/gardener-extension-shoot-rsyslog-relp-admission setValueTemplates: - global.image.repository: '{{.IMAGE_REPO_local_skaffold_gardener_extensions_shoot_rsyslog_relp_admission}}' - global.image.tag: '{{.IMAGE_TAG_local_skaffold_gardener_extensions_shoot_rsyslog_relp_admission}}@{{.IMAGE_DIGEST_local_skaffold_gardener_extensions_shoot_rsyslog_relp_admission}}' + global.image.repository: '{{.IMAGE_REPO_local_skaffold_gardener_extension_shoot_rsyslog_relp_admission}}' + global.image.tag: '{{.IMAGE_TAG_local_skaffold_gardener_extension_shoot_rsyslog_relp_admission}}@{{.IMAGE_DIGEST_local_skaffold_gardener_extension_shoot_rsyslog_relp_admission}}' profiles: - name: remote-extension patches: