Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Sync main into deletion mode feature #1736

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
05c7ed8
chore(dependabot): bump golang from 1.22.4-alpine to 1.22.5-alpine (#…
dependabot[bot] Jul 4, 2024
dfd484b
chore: Bump k8s version for e2e to 1.29.6 (#1665)
lindnerby Jul 5, 2024
136476d
feat: Avoid Redundant SSA for Manifest Patching (#1620)
LeelaChacha Jul 8, 2024
2a4b1a7
chore(dependabot): bump github.com/google/go-containerregistry from 0…
dependabot[bot] Jul 10, 2024
9ea6936
chore(dependabot): bump google.golang.org/grpc from 1.64.0 to 1.64.1 …
dependabot[bot] Jul 10, 2024
13621dd
chore: Remove diff manifest diff checker (#1674)
lindnerby Jul 11, 2024
46d1e4b
refactor: Simplify declarative reconciler (#1676)
lindnerby Jul 11, 2024
7988224
chore: Update Protecode (#1683)
ruanxin Jul 15, 2024
618673e
chore: Refactor NewCachedDescriptorProvider (#1695)
ruanxin Jul 18, 2024
895587d
docs: Update KLM Local Test Setup Guide (#1680)
amritanshusikdar Jul 19, 2024
d5ea474
feat: Drop multiple ways to reference modules in Kyma CR (#1672)
amritanshusikdar Jul 19, 2024
ba27374
chore: Configure different requeue intervals for Manifest reconciliat…
nesmabadr Jul 22, 2024
a3af93e
chore: Bump k8s deps (#1703)
lindnerby Jul 22, 2024
dc7ae44
fix: Manifest CR should update by moduletemplate generation changes (…
ruanxin Jul 25, 2024
294103d
feat: Support StatefulSet Module Resource in Ready Check (#1713)
nesmabadr Jul 26, 2024
9cd9406
chore(dependabot): bump github.com/onsi/gomega from 1.33.1 to 1.34.0 …
dependabot[bot] Jul 26, 2024
fe4f97a
deps: Use latest watcher img 1.1.1 (#1726)
lindnerby Jul 29, 2024
7d8c619
deps: Bump sec-scanners-config KLM img tag to 1.1.1 (#1728)
lindnerby Jul 29, 2024
1451f66
chore: Add deprecation notes to customStateCheck (#1708)
Tomasz-Smelcerz-SAP Jul 30, 2024
0294a70
chore(dependabot): bump github.com/onsi/gomega from 1.34.0 to 1.34.1 …
dependabot[bot] Jul 31, 2024
6f9e1fb
chore(dependabot): bump github.com/onsi/ginkgo/v2 from 2.19.0 to 2.19…
dependabot[bot] Jul 31, 2024
f7d3024
chore(dependabot): bump github.com/docker/docker from 26.1.3+incompat…
dependabot[bot] Aug 1, 2024
4126788
chore(dependabot): bump github.com/cert-manager/cert-manager from 1.1…
dependabot[bot] Aug 1, 2024
c42f9a4
chore: Limit access for remote and istio namespaces (#1722)
nesmabadr Aug 1, 2024
d42bf07
chore(dependabot): bump github.com/docker/docker from 26.1.3+incompat…
dependabot[bot] Aug 1, 2024
c657c61
chore(dependabot): bump github.com/open-component-model/ocm from 0.11…
dependabot[bot] Aug 2, 2024
e208f88
Merge remote-tracking branch 'refs/remotes/remote/feat/deletion-mode'…
LeelaChacha Aug 5, 2024
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
71 changes: 63 additions & 8 deletions .github/actions/deploy-template-operator/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ runs:
shell: bash
run: |
kubectl apply -f tests/moduletemplates/moduletemplate_template_operator_v2_fast.yaml
- name: Create Template Operator Module with final state and final deletion state as `Warning` and apply
- name: Create Template Operator Module with Deployment, with final state and final deletion state as `Warning` and apply
working-directory: template-operator
if: ${{ matrix.e2e-test == 'module-status-decoupling'}}
if: ${{ matrix.e2e-test == 'module-status-decoupling-with-deployment'}}
shell: bash
run: |
pushd config/default
pushd config/overlays/deployment
echo \
"- op: replace
path: /spec/template/spec/containers/0/args/1
Expand All @@ -62,24 +62,79 @@ runs:
cat warning_patch.yaml
kustomize edit add patch --path warning_patch.yaml --kind Deployment
popd
kyma alpha create module --kubebuilder-project --channel=regular --name kyma.project.io/module/template-operator --version 1.1.1 --path . --registry localhost:5111 --insecure --module-archive-version-overwrite /
make build-manifests
kyma alpha create module --module-config-file ./module-config.yaml --path . --registry localhost:5111 --insecure
sed -i 's/localhost:5111/k3d-kcp-registry.localhost:5000/g' ./template.yaml
kubectl get crds
kubectl apply -f template.yaml
- name: Create Template Operator Module with non-working image and apply
- name: Create Template Operator Module with StatefulSet, with final state and final deletion state as `Warning` and apply
working-directory: template-operator
if: ${{ matrix.e2e-test == 'module-status-decoupling-with-statefulset'}}
shell: bash
run: |
pushd config/overlays/statefulset
echo \
"- op: replace
path: /spec/template/spec/containers/0/args/1
value: --final-state=Warning
- op: replace
path: /spec/template/spec/containers/0/args/2
value: --final-deletion-state=Warning" >> warning_patch.yaml
cat warning_patch.yaml
kustomize edit add patch --path warning_patch.yaml --kind StatefulSet
popd
make build-statefulset-manifests
kyma alpha create module --module-config-file ./module-config.yaml --path . --registry localhost:5111 --insecure
sed -i 's/localhost:5111/k3d-kcp-registry.localhost:5000/g' ./template.yaml
kubectl get crds
kubectl apply -f template.yaml
- name: Create non-working image patch for Template Operator Module and create associated module config file
working-directory: template-operator
if: ${{ matrix.e2e-test == 'module-status-decoupling-with-deployment'||
matrix.e2e-test == 'module-status-decoupling-with-statefulset'}}
shell: bash
run: |
echo "name: kyma-project.io/module/template-operator-misconfigured
channel: regular
version: v1.1.1
manifest: template-operator.yaml
security: sec-scanners-config.yaml
defaultCR: ./config/samples/default-sample-cr.yaml
annotations:
operator.kyma-project.io/doc-url: https://kyma-project.io" >> misconfigured-module-config.yaml
- name: Create Template Operator Module with Deployment, with non-working image and apply
working-directory: template-operator
if: ${{ matrix.e2e-test == 'module-status-decoupling'}}
if: ${{ matrix.e2e-test == 'module-status-decoupling-with-deployment'}}
shell: bash
run: |
pushd config/default
pushd config/overlays/deployment
echo \
"- op: replace
path: /spec/template/spec/containers/0/image
value: non-working-path" >> image_patch.yaml
cat image_patch.yaml
kustomize edit add patch --path image_patch.yaml --kind Deployment
popd
kyma alpha create module --kubebuilder-project --channel=regular --name kyma.project.io/module/template-operator-misconfigured --version 1.1.1 --path . --registry localhost:5111 --insecure --module-archive-version-overwrite
make build-manifests
kyma alpha create module --module-config-file ./misconfigured-module-config.yaml --path . --registry localhost:5111 --insecure
sed -i 's/localhost:5111/k3d-kcp-registry.localhost:5000/g' ./template.yaml
kubectl get crds
kubectl apply -f template.yaml
- name: Create Template Operator Module with StatefulSet, with non-working image and apply
working-directory: template-operator
if: ${{ matrix.e2e-test == 'module-status-decoupling-with-statefulset'}}
shell: bash
run: |
pushd config/overlays/statefulset
echo \
"- op: replace
path: /spec/template/spec/containers/0/image
value: non-working-path" >> image_patch.yaml
cat image_patch.yaml
kustomize edit add patch --path image_patch.yaml --kind StatefulSet
popd
make build-statefulset-manifests
kyma alpha create module --module-config-file ./misconfigured-module-config.yaml --path . --registry localhost:5111 --insecure
sed -i 's/localhost:5111/k3d-kcp-registry.localhost:5000/g' ./template.yaml
kubectl get crds
kubectl apply -f template.yaml
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
- watcher-enqueue
- kyma-deprovision-with-foreground-propagation
- kyma-deprovision-with-background-propagation
- module-status-decoupling
- module-status-decoupling-with-statefulset
- module-status-decoupling-with-deployment
- kyma-metrics
- module-without-default-cr
- module-consistency
Expand Down
2 changes: 2 additions & 0 deletions api-version-compatibility-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ operator.kyma-project.io_moduletemplates.yaml:
v1beta1:
- .spec.properties.target
- .spec.required[]|select(.=="target")
v1beta2:
- .spec.properties.customStateCheck.description
59 changes: 30 additions & 29 deletions api/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.4

require (
github.com/Masterminds/semver/v3 v3.2.1
github.com/open-component-model/ocm v0.11.0
github.com/open-component-model/ocm v0.12.0
k8s.io/apimachinery v0.30.3
sigs.k8s.io/controller-runtime v0.18.4
)
Expand Down Expand Up @@ -39,20 +39,20 @@ require (
github.com/alibabacloud-go/tea-xml v1.1.3 // indirect
github.com/aliyun/credentials-go v1.3.1 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/aws/aws-sdk-go-v2 v1.27.0 // indirect
github.com/aws/aws-sdk-go-v2/config v1.27.16 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.16 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.3 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.7 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.7 // indirect
github.com/aws/aws-sdk-go-v2 v1.30.0 // indirect
github.com/aws/aws-sdk-go-v2/config v1.27.21 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.21 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.8 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.12 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.12 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
github.com/aws/aws-sdk-go-v2/service/ecr v1.28.3 // indirect
github.com/aws/aws-sdk-go-v2/service/ecr v1.29.1 // indirect
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.18.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.9 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.20.9 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.24.3 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.28.10 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.14 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.21.1 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.25.1 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.29.1 // indirect
github.com/aws/smithy-go v1.20.2 // indirect
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20231024185945-8841054dbdb8 // indirect
github.com/beorn7/perks v1.0.1 // indirect
Expand All @@ -65,7 +65,8 @@ require (
github.com/clbanning/mxj/v2 v2.7.0 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be // indirect
github.com/containerd/containerd v1.7.17 // indirect
github.com/containerd/containerd v1.7.18 // indirect
github.com/containerd/errdefs v0.1.0 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect
github.com/coreos/go-oidc/v3 v3.10.0 // indirect
Expand All @@ -75,9 +76,9 @@ require (
github.com/digitorus/timestamp v0.0.0-20231217203849-220c5c2851b7 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/docker/cli v26.1.3+incompatible // indirect
github.com/docker/cli v27.0.1+incompatible // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
github.com/docker/docker v26.1.3+incompatible // indirect
github.com/docker/docker v27.0.1+incompatible // indirect
github.com/docker/docker-credential-helpers v0.8.1 // indirect
github.com/docker/go-connections v0.5.0 // indirect
github.com/docker/go-metrics v0.0.1 // indirect
Expand Down Expand Up @@ -132,14 +133,14 @@ require (
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.8 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/pgzip v1.2.6 // indirect
github.com/letsencrypt/boulder v0.0.0-20231026200631-000cd05d5491 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mandelsoft/filepath v0.0.0-20240223090642-3e2777258aa3 // indirect
github.com/mandelsoft/goutils v0.0.0-20240605100619-84d61423f421 // indirect
github.com/mandelsoft/logging v0.0.0-20240201091719-67180059d6bf // indirect
github.com/mandelsoft/goutils v0.0.0-20240623134558-383cb09dec16 // indirect
github.com/mandelsoft/logging v0.0.0-20240618075559-fdca28a87b0a // indirect
github.com/mandelsoft/spiff v1.7.0-beta-5 // indirect
github.com/mandelsoft/vfs v0.4.3 // indirect
github.com/marstr/guid v1.1.0 // indirect
Expand Down Expand Up @@ -213,15 +214,15 @@ require (
go.step.sm/crypto v0.44.2 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/oauth2 v0.20.0 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/term v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/term v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/time v0.5.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
google.golang.org/api v0.172.0 // indirect
Expand All @@ -233,10 +234,10 @@ require (
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
helm.sh/helm/v3 v3.15.1 // indirect
k8s.io/api v0.30.1 // indirect
k8s.io/apiextensions-apiserver v0.30.1 // indirect
k8s.io/client-go v0.30.1 // indirect
helm.sh/helm/v3 v3.15.2 // indirect
k8s.io/api v0.30.2 // indirect
k8s.io/apiextensions-apiserver v0.30.2 // indirect
k8s.io/client-go v0.30.2 // indirect
k8s.io/klog/v2 v2.120.1 // indirect
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
k8s.io/utils v0.0.0-20240310230437-4693a0247e57 // indirect
Expand Down
Loading
Loading