-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from asalkeld/install-providers
Install providers
- Loading branch information
Showing
200 changed files
with
54,951 additions
and
17,052 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Cluster CAPI Operator | ||
|
||
The Cluster CAPI Operator manages the installation of the CAPI Operator and the provider | ||
resources that it requires. | ||
|
||
## Controllers | ||
|
||
- ClusterOperator Controller | ||
|
||
When the featuregate is DevPreviewNoUpgrade | ||
1. Install the CAPI Operator | ||
2. Install all the supported provider configmaps | ||
3. Install the CoreProvider and InfractureProvider CRs (with image overrides) | ||
|
||
## Updating manifests and assets | ||
|
||
- Import capi-operator and provider manifests: | ||
|
||
```sh | ||
$ make import-assets | ||
``` | ||
|
||
This command does 2 main things: | ||
1. get capi-operator configuration and moves the rbac resources to /manifests/ whilst | ||
placing the remainder in /assets/capi-operator/ | ||
It also replaces the default rbac with a smaller subset. | ||
2. use clusterctl to get the provider resources | ||
a. convert from cert-manager to service-ca | ||
b. place provider rbac resources in /manifests | ||
c. place all other resources in /assets/providers as configmaps (to be consumed by capi-operator) | ||
|
||
To update the version of a provider, edit hack/import-assets/providers.go and bump | ||
the versions as required. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: operator.cluster.x-k8s.io/v1alpha1 | ||
kind: CoreProvider | ||
metadata: | ||
creationTimestamp: null | ||
name: cluster-api | ||
namespace: openshift-cluster-api | ||
spec: | ||
fetchConfig: | ||
selector: | ||
matchLabels: | ||
provider.cluster.x-k8s.io/name: cluster-api | ||
provider.cluster.x-k8s.io/type: core | ||
version: v1.0.0 | ||
status: {} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: operator.cluster.x-k8s.io/v1alpha1 | ||
kind: InfrastructureProvider | ||
metadata: | ||
creationTimestamp: null | ||
name: aws | ||
namespace: openshift-cluster-api | ||
spec: | ||
fetchConfig: | ||
selector: | ||
matchLabels: | ||
provider.cluster.x-k8s.io/name: aws | ||
provider.cluster.x-k8s.io/type: infrastructure | ||
version: v0.7.0 | ||
status: {} |
Oops, something went wrong.