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

✨ add clusterclass #55

Closed
wants to merge 1 commit into from
Closed

Conversation

farodin91
Copy link
Contributor

@farodin91 farodin91 commented Feb 20, 2024

What is the purpose of this pull request/Why do we need it?

We use clusterclass to automate updates and improve cluster handling.

Description of changes:

Add support for clusterclass

Checklist:

Copy link

sonarcloud bot commented Feb 20, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@farodin91 farodin91 force-pushed the add-preparation-of-clusterclass branch 2 times, most recently from fdd3e8b to 5f0cb76 Compare April 8, 2024 08:12
@farodin91 farodin91 marked this pull request as ready for review April 8, 2024 08:13
@farodin91 farodin91 force-pushed the add-preparation-of-clusterclass branch from 5f0cb76 to 844e1f8 Compare April 8, 2024 09:55
Copy link

sonarcloud bot commented Apr 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@lubedacht
Copy link
Contributor

The PR lacks a bit of context in regards to your intentions. The title says preparations.. so is there a follow-up PR intended?

If not we might also want to have a template and maybe a bit of docs/description in the PR so that people are well informed :)

For instance like this https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/blob/main/templates/clusterclass-template.yaml

@farodin91 farodin91 force-pushed the add-preparation-of-clusterclass branch 2 times, most recently from f7ff025 to 3559cca Compare May 13, 2024 13:58
@farodin91 farodin91 force-pushed the add-preparation-of-clusterclass branch from 3559cca to e58788a Compare May 13, 2024 13:58
Copy link

sonarcloud bot commented May 13, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@farodin91 farodin91 changed the title add preparation of clusterclass ✨ add preparation of clusterclass May 13, 2024
@farodin91 farodin91 changed the title ✨ add preparation of clusterclass ✨ add clusterclass May 13, 2024
@farodin91
Copy link
Contributor Author

i tested this with clusterctl alpha topology plan -f ./templates/clusterclass-template.yaml -f ./templates/cluster-template-topology.yaml -o output/

@farodin91
Copy link
Contributor Author

@lubedacht How to start the review process?

I don't have yet an idea to add a test.

Comment on lines +41 to +46
valueFrom:
template: |
- name: capv
sshAuthorizedKeys:
- '{{ .sshKey }}'
sudo: ALL=(ALL) NOPASSWD:ALL
Copy link
Contributor

Choose a reason for hiding this comment

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

In our base template the user is root. Also applies to the other patches in the file

type: Opaque
stringData:
token: "${IONOS_TOKEN}"
apiURL: "${IONOS_API_URL:-https://api.ionos.com/cloudapi/v6}"
Copy link
Contributor

Choose a reason for hiding this comment

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

We aim to have newlines at the end of files.
Usually in your IDE you have a setting to append newlines when you save a file. I can recommend that setting.

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 tend to work with editorconfig everywhere.

Comment on lines +15 to +16
- name: sshKey
value: '${VSPHERE_SSH_AUTHORIZED_KEY}'
Copy link
Contributor

Choose a reason for hiding this comment

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

copy pasta.
Also we can provide multiple ssh keys with ${IONOSCLOUD_MACHINE_SSH_KEYS}. So you might want to use the plural form for the variable

@farodin91
Copy link
Contributor Author

Replaced by #141

@farodin91 farodin91 closed this Jun 3, 2024
@jriedel-ionos jriedel-ionos deleted the add-preparation-of-clusterclass branch June 24, 2024 09:24
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