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 [N] [CI] instaslice-operator (0.0.1) #5184

Merged
merged 4 commits into from
Oct 31, 2024
Merged
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,185 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: instaslice-operator-system/instaslice-operator-serving-cert
controller-gen.kubebuilder.io/version: v0.14.0
creationTimestamp: null
name: instaslices.inference.codeflare.dev
spec:
group: inference.codeflare.dev
names:
kind: Instaslice
listKind: InstasliceList
plural: instaslices
singular: instaslice
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Instaslice is the Schema for the instaslices 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: InstasliceSpec defines the desired state of Instaslice
properties:
MigGPUUUID:
additionalProperties:
type: string
type: object
allocations:
additionalProperties:
description: Define the struct for allocation details
properties:
allocationStatus:
enum:
- deleted
- deleting
- ungated
- creating
- created
type: string
cpu:
format: int64
type: integer
gpuUUID:
type: string
memory:
format: int64
type: integer
namespace:
type: string
nodename:
type: string
podName:
type: string
podUUID:
type: string
profile:
type: string
resourceIdentifier:
type: string
size:
format: int32
type: integer
start:
format: int32
type: integer
required:
- allocationStatus
- cpu
- gpuUUID
- memory
- namespace
- nodename
- podName
- podUUID
- profile
- resourceIdentifier
- size
- start
type: object
type: object
cpuonnodeatboot:
format: int64
type: integer
memoryonnodeatboot:
format: int64
type: integer
migplacement:
items:
properties:
ciProfileid:
type: integer
ciengprofileid:
type: integer
giprofileid:
type: integer
placements:
items:
properties:
size:
type: integer
start:
type: integer
required:
- size
- start
type: object
type: array
profile:
type: string
required:
- ciProfileid
- ciengprofileid
- giprofileid
type: object
type: array
prepared:
additionalProperties:
description: Define the struct for allocation details
properties:
ciinfo:
format: int32
type: integer
giinfo:
format: int32
type: integer
parent:
type: string
podUUID:
description: Do we need POD UID here?
type: string
profile:
type: string
size:
format: int32
type: integer
start:
format: int32
type: integer
required:
- ciinfo
- giinfo
- parent
- podUUID
- profile
- size
- start
type: object
type: object
type: object
status:
description: InstasliceStatus defines the observed state of Instaslice
properties:
processed:
type: boolean
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
storedVersions: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: instaslice-operator
app.kubernetes.io/instance: controller-manager-metrics-service
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: service
app.kubernetes.io/part-of: instaslice-operator
control-plane: controller-manager
name: instaslice-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: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: instaslice-operator
app.kubernetes.io/instance: metrics-reader
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: clusterrole
app.kubernetes.io/part-of: instaslice-operator
name: instaslice-operator-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: webhook
app.kubernetes.io/created-by: instaslice-operator
app.kubernetes.io/instance: webhook-service
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: service
app.kubernetes.io/part-of: instaslice-operator
name: instaslice-operator-webhook-service
spec:
ports:
- port: 443
protocol: TCP
targetPort: 9443
selector:
control-plane: controller-manager
status:
loadBalancer: {}

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions operators/instaslice-operator/0.0.1/metadata/annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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: instaslice-operator
operators.operatorframework.io.bundle.channels.v1: alpha
operators.operatorframework.io.metrics.builder: operator-sdk-v1.34.1
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v4

# Annotations for testing.
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
operators.operatorframework.io.test.config.v1: tests/scorecard/
70 changes: 70 additions & 0 deletions operators/instaslice-operator/0.0.1/tests/scorecard/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
apiVersion: scorecard.operatorframework.io/v1alpha3
kind: Configuration
metadata:
name: config
stages:
- parallel: true
tests:
- entrypoint:
- scorecard-test
- basic-check-spec
image: quay.io/operator-framework/scorecard-test:v1.34.1
labels:
suite: basic
test: basic-check-spec-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-bundle-validation
image: quay.io/operator-framework/scorecard-test:v1.34.1
labels:
suite: olm
test: olm-bundle-validation-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-crds-have-validation
image: quay.io/operator-framework/scorecard-test:v1.34.1
labels:
suite: olm
test: olm-crds-have-validation-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-crds-have-resources
image: quay.io/operator-framework/scorecard-test:v1.34.1
labels:
suite: olm
test: olm-crds-have-resources-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-spec-descriptors
image: quay.io/operator-framework/scorecard-test:v1.34.1
labels:
suite: olm
test: olm-spec-descriptors-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-status-descriptors
image: quay.io/operator-framework/scorecard-test:v1.34.1
labels:
suite: olm
test: olm-status-descriptors-test
storage:
spec:
mountPath: {}
storage:
spec:
mountPath: {}
7 changes: 7 additions & 0 deletions operators/instaslice-operator/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# Use `replaces-mode` or `semver-mode`. Once you switch to `semver-mode`, there is no easy way back.
updateGraph: semver-mode
addReviewers: true
reviewers:
- mamy-CS
- asm582
Loading