Skip to content
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

refactor: context usage in k8s code #2405

Merged
merged 93 commits into from
May 15, 2024
Merged

Commits on Mar 26, 2024

  1. Initial commit to refactor context usage within k8s code

    Lucas Rodriguez committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    47dd9cf View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    8e4ff57 View commit details
    Browse the repository at this point in the history
  3. Simplify getImagesAndNodesForInjection

    Lucas Rodriguez committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    c74e634 View commit details
    Browse the repository at this point in the history
  4. Make ctx the first param in testConnection

    Lucas Rodriguez committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    3cdec09 View commit details
    Browse the repository at this point in the history
  5. Make ctx the first param in connectToZarfServices

    Lucas Rodriguez committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    57c70a6 View commit details
    Browse the repository at this point in the history
  6. Make ctx the first param in testGitServerReadOnly and testGitServerTa…

    …gAndHash
    Lucas Rodriguez committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    418dbeb View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Fix component webhooks test

    Lucas Rodriguez committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    f074a95 View commit details
    Browse the repository at this point in the history
  2. Set ctx timeout for connectToCluster to 30 seconds

    Lucas Rodriguez committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    d336924 View commit details
    Browse the repository at this point in the history
  3. Go back to 5 second timeout to connect to cluster in pushReposToRepos…

    …itory
    Lucas Rodriguez committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    e96a397 View commit details
    Browse the repository at this point in the history
  4. Use DefaultTimeout in NewClusterSource

    Lucas Rodriguez committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    59c4282 View commit details
    Browse the repository at this point in the history
  5. Use DefaultTimeout in LoadPackageMetadata

    Lucas Rodriguez committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    2ddf7f9 View commit details
    Browse the repository at this point in the history
  6. Replace 30 second timeouts with DefaultTimeout

    Lucas Rodriguez committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    323c5e0 View commit details
    Browse the repository at this point in the history
  7. Fix import cycle

    Lucas Rodriguez committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    db44603 View commit details
    Browse the repository at this point in the history
  8. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    b586021 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    91dd499 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    3192b8c View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    32c4e11 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    27c5255 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    93716bd View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    7f37c55 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    4e4bff5 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    30d4c43 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Configuration menu
    Copy the full SHA
    9558272 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Do not reuse context in destroy ops

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    f405049 View commit details
    Browse the repository at this point in the history
  2. Do not reuse context in connect ops

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    ca07227 View commit details
    Browse the repository at this point in the history
  3. Do not set timeout for DevDeploy and handle errors

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    32ca85a View commit details
    Browse the repository at this point in the history
  4. Do not set timeout for init and remove comments

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    e7e2e99 View commit details
    Browse the repository at this point in the history
  5. Do not set timeout for connect

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    d8e2a1f View commit details
    Browse the repository at this point in the history
  6. Do not set timeout for connect list

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    3395af9 View commit details
    Browse the repository at this point in the history
  7. Do not set timeout for internal cmds and handle errors

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    dee36c2 View commit details
    Browse the repository at this point in the history
  8. Do not set timeout for package cmds

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    5c0b771 View commit details
    Browse the repository at this point in the history
  9. Handle errors

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    0de4a3a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3627ec0 View commit details
    Browse the repository at this point in the history
  11. Fix TestConfigFile test

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    15c3078 View commit details
    Browse the repository at this point in the history
  12. Do not set timeout for destroy ops

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    55cccf8 View commit details
    Browse the repository at this point in the history
  13. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    49e868e View commit details
    Browse the repository at this point in the history
  14. Do not set timeout for crane ops

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    4f62bef View commit details
    Browse the repository at this point in the history
  15. Move NewClusterOrDie to src/cmd/common

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    c9cdd0d View commit details
    Browse the repository at this point in the history
  16. Do not set timeout for prune images

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    af66e35 View commit details
    Browse the repository at this point in the history
  17. Do not set timeout for update-gitea-pvc

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    a7fc662 View commit details
    Browse the repository at this point in the history
  18. Use NewClusterOrDie in destroy cmd

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    f32398f View commit details
    Browse the repository at this point in the history
  19. Do not set timeout for helm post-render

    Lucas Rodriguez committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    ed89d81 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. Do not wait before checking for ns in DeleteNamespace()

    Lucas Rodriguez committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    7e8cc18 View commit details
    Browse the repository at this point in the history
  2. Do not wait before finding an image for injector pod

    Lucas Rodriguez committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    75dc048 View commit details
    Browse the repository at this point in the history
  3. Do not wait before checking pkg secret in RecordPackageDeploymentAndW…

    …ait()
    Lucas Rodriguez committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    8af2c43 View commit details
    Browse the repository at this point in the history
  4. Do not wait before checking for healthy cluster

    Lucas Rodriguez committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    d3b5e3d View commit details
    Browse the repository at this point in the history
  5. Do not wait before checking for deleted pod

    Lucas Rodriguez committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    de5df64 View commit details
    Browse the repository at this point in the history
  6. Do not wait before checking for matching containers

    Lucas Rodriguez committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    d5eef95 View commit details
    Browse the repository at this point in the history
  7. Do not wait before checking for a service account

    Lucas Rodriguez committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    0c4fca6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3eb9a5b View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2024

  1. Use timer in select statements rather than time.After()

    Lucas Rodriguez committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    170d219 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f01e27 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    ab7bf59 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2024

  1. Configuration menu
    Copy the full SHA
    931ea7e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    a30790a View commit details
    Browse the repository at this point in the history
  3. Update src/pkg/k8s/sa.go

    Co-authored-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
    Lucas Rodriguez and AustinAbro321 committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    c9c6db0 View commit details
    Browse the repository at this point in the history
  4. Update src/pkg/k8s/pods.go

    Co-authored-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
    Lucas Rodriguez and AustinAbro321 committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    06452bf View commit details
    Browse the repository at this point in the history
  5. Do not use timed out phrase in ctx.Done() cases

    Lucas Rodriguez committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    1bfc325 View commit details
    Browse the repository at this point in the history
  6. Use timer.Reset() and continue in WaitForHealthyCluster()

    Lucas Rodriguez committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    9b961ba View commit details
    Browse the repository at this point in the history
  7. Use const for waitDuration in WaitForHealthyCluster()

    Lucas Rodriguez committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    74d39db View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    e2479d9 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    e10dede View commit details
    Browse the repository at this point in the history
  2. dogsled stderr

    Lucas Rodriguez committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    5be68a5 View commit details
    Browse the repository at this point in the history
  3. sigh

    Lucas Rodriguez committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    6a53c92 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    a2c418c View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    cd1c4e7 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 1, 2024
    Configuration menu
    Copy the full SHA
    fe66783 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 3, 2024
    Configuration menu
    Copy the full SHA
    6aa2aad View commit details
    Browse the repository at this point in the history

Commits on May 6, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 6, 2024
    Configuration menu
    Copy the full SHA
    a20fc99 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 7, 2024
    Configuration menu
    Copy the full SHA
    7b8c325 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 7, 2024
    Configuration menu
    Copy the full SHA
    23b1db1 View commit details
    Browse the repository at this point in the history
  3. Use single, global context for parent and child commands

    Lucas Rodriguez committed May 7, 2024
    Configuration menu
    Copy the full SHA
    6396af2 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 8, 2024
    Configuration menu
    Copy the full SHA
    42ed9f0 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 8, 2024
    Configuration menu
    Copy the full SHA
    21f5415 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. Undo trivial lint fix

    Lucas Rodriguez committed May 9, 2024
    Configuration menu
    Copy the full SHA
    29d2367 View commit details
    Browse the repository at this point in the history
  2. Implement PR feedback

    Lucas Rodriguez committed May 9, 2024
    Configuration menu
    Copy the full SHA
    e98fc9a View commit details
    Browse the repository at this point in the history
  3. Use real context in bb test

    Lucas Rodriguez committed May 9, 2024
    Configuration menu
    Copy the full SHA
    043f28e View commit details
    Browse the repository at this point in the history
  4. sigh

    Lucas Rodriguez committed May 9, 2024
    Configuration menu
    Copy the full SHA
    e7896cd View commit details
    Browse the repository at this point in the history
  5. Fix config file test

    Lucas Rodriguez committed May 9, 2024
    Configuration menu
    Copy the full SHA
    daa77ef View commit details
    Browse the repository at this point in the history
  6. Check container name before running state

    Lucas Rodriguez committed May 9, 2024
    Configuration menu
    Copy the full SHA
    df57e2f View commit details
    Browse the repository at this point in the history
  7. Remove unnecessary matchedContainer boolean

    Lucas Rodriguez committed May 9, 2024
    Configuration menu
    Copy the full SHA
    be801e2 View commit details
    Browse the repository at this point in the history
  8. Use real context in unit test

    Lucas Rodriguez committed May 9, 2024
    Configuration menu
    Copy the full SHA
    b25db88 View commit details
    Browse the repository at this point in the history
  9. Pass ctx to NewClusterOrDie()

    Lucas Rodriguez committed May 9, 2024
    Configuration menu
    Copy the full SHA
    7099dd6 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 10, 2024
    Configuration menu
    Copy the full SHA
    47b582f View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 13, 2024
    Configuration menu
    Copy the full SHA
    48b8882 View commit details
    Browse the repository at this point in the history
  2. Apply PR feedback

    Lucas Rodriguez committed May 13, 2024
    Configuration menu
    Copy the full SHA
    10f65ae View commit details
    Browse the repository at this point in the history
  3. Go back to using context.TODO in tests

    Lucas Rodriguez committed May 13, 2024
    Configuration menu
    Copy the full SHA
    07e6213 View commit details
    Browse the repository at this point in the history
  4. Missed one

    Lucas Rodriguez committed May 13, 2024
    Configuration menu
    Copy the full SHA
    0f48bce View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 14, 2024
    Configuration menu
    Copy the full SHA
    cb8ba56 View commit details
    Browse the repository at this point in the history
  2. Back to using context.Background() in tests

    Lucas Rodriguez committed May 14, 2024
    Configuration menu
    Copy the full SHA
    e9a44b7 View commit details
    Browse the repository at this point in the history
  3. Missed a TODO

    Lucas Rodriguez committed May 14, 2024
    Configuration menu
    Copy the full SHA
    5ee0265 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' into refactor-context-usage-in-k8s-code

    Lucas Rodriguez committed May 14, 2024
    Configuration menu
    Copy the full SHA
    fd03b66 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Configuration menu
    Copy the full SHA
    fc58ef2 View commit details
    Browse the repository at this point in the history