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

Test5 Setup #1

Merged
merged 45 commits into from
Dec 4, 2024
Merged

Test5 Setup #1

merged 45 commits into from
Dec 4, 2024

Conversation

sw360cab
Copy link
Contributor

Full setup of Test5 based on:

  • AWS Cloud provider
  • Kubernetes scheduler

Using the following tools:

  • kubectl
  • Kustomize
  • Skaffold

Copy link

@mazzy89 mazzy89 left a comment

Choose a reason for hiding this comment

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

Kustomize can be DRYer.

The namespace is repeated in every file same as the labels. In Kustomize it can be defined in the upper file kustomization.yaml together with commonLabels to group resources having the same labels.

@sw360cab
Copy link
Contributor Author

sw360cab commented Dec 3, 2024

Kustomize can be DRYer.

The namespace is repeated in every file same as the labels. In Kustomize it can be defined in the upper file kustomization.yaml together with commonLabels to group resources having the same labels.

Thanks, I didn't pay attention to that.

Actually I had them explicitly in any file because I lately passed to a fully kustomize-based configuration.
I will work on improve this aspect for the next versions.

@sw360cab sw360cab changed the title [WIP] Test5 Setup Test5 Setup Dec 3, 2024
@sw360cab sw360cab marked this pull request as ready for review December 3, 2024 06:44
Copy link
Member

@zivkovicmilos zivkovicmilos left a comment

Choose a reason for hiding this comment

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

👏 👏 👏

Perhaps non-standard, I'm pinging @n2p5 for his thoughts on the overall structure 🙏

doc/k8s/node_reservation.md Outdated Show resolved Hide resolved
# - role: worker
Copy link
Member

Choose a reason for hiding this comment

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

Leftover?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

adding comment explaining what is this for

Comment on lines +20 to +23
"address": "g1gpk4kevmhgcah55k00suf44z4u6h09aspasnsn",
"pub_key": {
"@type": "/tm.PubKeyEd25519",
"value": "ShW4HF5UhY7jB42xebdKRdjnqRKoxhZIvSvybe4aaQM="
Copy link
Member

Choose a reason for hiding this comment

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

Where is the corresponding key for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct.
The genesis refers to a ref validator (under ../validator folder) whose secrets were removed to avoid secrets leaking.
However since the validator has just dev purposes his secrets can be committed.

# mountPath: /gnoroot/gnoland-genesis
- -data-dir=/gnoroot/gnoland-data/ # left as reference
- -genesis=/gnoroot/gnoland-data/genesis.json # loaded from init container
- -log-level=info
Copy link
Member

Choose a reason for hiding this comment

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

Heavily recommend we use debug. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a leftover to reduce load on local instance

k8s/core/helm/README.md Outdated Show resolved Hide resolved
// Executes main logic
func execApiCallCms(_ context.Context, cfg *cmd.ApiCallerCfg) error {
if cfg.AuthToken == "" {
fmt.Println("Error: Missing required argument: BetterStack Auth Token.")
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about using the gnolang/gno logger / commands IO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please ignore all this bettestack related code...
It has already be fixed but I want it to be handled and reviewed in a total separated PR

*gnoService.ApplyPrefix(cfg.MonitorPrefixName))

if err != nil { // silently catch error
fmt.Println("%w", err)
Copy link
Member

Choose a reason for hiding this comment

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

We can improve this print

Comment on lines +18 to +23
switch concretePayload := payload.(type) {
case GnoMonitorPayload, CreateMonitorGroupPayload, CreateMonitorPayload:
jsonBody, err = json.Marshal(concretePayload)
default:
jsonBody, err = json.Marshal(payload)
}
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need the switch?

endpoint := fmt.Sprintf("%s%s", bsapi.BaseUrl, api.Endpoint)
var jsonBody []byte
switch api.Method {
case "POST":
Copy link
Member

Choose a reason for hiding this comment

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

We can use the http package constants

@@ -0,0 +1,24 @@
package betterstatus
Copy link
Member

Choose a reason for hiding this comment

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

We can improve the go packages in this PR, but this isn't the point of the PR :)

I'm fine with merging them as-is, even if they can use a cleanup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

4 participants