Skip to content

Conversation

@rish2320
Copy link
Contributor

@rish2320 rish2320 commented Jun 2, 2023

Description

We will be able to see the logs of previous container.

Fixes #2882

How Has This Been Tested?

Tested all the cases manually.

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

@rish2320 rish2320 requested a review from prakash100198 June 2, 2023 11:14
TailLines int `json:"tailLines"`
Follow bool `json:"follow"`
ContainerName string `json:"containerName"`
PrevContainerLogs bool `json:"previous"`
Copy link
Contributor

Choose a reason for hiding this comment

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

By looking at variable name it does not strike as boolean value, please name it appropriately. maybe isPrevContainerLogsEnabled or any other name like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

TailLines: tailLines,
Follow: follow,
ContainerName: containerName,
PrevContainerLogs: isPrevLogs,
Copy link
Contributor

Choose a reason for hiding this comment

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

change here accordingly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 7, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rish2320 rish2320 merged commit fd82475 into fix-argocd-rbac-kubelink Jun 13, 2023
@rish2320 rish2320 deleted the logs-prev-container branch June 13, 2023 04:18
Ash-exp added a commit that referenced this pull request Jun 21, 2023
…Event, Logs, Terminal) (#3200)

* argocd rbac policy enforcement for kubelink

* updated rbac for k8s resource

* updated terminal rbac policy for helm app

* removed deployment type

* Updated TODO & ResourceValidation for devtron app

* updated TODO

* terminal rbac fixed

* fixed cluster id bug for resource browser

* fixed pod log bug

* fix: deploymentType Validation condition

* fix: Pod Logs Bug

* feat: logs prev container (#3469)

* minor-change

* conditional break fixed

* changing names

* Updated latest image of hyperion in installer

* Updated latest image of devtron in installer

* Updated latest image of devtron in installer

* Updated latest image of hyperion in installer

* Updated latest image of hyperion in installer

* Updated latest image of devtron in installer

* fix: App delete from ACD with non cascade (#3339)

* acd app delete with non-cascade

* handled DeleteErrorResponse length error

* added go routine

* argo non-casecade delete for helm and devtron app

* fix: api response for cluster connection error

* fix: nil pointer for cluster details

* fix: updated test interface for pipeline

* fix: non-cascade delete condition

* fix: forceDelete and cascadeDelete validation

* fix: delete response for force delete req

* fix: added clusterName to res

* fix: added clusterName to cluster-conn api resp

* fix: updated non-cascade api resp

* fix: updated non-cascade api err return

* fix: updated chart list delete bug

* fix: installed app delete bug

* fix: installed app noncascade delete bug

* fix: helm release force delete

* fix: appstore release force delete

* fix: appstore deployment list response

* fix: bulk delete deployment api condition

* fixed typo and response message

* fix: bulk delete cd pipeline api payload

* fix: logger and conditional chain

* updated wire

* modifed cluster services

* reverted to devtron chart values

* reverted migrator changes

* fix: deployment app type for internal use false

---------

Co-authored-by: rish2320 <[email protected]>
Co-authored-by: ReleaseBot <[email protected]>
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.

3 participants