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

create multus kubeconfig for incase of non auto flag. #1302

Conversation

abasitt
Copy link
Contributor

@abasitt abasitt commented Jun 22, 2024

Fixing #1295

Copy link
Member

@dougbtv dougbtv left a comment

Choose a reason for hiding this comment

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

approved -- just needs a rebase

@@ -153,12 +153,19 @@ func getFileAndHash(filepath string) ([]byte, []byte, error) {
return content, hash.Sum(nil), nil
}

func (o *Options) createKubeConfig(prevCAHash, prevSATokenHash []byte) ([]byte, []byte, error) {
caFileByte, caHash, err := getFileAndHash(serviceAccountCAFile)
func (o *Options) createKubeConfig(caFilePath, saTokenFilePath string, prevCAHash, prevSATokenHash []byte) ([]byte, []byte, error) {
Copy link
Member

Choose a reason for hiding this comment

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

are these mostly unused params necessary? looks like they're for testing, is there another way to handle it for the tests? thanks

@dougbtv
Copy link
Member

dougbtv commented Aug 1, 2024

We wound up replacing this with #1317 -- thank you for the contribution and fix.

@dougbtv dougbtv closed this Aug 1, 2024
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.

None yet

2 participants