Skip to content

stolostron/maintenance-window

Repository files navigation

Maintenance Window Operator

Operator for managing maintenance windows in ACM

Prerequisites

  • Go v1.17+
  • kubectl 1.19+
  • Kubebuilder v3.3.0
  • Docker
  • Connection to an existing Kubernetes cluster

Installation

Before deploying, the CRDs need to be installed onto the cluster.

make install

Outside the Cluster

The operator can be run locally against the configured Kubernetes cluster in ~/.kube/config with the following command:

make run

Inside the Cluster

The operator can also run inside the cluster as a Deployment. To do that first build the container image and push to an accessible image registry:

  1. Build the image:
    make docker-build IMG=<registry>/<imagename>:<tag>
  2. Push the image:
    make docker-push IMG=<registry>/<imagename>:<tag>
  3. Deploy the Operator:
    make deploy IMG=<registry>/<imagename>:<tag>

MaintenanceWindow CRD

apiVersion: window.open-cluster-management.io/v1alpha1
kind: MaintenanceWindow
metadata:
  name: test
spec:
  startDate: "2022-04-05"
  startTime: "12:05PM"
  duration: 60
  timezone: CET
  changeScope: all
  changeType: ClusterLifeCycle

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published