mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Sort Pod environment values in alphabetical order
Fixes: #739 Signed-off-by: Steve Richards <srichards@mirantis.com>
This commit is contained in:
parent
4fcac6b0d0
commit
d25512c817
@ -11,6 +11,7 @@ import { secretsStore } from "../+config-secrets/secrets.store";
|
||||
import { configMapsStore } from "../+config-maps/config-maps.store";
|
||||
import { Icon } from "../icon";
|
||||
import { base64, cssNames } from "../../utils";
|
||||
import _ from "lodash";
|
||||
|
||||
interface Props {
|
||||
container: IPodContainer;
|
||||
@ -40,7 +41,9 @@ export const ContainerEnvironment = observer((props: Props) => {
|
||||
)
|
||||
|
||||
const renderEnv = () => {
|
||||
return env.map(variable => {
|
||||
let orderedEnv = _.sortBy(env, 'name');
|
||||
|
||||
return orderedEnv.map(variable => {
|
||||
const { name, value, valueFrom } = variable
|
||||
let secretValue = null
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user