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

[3/3] Add e2e test case for Inline ConfigMaps #595

Closed

Conversation

linki
Copy link
Member

@linki linki commented Feb 23, 2024

This adds a first e2e test for Inline ConfigMaps developed in #593. It's based on the dedicated test suite created in #599.

It handles a very simple case where an inline ConfigMap with a single key-value pair of data is defined. It validates that a ConfigMap is created in the cluster with the expanded name (including the StackSet name and Stack version) as well as that it's owned by the Stack via ownerReferences.

TODOs

The rewrite portion hasn't been implemented yet, so the tests for that are skipped (see comment). I'd suggest to start by adding a test case here because the rewrite is probably the most delicate problem of this feature.

Please also see the previous PRs that are needed for this one:

@linki linki changed the title add test suite dedicated for config resources to understand all cases… [wip] Add dedicated test suite for configuration resources Feb 23, 2024
@linki linki force-pushed the configuration-resources-simpler-tests branch 5 times, most recently from da8bfe4 to 927ee92 Compare February 26, 2024 12:37
@linki linki force-pushed the configmap-inline-another-try branch 3 times, most recently from 9c57062 to f732160 Compare February 29, 2024 15:40
@linki linki force-pushed the configmap-inline-another-try branch 2 times, most recently from bb4468a to ee45eb2 Compare March 7, 2024 13:31
@linki linki force-pushed the configuration-resources-simpler-tests branch 2 times, most recently from 1f00726 to 5f1b128 Compare March 7, 2024 13:40
@linki linki changed the title [wip] Add dedicated test suite for configuration resources [3/3] Add e2e test case for Inline ConfigMaps Mar 7, 2024
@linki linki force-pushed the configuration-resources-simpler-tests branch from 5f1b128 to ab00360 Compare March 7, 2024 13:50
@linki linki force-pushed the configmap-inline-another-try branch from ee45eb2 to d24e5a4 Compare March 7, 2024 15:00
@linki linki force-pushed the configuration-resources-simpler-tests branch 2 times, most recently from 11f0961 to 3c22661 Compare March 7, 2024 15:50
@linki linki force-pushed the configmap-inline-another-try branch 2 times, most recently from df18af0 to b6abb34 Compare March 19, 2024 13:50
@linki linki force-pushed the configuration-resources-simpler-tests branch from 3c22661 to bc0ed5c Compare March 19, 2024 13:52
@linki linki force-pushed the configmap-inline-another-try branch from b6abb34 to 19a2f7a Compare March 19, 2024 14:53
@linki linki force-pushed the configuration-resources-simpler-tests branch from bc0ed5c to 19c0e76 Compare March 19, 2024 14:54
@linki linki force-pushed the configuration-resources-simpler-tests branch from 19c0e76 to 5242530 Compare March 20, 2024 14:50
@linki linki force-pushed the configuration-resources-simpler-tests branch from 5242530 to eae7cce Compare March 20, 2024 14:51
zaklawrencea and others added 17 commits March 25, 2024 10:49
* Update dependencies (k8s.io/* -> v0.26.14)

Signed-off-by: Zak Lawrence <zaklawrencea@protonmail.com>

* Handle informer error

Signed-off-by: Zak Lawrence <zaklawrencea@protonmail.com>

* Update error strings

Signed-off-by: Zak Lawrence <zaklawrencea@protonmail.com>

---------

Signed-off-by: Zak Lawrence <zaklawrencea@protonmail.com>
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.27.12 to 0.28.8.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](kubernetes/client-go@v0.27.12...v0.28.8)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [k8s.io/code-generator](https://github.com/kubernetes/code-generator) from 0.27.12 to 0.28.8.
- [Commits](kubernetes/code-generator@v0.27.12...v0.28.8)

---
updated-dependencies:
- dependency-name: k8s.io/code-generator
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Use non-anonymous types for PCS status

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>

* Don't keep PCS CRD

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>

---------

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
* remove e2es based on central ingress resources.

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>

* Remove source switchs e2es.

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>

* Adapt e2e tests to use segments.

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>

* Remove unused functions.

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>

* Update e2e howto.

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>

* Update e2e script.

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>

---------

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>
Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>
Require unique non-empty hosts for ingress and routegroup specs.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
* Remove central ingress/routegroup logic; remove ingress source switch ttl logic.

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>

* Remove split HPA generation; rename StackSet Ingress function.

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>

* Update end-2-end test configuration.

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>

* Remove comment.

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>

---------

Signed-off-by: Rodrigo Reis <rodrigo.gargravarr@gmail.com>
@linki linki force-pushed the configmap-inline-another-try branch from ef7d88d to e01e19e Compare April 11, 2024 15:08
@linki linki force-pushed the configuration-resources-simpler-tests branch from eae7cce to 2236de4 Compare April 11, 2024 15:09
@linki linki force-pushed the configmap-inline-another-try branch from 433bc16 to ef7d88d Compare April 18, 2024 12:38
@linki
Copy link
Member Author

linki commented Jul 18, 2024

Closing this as inactive. Let's follow up if we decide to support inline ConfigMaps. (This branch is supposed to be merged into configmap-inline-another-try branch from the other PR)

@linki linki closed this Jul 18, 2024
@linki linki deleted the configuration-resources-simpler-tests branch July 18, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants