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

use client factory to create namespace #7589

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

tatlat
Copy link
Member

@tatlat tatlat commented Feb 14, 2024

Issue #, if available:

Description of changes:

Testing (if applicable):

Documentation added/planned (if applicable):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot eks-distro-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 14, 2024
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (4583834) 73.48% compared to head (d8ceefd) 73.67%.
Report is 88 commits behind head on main.

Files Patch % Lines
cmd/eksctl-anywhere/cmd/createcluster.go 0.00% 2 Missing ⚠️
pkg/workflows/management/create_workload.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7589      +/-   ##
==========================================
+ Coverage   73.48%   73.67%   +0.18%     
==========================================
  Files         579      581       +2     
  Lines       36357    36924     +567     
==========================================
+ Hits        26718    27202     +484     
- Misses       7875     7933      +58     
- Partials     1764     1789      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tatlat tatlat force-pushed the fix-creating-namespace branch from 5b16bc2 to d9d7928 Compare February 15, 2024 01:11
@drewvanstone drewvanstone added this to the v0.19.0 milestone Feb 15, 2024
pkg/clients/kubernetes/unauth.go Outdated Show resolved Hide resolved
pkg/clients/kubernetes/unauth_test.go Outdated Show resolved Hide resolved
)

// CreateNamespaceIfNotPresent creates the namespace on the cluster if it does not already exist.
func CreateNamespaceIfNotPresent(ctx context.Context, namespace, kubeconfig string, clientFactory interfaces.ClientFactory) error {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: can we find a different place for this?
Im ok if you move it in a separate pr

Copy link
Member Author

Choose a reason for hiding this comment

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

i'll do it in another pr

@tatlat tatlat force-pushed the fix-creating-namespace branch from 4761576 to 6352aa8 Compare February 16, 2024 01:32
@mitalipaygude
Copy link
Member

looks good to me!

@mitalipaygude
Copy link
Member

/lgtm

@mitalipaygude
Copy link
Member

/woof

@eks-distro-bot
Copy link
Collaborator

@mitalipaygude: dog image

In response to this:

/woof

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mitalipaygude
Copy link
Member

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mitalipaygude

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eks-distro-bot eks-distro-bot merged commit 474797c into aws:main Feb 16, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants