Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator anjuna-operator (1.0.0) #5099

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: anjuna-operator-anjunaruntime-editor-role
rules:
- apiGroups:
- anjuna.io
resources:
- anjunaruntimes
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- anjuna.io
resources:
- anjunaruntimes/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: anjuna-operator-anjunaruntime-viewer-role
rules:
- apiGroups:
- anjuna.io
resources:
- anjunaruntimes
verbs:
- get
- list
- watch
- apiGroups:
- anjuna.io
resources:
- anjunaruntimes/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
control-plane: controller-manager
name: anjuna-operator-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 69bf4d38.anjuna.io
kind: ConfigMap
metadata:
name: anjuna-operator-manager-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: anjuna-operator-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
creationTimestamp: null
name: anjuna-operator-privileged-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: anjuna-operator-privileged-role
subjects:
- kind: ServiceAccount
name: anjuna-cloud-adaptor
- kind: ServiceAccount
name: anjuna-operator-controller-manager
namespace: anjuna-operator

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.1
creationTimestamp: null
name: anjunaruntimes.anjuna.io
spec:
group: anjuna.io
names:
kind: AnjunaRuntime
listKind: AnjunaRuntimeList
plural: anjunaruntimes
shortNames:
- anjuna
singular: anjunaruntime
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
description: AnjunaRuntime is the Schema for the anjunaruntimes API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: AnjunaRuntimeSpec defines the desired state of AnjunaRuntime
properties:
nodeSelector:
description: |-
nodeSelector is used to select the worker nodes to deploy the runtime
if not specified, all worker nodes are selected
nullable: true
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements.
The requirements are ANDed.
items:
description: |-
A label selector requirement is a selector that contains values, a key, and an operator that
relates the key and values.
properties:
key:
description: key is the label key that the selector applies
to.
type: string
operator:
description: |-
operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: |-
values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch.
items:
type: string
type: array
x-kubernetes-list-type: atomic
required:
- key
- operator
type: object
type: array
x-kubernetes-list-type: atomic
matchLabels:
additionalProperties:
type: string
description: |-
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
runtimeImage:
type: string
required:
- runtimeImage
type: object
status:
description: AnjunaRuntimeStatus defines the observed state of AnjunaRuntime
properties:
installationStatus:
description: InstallationStatus reflects the status of the ongoing
runtime installation
properties:
completed:
description: Completed reflects the status of nodes that have
completed the installation
properties:
completedNodesCount:
description: CompletedNodesCount reflects the number of nodes
that have completed install operation
type: integer
completedNodesList:
description: CompletedNodesList reflects the list of nodes
that have completed install operation
items:
type: string
type: array
type: object
failed:
description: Failed reflects the status of nodes that have failed
installation
properties:
failedNodesCount:
description: FailedNodesCount reflects the number of nodes
that have failed installation
type: integer
failedNodesList:
description: FailedNodesList reflects the list of nodes that
have failed installation
items:
description: FailedNodeStatus holds the name and the error
message of the failed node
properties:
error:
description: Error message of the failed node reported
by the installation daemon
type: string
name:
description: Name of the failed node
type: string
required:
- error
- name
type: object
type: array
type: object
inProgress:
description: InProgress reflects the status of nodes that are
in the process of installation
properties:
binariesInstallNodesList:
items:
type: string
type: array
inProgressNodesCount:
description: InProgressNodesCount reflects the number of nodes
that are in the process of installation
type: integer
type: object
type: object
runtimeClass:
description: RuntimeClass is the name of the runtime class as used
in container runtime configuration
type: string
totalNodesCount:
description: TotalNodesCounts is the total number of worker nodes
targeted by this CR
type: integer
unInstallationStatus:
description: UnInstallationStatus reflects the status of the ongoing
runtime uninstallation
properties:
completed:
description: Completed reflects the status of nodes that have
completed the uninstallation operation
properties:
completedNodesCount:
description: CompletedNodesCount reflects the number of nodes
that have completed install operation
type: integer
completedNodesList:
description: CompletedNodesList reflects the list of nodes
that have completed install operation
items:
type: string
type: array
type: object
failed:
description: Failed reflects the status of nodes that have failed
uninstallation
properties:
failedNodesCount:
description: FailedNodesCount reflects the number of nodes
that have failed installation
type: integer
failedNodesList:
description: FailedNodesList reflects the list of nodes that
have failed installation
items:
description: FailedNodeStatus holds the name and the error
message of the failed node
properties:
error:
description: Error message of the failed node reported
by the installation daemon
type: string
name:
description: Name of the failed node
type: string
required:
- error
- name
type: object
type: array
type: object
inProgress:
description: InProgress reflects the status of nodes that are
in the process of uninstallation
properties:
binariesUninstallNodesList:
items:
type: string
type: array
inProgressNodesCount:
description: InProgressNodesCount reflects the number of nodes
that are in the process of uninstallation
type: integer
type: object
type: object
upgradeStatus:
description: Upgradestatus reflects the status of the ongoing runtime
upgrade
type: object
required:
- runtimeClass
- totalNodesCount
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
storedVersions: null
17 changes: 17 additions & 0 deletions operators/anjuna-operator/1.0.0/metadata/annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
annotations:
# Core bundle annotations.
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
operators.operatorframework.io.bundle.manifests.v1: manifests/
operators.operatorframework.io.bundle.metadata.v1: metadata/
operators.operatorframework.io.bundle.package.v1: anjuna-operator
operators.operatorframework.io.bundle.channels.v1: alpha
operators.operatorframework.io.metrics.builder: operator-sdk-v1.36.1
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3

# Annotations for testing.
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
operators.operatorframework.io.test.config.v1: tests/scorecard/

# OpenShift Support Versions
com.redhat.openshift.versions: v4.14-v4.17
Loading