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

Add symbol to prevent breaking kubernetes plugin with jcasc #50

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

timja
Copy link
Member

@timja timja commented Mar 25, 2020

@@ -401,6 +402,7 @@ public static String getServiceNameWithoutOrchestra(String serviceName) {
}

@Extension
@Symbol("azureKubernetes")
Copy link
Member

Choose a reason for hiding this comment

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

Take care of the name here, there is a related one, Azure Container Service (AKS) Plugin.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can’t see a cloud in there, it just seemed to have a step called acsDeploy so should be fine unless I’m missing something

Copy link
Member

Choose a reason for hiding this comment

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

I do cannot propose a better name which would deconflict plugins. Both focus the same feature, more or less. Suggestion below is a technical one which does not help too much

Suggested change
@Symbol("azureKubernetes")
@Symbol("azureKubernetesCloud")

Copy link
Member Author

Choose a reason for hiding this comment

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

I would prefer not to include cloud in the same as it's part of the extension point.
i.e. for KubernetesCredentials the symbol would be kubernetes

@@ -401,6 +402,7 @@ public static String getServiceNameWithoutOrchestra(String serviceName) {
}

@Extension
@Symbol("azureKubernetes")
public static class DescriptorImpl extends Descriptor<Cloud> {
@Override
public String getDisplayName() {
Copy link
Member

Choose a reason for hiding this comment

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

Time to remove ACS from docs and UI? Should be a separate PR tho

@@ -401,6 +402,7 @@ public static String getServiceNameWithoutOrchestra(String serviceName) {
}

@Extension
@Symbol("azureKubernetes")
Copy link
Member

Choose a reason for hiding this comment

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

I do cannot propose a better name which would deconflict plugins. Both focus the same feature, more or less. Suggestion below is a technical one which does not help too much

Suggested change
@Symbol("azureKubernetes")
@Symbol("azureKubernetesCloud")

@timja timja closed this Mar 31, 2020
@timja timja reopened this Mar 31, 2020
@timja timja closed this Apr 26, 2020
@timja timja reopened this Apr 26, 2020
@timja timja mentioned this pull request Apr 26, 2020
@xuzhang3 xuzhang3 closed this Oct 19, 2020
@xuzhang3 xuzhang3 reopened this Oct 19, 2020
@xuzhang3
Copy link
Collaborator

LGTM

@xuzhang3 xuzhang3 merged commit fef9580 into jenkinsci:dev Oct 19, 2020
@timja timja deleted the add-symbol branch October 19, 2020 06:17
@timja
Copy link
Member Author

timja commented Oct 19, 2020

Would you be able to ship a release please @xuzhang3

@xuzhang3
Copy link
Collaborator

Would you be able to ship a release please @xuzhang3

New version v1.2.0 has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Found multiple implementations for symbol = kubernetes
5 participants