Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

TT-7365 - Prevent reading k8s config while running snapshot tool#569

Merged
singhpr merged 13 commits intomasterfrom
fix/snapshot-k8s
Mar 14, 2023
Merged

TT-7365 - Prevent reading k8s config while running snapshot tool#569
singhpr merged 13 commits intomasterfrom
fix/snapshot-k8s

Conversation

@buraksekili
Copy link

Description

Previously, snapshot tool was reading the k8s config even though it does not require any specific k8s API functionality. So, in order for users to use the snapshot tool, they need to have a running k8s environment; so that the program could read k8s config.

This PR updates the main file of tyk-operator. While running in snapshot mode, it does not do any k8s specific operation.

Related Issue

Motivation and Context

Test Coverage For This Change

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If PRing from your fork, don't come from your master!
  • Make sure you are making a pull request against our master branch (left side). Also, it would be best if you started your change off our latest master.
  • Make sure you are updating CHANGELOG.md based on your changes.
  • My change requires a change to the documentation.
    • If you've changed APIs, describe what needs to be updated in the documentation.
  • I have updated the documentation accordingly.
  • If you've changed API models, please update CRDs.
    • make manifests
    • make helm
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Check your code additions will not fail linting checks:
    • gofmt -s -w .
    • go vet ./...
    • golangci-lint run

Signed-off-by: Burak Sekili <buraksekili@gmail.com>
@buraksekili buraksekili requested a review from a team as a code owner February 20, 2023 19:14
@buraksekili buraksekili requested review from komalsukhani and removed request for a team February 20, 2023 19:14
@buraksekili buraksekili changed the title Prevent reading k8s config while running snapshot tool TT-7365 - Prevent reading k8s config while running snapshot tool Feb 28, 2023
Co-authored-by: Yaara <yaara@tyk.io>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@singhpr singhpr merged commit 4d5391b into master Mar 14, 2023
@singhpr singhpr deleted the fix/snapshot-k8s branch March 14, 2023 07:23
buger pushed a commit that referenced this pull request May 22, 2024
* Prevent reading k8s config while running snapshot tool

Signed-off-by: Burak Sekili <buraksekili@gmail.com>

* Update CHANGELOG according to new changes

Signed-off-by: Burak Sekili <buraksekili@gmail.com>

* Revert "Prevent reading k8s config while running snapshot tool"

This reverts commit 8a1a9e8.

* Revert "Revert "Prevent reading k8s config while running snapshot tool""

This reverts commit 297bf9a.

* Update CHANGELOG.md

Co-authored-by: Yaara <yaara@tyk.io>

* update output directory for snapshot tool

Signed-off-by: Burak Sekili <buraksekili@gmail.com>

* Update CHANGELOG.md

Co-authored-by: Yaara <yaara@tyk.io>

---------

Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Co-authored-by: Yaara <yaara@tyk.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants