-
Notifications
You must be signed in to change notification settings - Fork 31
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
Gitea updates #77
Gitea updates #77
Conversation
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Hi @adetalhouet. Thanks for your PR. I'm waiting for a nephio-project member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Given the configuration is already hardcoded in the configuration, as defined [here](https://github.com/nephio-project/nephio-example-packages/blob/main/gitea/secret-gitea-inline-config.yaml#L21-L22), there is no point in asking the user to create these objects. Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
/ok-to-test |
@@ -34,4 +37,73 @@ cat <<EOF | kubectl apply -f - | |||
username: ... | |||
password: ... | |||
EOF | |||
``` | |||
|
|||
# OpenShift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. This is OK for now. But it gets at a general problem we haven't solved yet and we are likely to see over and over again.
Essentially, deploying this package into a particular environment creates the need to apply some additional resources. This could be treated as a separate, dependent package.
We should think about is whether we should have some sort of "deployment context" resource that our different packages understand, or a an "environment". This could be done as a binding of sorts, like described in kptdev/kpt#3973. If you bind the "openshift" resource to it, it would pull these in as a package dependency or perhaps as some sort of "mix in" concept we haven't yet figured out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think an alternative before we figure this out is to just use a derivative package.
We can clone the current Gitea package into a new GCP Gitea package and an OpenShift Gitea package, and add the appropriate resources.
Only way to do this right now is with a function, but I think the better option is the binding/injection/dependency/mix in concept I mentioned in another comment. We should work on that.
I think that's fine for now. We have nephio-project/nephio#346 to address secrets management in general. It becomes another dependency in the BYOC flow; for the sandbox maybe we use Vault. |
@adetalhouet For the GKE case, I removed the metallb annotation and added |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johnbelamaric 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 |
Well, I haven't actually looked into this. But with OpenShift, I believe we wouldn't need metallb altogether. If the gitea service needs to be expose, it would have a Route (similar to Ingress), which would provide a FQDN for the service. |
I think those in the "inline" config get overwritten by whatever is in the secrets. |
Anyway, let's merge this for now but I think we will want to clean up if we create the |
/lgtm |
* Add missing gitea namespace Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> * Add doc for OpenShift Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> * Add gitea postgresql and gitea secret to kpt package Given the configuration is already hardcoded in the configuration, as defined [here](https://github.com/nephio-project/nephio-example-packages/blob/main/gitea/secret-gitea-inline-config.yaml#L21-L22), there is no point in asking the user to create these objects. Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> --------- Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
This PR introduce three changes: