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

feat(kubectl): Extract interface for KubectlJobExecutor and use it. #6076

Merged
merged 6 commits into from Oct 10, 2023

Conversation

DanielaS12
Copy link
Contributor

@DanielaS12 DanielaS12 commented Oct 6, 2023

This change is made to enhance the kubernetes module to add the possibility to decorate the class. This will be usefull when extending the functionalities of the the KubectlJobExecutor in the community or using plugins.

@spinnakerbot
Copy link
Contributor

Please delete the pull request instructions from the body of your pull request message.

The instructions start with the line:

We prefer small, well tested pull requests.

You can reopen your pull request when this has been addressed.

import java.util.List;
import javax.annotation.Nonnull;

public interface KubectlJobExecutorInterface {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's rename it to KubectlJobExecutor and the implementation to DefaultKubectlJobExecutor

@ovidiupopa07 ovidiupopa07 reopened this Oct 6, 2023
Copy link
Contributor

@ovidiupopa07 ovidiupopa07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving since this is only adding a marker interface that will improve the extensibility of the class, allowing downstream consumers to customize some parts of the OSS implementation

@ovidiupopa07 ovidiupopa07 added the ready to merge Approved and ready for a merge label Oct 10, 2023
@mergify mergify bot added the auto merged Merged automatically by a bot label Oct 10, 2023
@mergify mergify bot merged commit bb04878 into spinnaker:master Oct 10, 2023
16 checks passed
@ovidiupopa07
Copy link
Contributor

ovidiupopa07 commented Oct 17, 2023

@mergify backport release-1.28.x

@mergify
Copy link
Contributor

mergify bot commented Oct 17, 2023

back -port release-1.28.x

❌ Sorry but I didn't understand the command. Please consult the commands documentation 📚.

@mergify
Copy link
Contributor

mergify bot commented Oct 17, 2023

backport release-1.28.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Oct 17, 2023
…6076)

* feat(kubectl): Extract interface for KubectlJobExecutor and use it instead of the implementation.

* feat(kubectl): Extract interface for KubectlJobExecutor and use it instead of the implementation.

* feat(kubectl): Extract interface for KubectlJobExecutor and use it instead of the implementation.

* feat(kubectl): Extract interface for KubectlJobExecutor and use it instead of the implementation.

* feat(kubectl): Extract interface for KubectlJobExecutor and use it instead of the implementation.

(cherry picked from commit bb04878)

# Conflicts:
#	clouddriver-kubernetes/src/main/java/com/netflix/spinnaker/clouddriver/kubernetes/op/handler/CanDeploy.java
#	clouddriver-kubernetes/src/main/java/com/netflix/spinnaker/clouddriver/kubernetes/op/job/KubectlJobExecutor.java
#	clouddriver-kubernetes/src/test/groovy/com/netflix/spinnaker/clouddriver/kubernetes/provider/view/KubernetesJobProviderSpec.groovy
#	clouddriver-kubernetes/src/test/java/com/netflix/spinnaker/clouddriver/kubernetes/op/job/DefaultKubectlJobExecutorTest.java
DanielaS12 added a commit to armory-io/clouddriver that referenced this pull request Oct 23, 2023
…pinnaker#6076)

* feat(kubectl): Extract interface for KubectlJobExecutor and use it instead of the implementation.

* feat(kubectl): Extract interface for KubectlJobExecutor and use it instead of the implementation.

* feat(kubectl): Extract interface for KubectlJobExecutor and use it instead of the implementation.

* feat(kubectl): Extract interface for KubectlJobExecutor and use it instead of the implementation.

* feat(kubectl): Extract interface for KubectlJobExecutor and use it instead of the implementation.

(cherry picked from commit bb04878)
DanielaS12 added a commit to armory-io/clouddriver that referenced this pull request Nov 13, 2023
mergify bot pushed a commit that referenced this pull request Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for a merge target-release/1.33
Projects
None yet
3 participants