-
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.
Dynamically discover release image metadata
- Dynamically discover release image metadata by extracting the serialized imagestream from the image - Use object references for secrets in the OpenShiftCluster API - Remove base domain from the API and instead compute it from the management cluster DNS config - Add an experimental default cluster generator using the Kustomize workflow - Clean up some of the build machinery
- Loading branch information
1 parent
053d91b
commit 99d72d8
Showing
25 changed files
with
391 additions
and
197 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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: hypershift.openshift.io/v1alpha1 | ||
kind: OpenShiftCluster | ||
metadata: | ||
name: example | ||
spec: | ||
release: | ||
image: quay.io/openshift-release-dev/ocp-release:4.6.7-x86_64 | ||
initialComputeReplicas: 1 | ||
serviceCIDR: 172.30.0.0/16 | ||
podCIDR: 10.128.0.0/14 | ||
pullSecret: | ||
name: pull-secret | ||
sshKey: | ||
name: ssh-key |
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,4 @@ | ||
apiVersion: hypershiftplugin | ||
kind: ImageDefaulter | ||
metadata: | ||
name: imagedefaulter |
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,22 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- cluster.yaml | ||
|
||
transformers: | ||
- imagedefaulter-plugin.yaml | ||
|
||
secretGenerator: | ||
- name: pull-secret | ||
options: | ||
disableNameSuffixHash: true | ||
files: | ||
- .dockerconfigjson=pull-secret | ||
type: Opaque | ||
- name: ssh-key | ||
options: | ||
disableNameSuffixHash: true | ||
files: | ||
- id_rsa.pub=ssh-key | ||
type: Opaque |
6 changes: 6 additions & 0 deletions
6
config/example-cluster/plugin/hypershiftplugin/imagedefaulter/ImageDefaulter
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,6 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
FROM="quay.io/openshift-release-dev/ocp-release:4.6.7-x86_64" | ||
TO="$(oc get clusterversion/version -o jsonpath='{.status.desired.image}')" | ||
cat | sed s#$FROM#$TO#g |
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
Oops, something went wrong.