Created
January 26, 2024 04:06
-
-
Save manaswinidas/cc600fdf71eaf1eea6a91150c0439385 to your computer and use it in GitHub Desktop.
Make these changes in the same file as getPodContainerText
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const getLogsUrlPart = ( | |
namespace: string, | |
podName: string, | |
containerName: string, | |
tail?: number, | |
): string => | |
`/api/k8s/api/v1/namespaces/${namespace}/pods/${podName}/log?container=${containerName}${ | |
tail ? `&tailLines=${tail}` : '' | |
}`; | |
export const getLogsUrl = ( | |
namespace: string, | |
podName: string, | |
containerName: string, | |
tail?: number, | |
): string => `${location.origin}` + getLogsUrlPart(namespace, podName, containerName, tail); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment