Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Use the current operation instead of relying on assignment state #3894

Merged
merged 9 commits into from
May 28, 2024

Conversation

nyordanoff
Copy link
Contributor

@nyordanoff nyordanoff commented May 22, 2024

Description
Currently we determined the formation operation (assign/unassign) based on the formation assignment state. In this PR we determine the formation operation based on the type of the latest assignment operation for the given assignment.

Changes proposed in this pull request:

  • remove INSTANCE_CREATOR_DELETING and INSTANCE_CREATOR_DELETE_ERROR assignment states in favour of a new assignment operation type - INSTANCE_CREATOR_UNASSIGN
  • create instance creator assignment operation for assignments with instance creator related states
  • use the latest assignment operation for figuring out what is the formation operation instead of using the FA state
  • adapt flow control operator

Related issue(s)

  • ...

Pull Request status

  • Implementation
  • Unit tests
  • Integration tests
  • chart/compass/values.yaml is updated
  • Mocks are regenerated, using the automated script

@nyordanoff nyordanoff requested review from a team as code owners May 22, 2024 08:53
@kyma-bot kyma-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. 🦅 team-falcon Team Falcon Label 🦖 team-raptor Team Raptor Label labels May 22, 2024
@kyma-bot kyma-bot requested review from DimitarPetrov and dragobt May 22, 2024 08:53
@kyma-bot kyma-bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. cla: yes Indicates the PR's author has signed the CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 22, 2024
@nyordanoff nyordanoff changed the title [WIP] Use fa operation not state Use the current operation instead of relying on assignment state May 22, 2024
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 22, 2024
@nyordanoff nyordanoff added the 👋 request review Review required label May 22, 2024
@dragobt dragobt self-assigned this May 22, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label May 27, 2024
@kyma-bot kyma-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 27, 2024
@kyma-bot kyma-bot removed the lgtm Looks good to me! label May 27, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label May 27, 2024
@kyma-bot kyma-bot removed the lgtm Looks good to me! label May 27, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label May 27, 2024
@kyma-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dragobt, la4ezar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nyordanoff
Copy link
Contributor Author

/test pre-main-compass-schema-migrator-validate

1 similar comment
@ognyvrac
Copy link
Contributor

/test pre-main-compass-schema-migrator-validate

@ognyvrac ognyvrac removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 28, 2024
@kyma-bot kyma-bot merged commit 350d912 into main May 28, 2024
8 of 9 checks passed
@nyordanoff nyordanoff deleted the use-fa-operation-not-state branch May 28, 2024 06:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. 🦅 team-falcon Team Falcon Label lgtm Looks good to me! size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. 🦖 team-raptor Team Raptor Label 👋 request review Review required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants