Skip to content

✨ Create operator CRs based on helm values#191

Merged
k8s-ci-robot merged 5 commits into
kubernetes-sigs:mainfrom
alexander-demicev:chart
Jul 21, 2023
Merged

✨ Create operator CRs based on helm values#191
k8s-ci-robot merged 5 commits into
kubernetes-sigs:mainfrom
alexander-demicev:chart

Conversation

@alexander-demicev

@alexander-demicev alexander-demicev commented Jul 17, 2023

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR improves the quickstart installation process by adding a similar to clusterctl init functionality based on helm:

helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system --set infrastructure=docker:v1.4.2  --wait # core Cluster API with kubeadm bootstrap and control plane providers will also be installed 
helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system —set infrastructure=docker,azure  --wait # core Cluster API with kubeadm bootstrap and control plane providers will also be installed 
helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system —set infrastructure=docker,azure  --wait # core Cluster API with kubeadm bootstrap and control plane providers will also be installed 
helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system —set infrastructure="capd-custom-ns:docker:v1.4.2;capz-custom-ns:azure:v1.10.0"  --wait # core Cluster API with kubeadm bootstrap and control plane providers will also be installed 
helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system --set core=cluster-api:v1.4.2 --set controlPlane=kubeadm:v1.4.2 --set bootstrap=kubeadm:v1.4.2  --set infrastructure=docker:v1.4.2  --wait

I also added some tests to verify that we don't break it in the future. These tests will be a part of e2e suite and require a new kind cluster because helm validates against a running cluster and having one cluster will cause problems.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #130

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 17, 2023
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jul 17, 2023
@Fedosin

Fedosin commented Jul 18, 2023

Copy link
Copy Markdown
Contributor

/assign

@Fedosin Fedosin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/approve

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Fedosin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 18, 2023

@furkatgofurov7 furkatgofurov7 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great addition, thanks for working on this!

Only one small nit:

Comment thread docs/README.md Outdated
Comment on lines +97 to +99
```bash
helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system —set infrastructure=docker,azure --wait # core Cluster API with kubeadm bootstrap and control plane providers will also be installed
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is a duplicate of lines 93-95

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@furkatgofurov7 furkatgofurov7 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 21, 2023
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 71767bdcb1affb1d00b649d02cff016be4bfe7cb

@k8s-ci-robot k8s-ci-robot merged commit 7fa6318 into kubernetes-sigs:main Jul 21, 2023
@alexander-demicev alexander-demicev deleted the chart branch July 24, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm chart support more comprehensive installation

4 participants