Skip to content

Conversation

@TerryHowe
Copy link
Contributor

Make the temporary credential file valid json

@TerryHowe TerryHowe force-pushed the create-empty-credentials-file branch from 09435fc to 0384c65 Compare May 24, 2025 18:04
@matheuscscp
Copy link
Member

I'm not sure this is the kind of fix we're looking for here... Does oras v2 still need this file to exist? If it does, we're just not gonna use oras anymore. In the other branch I was able to rip this file off. Following a test case in the debugger showed that oras was not writing any files but rather using a static credential in memory. Did you see the last 2 commits in that branch?

@TerryHowe
Copy link
Contributor Author

It does not require the file to exist.

@TerryHowe TerryHowe force-pushed the create-empty-credentials-file branch from 0384c65 to a86f542 Compare May 25, 2025 14:30
@matheuscscp
Copy link
Member

Great! Then after we release Flux 2.6 this week we can upgrade to helm 3.18 and in this PR you can just cherry pick the last 2 commits I pushed to the other branch 👍

@TerryHowe TerryHowe changed the title fix: create valid empty credentials file fix: use no credentials file May 25, 2025
@TerryHowe
Copy link
Contributor Author

I just updated this PR with your one commit that should fix that problem


var errs []error
rClient, err := newClient(credentialsFile.Name(), tlsConfig, insecureHTTP)
rClient, err := newClient("", tlsConfig, insecureHTTP)
Copy link
Member

Choose a reason for hiding this comment

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

The controller is still in oras v1 so this won't work

@matheuscscp
Copy link
Member

I just updated this PR with your one commit that should fix that problem

Thanks but we didn't upgrade to oras v2 yet. Let's do it next week

@TerryHowe TerryHowe closed this May 26, 2025
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.

2 participants