-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces some major refactoring to make installation easier. * Get rid of the `manifests` directory and handle all configuration through Kustomize. * Add a deployment (and all supporting resources) for the operator itself. * Introduce reasonable defaults for discovering the control plane image to use based on the operator pod (with the ability to override with a flag). * Abstract away the release image metadata handling and integrate it with Kustomize. For now all guest clusters will use same release version as the management cluster, but the commit also also cleans up some of the plugin points to help us improve in a followup. * Clean up and improve the Makefile to be the entrypoint for all of these tasks. * Simplify the installation procedures in the README.
- Loading branch information
1 parent
a6c1914
commit d91566c
Showing
34 changed files
with
412 additions
and
512 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ bin | |
.envrc | ||
|
||
.kube | ||
|
||
config/hypershift-operator/release-info.json |
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,13 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- cluster.x-k8s.io_clusters.yaml | ||
- cluster.x-k8s.io_machinesets.yaml | ||
- cluster.x-k8s.io_machines.yaml | ||
- cluster.x-k8s.io_machinedeployments.yaml | ||
- cluster.x-k8s.io_machinehealthchecks.yaml | ||
- manager-serviceaccount.yaml | ||
- manager-clusterrole.yaml | ||
- manager-clusterrolebinding.yaml | ||
- manager-deployment.yaml |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,35 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- hypershift.openshift.io_openshiftclusters.yaml | ||
- hypershift.openshift.io_hostedcontrolplanes.yaml | ||
- hypershift.openshift.io_guestclusters.yaml | ||
- hypershift.openshift.io_nodepools.yaml | ||
- operator-namespace.yaml | ||
- operator-serviceaccount.yaml | ||
- operator-clusterrole.yaml | ||
- operator-clusterrolebinding.yaml | ||
- operator-deployment.yaml | ||
|
||
configMapGenerator: | ||
- name: release-info | ||
namespace: hypershift | ||
files: | ||
- release-info.json | ||
|
||
patchesStrategicMerge: | ||
- |- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: guestclusters.hypershift.openshift.io | ||
labels: | ||
cluster.x-k8s.io/v1alpha4: v1alpha1 | ||
- |- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: hostedcontrolplanes.hypershift.openshift.io | ||
labels: | ||
cluster.x-k8s.io/v1alpha4: v1alpha1 |
Oops, something went wrong.