arista-ceoslab-operator

command module
v2.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

Arista cEOS-lab Operator

The Arista Networks cEOS-lab operator manages containerized EOS instances in k8s clusters managed by KNE. It is based on operator-sdk.

Usage

Deploy the manifest:

kubectl apply -f config/kustomized/manifest.yaml

This should be equivalent to -k config/bases. However, unit tests are run against the manifest so this is preferred.

Development Notes

Testing

The operator uses kuttl for testing. To run the test suite, make sure images of the operator, cEOS-lab, and the init container are tagged as named in kuttl-test.yaml in the repository's root. Kuttl can be used either through its binary or kubectl kuttl.

As mentioned above, these tests use the manifest file in config/kustomized to stage the test cluster (kuttl does not support kustomize). If relevant changes are made to the kustomization files or Makefile, for instance, when changing the version/tag or image name, this manifest should be updated by make manifests.

Versioning

The git tag should match the project version defined in the Makefile, the image tag present in the manifest, and the image tag in kuttl-test.yaml.

How it works

This project aims to follow the Kubernetes Operator pattern

It uses Controllers which provides a reconcile function responsible for synchronizing resources untile the desired state is reached on the cluster

License

Copyright 2022 Arista Networks

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the ceoslab v1alpha1 API group +kubebuilder:object:generate=true +groupName=ceoslab.arista.com
Package v1alpha1 contains API Schema definitions for the ceoslab v1alpha1 API group +kubebuilder:object:generate=true +groupName=ceoslab.arista.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL