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

imagerepo: add .spec.insecure to ImageRepository #472

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Conversation

aryan9600
Copy link
Member

@aryan9600 aryan9600 commented Nov 22, 2023

Add a new boolean field .spec.insecure to the ImageRepository API. This enables connecting to insecure registries hosted at an HTTP endpoint.

Fixes #325
Related to https://github.com/fluxcd/flux2/tree/main/rfcs/0004-insecure-http

@aryan9600 aryan9600 added enhancement New feature or request area/api API related issues and pull requests labels Nov 22, 2023
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @aryan9600

@darkowlzz
Copy link
Contributor

Just a note about this change in relation to #368. When ImagePolicy starts connecting to the registry for fetching the digest, it'll also need to know about the insecure field associated with the ImageRepository image. What's in the spec may not match what's in the status for the current generation. So, both Image and Insecure fields will have to be recorded in the status for the observed generation of ImageRepository.

Add a new boolean field `.spec.insecure` to the `ImageRepository` API.
This enables connecting to insecure registries hosted at an HTTP
endpoint.

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
Copy link
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

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

LGTM!

@aryan9600 aryan9600 merged commit 5ba65b6 into main Nov 23, 2023
6 checks passed
@aryan9600 aryan9600 deleted the imagerepo-insecure branch November 23, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api API related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC-004] Add .spec.insecure to ImageRepository
3 participants