Skip to content

Kubernetes: Display the NodePort in the service details #4110

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

Closed
wants to merge 1 commit into from

Conversation

Smana
Copy link
Contributor

@Smana Smana commented Mar 30, 2016

No description provided.

@Smana
Copy link
Contributor Author

Smana commented Mar 30, 2016

#4101

@@ -431,7 +431,7 @@ angular.module('kubernetesUI').run(['$templateCache', function($templateCache) {
" <dd>\n" +
" <div ng-if=\"!resource.spec.ports.length\">None</div>\n" +
" <div ng-repeat=\"portMapping in resource.spec.ports | orderBy:'port'\">\n" +
" {{portMapping.port}} &#8594; {{portMapping.targetPort}} ({{portMapping.protocol}})\n" +
" {{portMapping.port}} &#8594; {{portMapping.targetPort}} ({{portMapping.protocol}}) {{portMapping.nodePort?'NodePort: '+portMapping.nodePort:''}}\n" +
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest using a tag like this: <span ng-if='portMapping.nodePort' translatable="yes">Node Port:</span> since it allows for translation and doesn't mix labels with the values.

The object-describer comes from another repository. Could you also submit a pull request upstream?

https://github.com/kubernetes-ui/object-describer

@stefwalter
Copy link
Contributor

Thanks for the fix. Just a couple review comments above. I'd be happy to help on #cockpit on FreeNode if you have questions.

@stefwalter
Copy link
Contributor

Haven't heard back, so I made those fixes and merged. Opened this pull request too: kubernetes-ui/object-describer#30

Hope I got this right.

screenshot from 2016-04-05 17-48-51

@Smana
Copy link
Contributor Author

Smana commented Apr 5, 2016

Sorry for the delay @stefwalter and thank you for the change :)

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.

2 participants