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

Refactor of the Developer Environment setup script #43

Merged
merged 5 commits into from May 13, 2024

Conversation

kispaljr
Copy link
Contributor

@kispaljr kispaljr commented May 8, 2024

Includes the following changes:

  • remove edge1 cluster
  • ensure that Gitea's nodePort matches with the port that is forwarded to the host in the kind cluster's config
  • the following values are turned into parameters:
    • name of kind cluster,
    • name of git repo,
    • Gitea external IP
  • script made idempotent (you can rerun it without any cleanup)
  • script exits on error
  • Gitea install package is manipulated by KRM functions instead of sed
  • check if git user.name config is set
  • bugfix: wait for Deployment availability instead of Pod readiness

- script made idempotent (you can rerun it without any cleanup)
- script exits on error
- the following values are turned into a parameter: name of kind cluster, name of git repo, Gitea external IP
- Gitea install package is manipulated by KRM functions instead of sed
…ort that is forwarded to the host in the kind cluster's config
… readiness

(the later fails if the pod hasn't been created yet)
curl -s https://raw.githubusercontent.com/nephio-project/porch/main/docs/tutorials/starting-with-porch/kind_management_cluster.yaml | \
kind create cluster --config=-

curl -s https://raw.githubusercontent.com/nephio-project/porch/main/docs/tutorials/starting-with-porch/kind_edge1_cluster.yaml | \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a major issue but I think the orig guide, which this is an extension of is using the egde1 cluster.
https://github.com/nephio-project/porch/tree/main/docs/tutorials/starting-with-porch#deploying-a-blueprint-onto-a-workload-cluster

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I was a bit uncertain regarding removing edge1. My rationale was that the "Starting with Porch" tutorial is more like a "User's Guide", while this script belongs to the "Setup the Developer Environment" guide. And I think edge1 is not needed to develop and test porch, it belongs more to ConfigSync.
All-in-all I can add back edge1 if we think there is need for it during development.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe adding back the edge1 git repo only, but not the kind cluster would also make sense.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ye I guess either way the README guides will need to be updated a bit.
May be best to get @liamfallon direction on it when he is back on 13/05

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am planning to update the text of the tutorial as part of #44

Copy link
Member

@liamfallon liamfallon left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks for cleaning up the setup @kispaljr

@liamfallon
Copy link
Member

/lgtm
/approve

Copy link
Contributor

nephio-prow bot commented May 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kispaljr, liamfallon

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

@nephio-prow nephio-prow bot added the approved label May 13, 2024
@kispaljr kispaljr removed the request for review from s3wong May 13, 2024 15:46
@nephio-prow nephio-prow bot merged commit 92c14e8 into nephio-project:main May 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants