Skip to content

Commit

Permalink
Merge pull request #105 from appuio/improve-docs
Browse files Browse the repository at this point in the history
Various documentation fixes
  • Loading branch information
bastjan authored Oct 3, 2024
2 parents 86831b5 + 1cb9c4c commit 16baf6b
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 30 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ You’ll need a Kubernetes cluster to run against. You can use [KIND](https://si

```sh
# To simulate an OpenShift cluster
kubectl apply -f https://raw.githubusercontent.com/openshift/api/master/config/v1/0000_00_cluster-version-operator_01_clusterversion.crd.yaml
kubectl apply -f https://raw.githubusercontent.com/openshift/machine-config-operator/master/install/0000_80_machine-config-operator_01_machineconfigpool.crd.yaml
kubectl apply -f https://raw.githubusercontent.com/openshift/api/refs/heads/release-4.16/config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_01_clusterversions-Default.crd.yaml
kubectl apply -f https://raw.githubusercontent.com/openshift/api/refs/heads/release-4.16/machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfigpools-Default.crd.yaml

# interactive cluster version operator simulation
go run ./sim
Expand Down
20 changes: 12 additions & 8 deletions config/samples/managedupgrade_v1beta1_clusterversion.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
apiVersion: managedupgrade.appuio.io/v1beta1
kind: ClusterVersion
metadata:
labels:
app.kubernetes.io/name: clusterversion
app.kubernetes.io/instance: clusterversion-sample
app.kubernetes.io/part-of: openshift-upgrade-controller
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: openshift-upgrade-controller
name: clusterversion-sample
name: version
spec:
# TODO(user): Add fields here
overlays:
- from: '2024-08-08T03:00:00Z'
overlay:
spec:
channel: stable-4.15
template:
spec:
channel: stable-4.14
clusterID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
upstream: 'https://api.openshift.com/api/upgrades_info/v1/graph'
status: {}
7 changes: 0 additions & 7 deletions config/samples/managedupgrade_v1beta1_upgradeconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
apiVersion: managedupgrade.appuio.io/v1beta1
kind: UpgradeConfig
metadata:
labels:
app.kubernetes.io/name: upgradeconfig
app.kubernetes.io/instance: upgradeconfig-sample
app.kubernetes.io/part-of: openshift-upgrade-controller
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: openshift-upgrade-controller
name: upgradeconfig-sample
namespace: appuio-openshift-upgrade-controller
spec:
maxSchedulingDelay: 1h
maxUpgradeStartDelay: 1h
Expand Down
6 changes: 0 additions & 6 deletions config/samples/managedupgrade_v1beta1_upgradejob.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
apiVersion: managedupgrade.appuio.io/v1beta1
kind: UpgradeJob
metadata:
labels:
app.kubernetes.io/name: upgradejob
app.kubernetes.io/instance: upgradejob-sample
app.kubernetes.io/part-of: openshift-upgrade-controller
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: openshift-upgrade-controller
name: upgradejob-sample
spec:
# TODO(user): Add fields here
6 changes: 0 additions & 6 deletions config/samples/managedupgrade_v1beta1_upgradejobhook.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
apiVersion: managedupgrade.appuio.io/v1beta1
kind: UpgradeJobHook
metadata:
labels:
app.kubernetes.io/name: upgradejobhook
app.kubernetes.io/instance: upgradejobhook-sample
app.kubernetes.io/part-of: openshift-upgrade-controller
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: openshift-upgrade-controller
name: upgradejobhook-sample
spec:
events:
Expand Down
10 changes: 10 additions & 0 deletions config/samples/managedupgrade_v1beta1_upgradesuspensionwindow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: managedupgrade.appuio.io/v1beta1
kind: UpgradeSuspensionWindow
metadata:
name: upgradesuspensionwindow-sample
spec:
start: "2024-10-08T08:00:00Z"
end: "2034-10-08T08:00:00Z"
reason: "I'm tired of upgrades"
configSelector: {}
jobSelector: {}
2 changes: 1 addition & 1 deletion controllers/upgradesuspensionwindow_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
managedupgradev1beta1 "github.com/appuio/openshift-upgrade-controller/api/v1beta1"
)

// UpgradeSuspensionWindowReconciler reconciles a UpgradeConfig object
// UpgradeSuspensionWindowReconciler reconciles a UpgradeSuspensionWindow object
type UpgradeSuspensionWindowReconciler struct {
client.Client
Scheme *runtime.Scheme
Expand Down

0 comments on commit 16baf6b

Please sign in to comment.