Skip to content

Commit

Permalink
Test and cleanup sample directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan committed Oct 3, 2024
1 parent a3cddba commit 1cb9c4c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 27 deletions.
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: {}

0 comments on commit 1cb9c4c

Please sign in to comment.