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

rename gocrane-io to gocrane #1

Merged
merged 2 commits into from
Nov 18, 2021
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
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ ifeq ($(GIT_DIFF), 1)
endif
BUILDDATE = $(shell date -u +'%Y-%m-%dT%H:%M:%SZ')

LDFLAGS := "-X github.com/gocrane-io/api/pkg/version.gitVersion=$(GIT_VERSION) \
-X github.com/gocrane-io/api/pkg/version.gitCommit=$(GIT_COMMIT_HASH) \
-X github.com/gocrane-io/api/pkg/version.gitTreeState=$(GIT_TREESTATE) \
-X github.com/gocrane-io/api/pkg/version.buildDate=$(BUILDDATE)"
LDFLAGS := "-X github.com/gocrane/api/pkg/version.gitVersion=$(GIT_VERSION) \
-X github.com/gocrane/api/pkg/version.gitCommit=$(GIT_COMMIT_HASH) \
-X github.com/gocrane/api/pkg/version.gitTreeState=$(GIT_TREESTATE) \
-X github.com/gocrane/api/pkg/version.buildDate=$(BUILDDATE)"

# Images management
REGISTRY?="ccr.ccs.tencentyun.com/kube-orm"
Expand Down
74 changes: 20 additions & 54 deletions artifacts/deploy/ensurance.crane.io_nodeqosensurancepolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
controller-gen.kubebuilder.io/version: v0.5.0
creationTimestamp: null
name: nodeqosensurancepolicies.ensurance.crane.io
spec:
Expand All @@ -19,51 +19,35 @@ spec:
- name: v1alpha1
schema:
openAPIV3Schema:
description: NodeQOSEnsurancePolicy is the Schema for the nodeqosensurancepolicies
API
description: NodeQOSEnsurancePolicy is the Schema for the nodeqosensurancepolicies 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'
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'
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: NodeQOSEnsurancePolicySpec defines the desired status of
NodeQOSEnsurancePolicy
description: NodeQOSEnsurancePolicySpec defines the desired status of NodeQOSEnsurancePolicy
properties:
labelSelector:
description: select nodes use labels
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements.
The requirements are ANDed.
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.
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.
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.
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.
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
Expand All @@ -75,30 +59,22 @@ spec:
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.
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
nodeQualityProbe:
description: node quality probe
properties:
httpGet:
description: currently supported CPU usage, CPU load, Memory Usage,
DiskIO
description: currently supported CPU usage, CPU load, Memory Usage, DiskIO
properties:
host:
description: Host name to connect to, defaults to the pod
IP. You probably want to set "Host" in httpHeaders instead.
description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
type: string
httpHeaders:
description: Custom headers to set in the request. HTTP allows
repeated headers.
description: Custom headers to set in the request. HTTP allows repeated headers.
items:
description: HTTPHeader describes a custom header to be
used in HTTP probes
description: HTTPHeader describes a custom header to be used in HTTP probes
properties:
name:
description: The header field name
Expand All @@ -115,13 +91,10 @@ spec:
description: Path to access on the HTTP server.
type: string
port:
description: Name or number of the port to access on the container.
Number must be in the range 1 to 65535. Name must be an
IANA_SVC_NAME.
description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
type: integer
scheme:
description: Scheme to use for connecting to the host. Defaults
to HTTP.
description: Scheme to use for connecting to the host. Defaults to HTTP.
type: string
required:
- port
Expand All @@ -133,17 +106,11 @@ spec:
description: Get node metric from local
properties:
localCacheTTL:
description: A Duration represents the elapsed time between
two instants as an int64 nanosecond count. The representation
limits the largest representable duration to approximately
290 years.
description: A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
format: int64
type: integer
maxHousekeepingInterval:
description: A Duration represents the elapsed time between
two instants as an int64 nanosecond count. The representation
limits the largest representable duration to approximately
290 years.
description: A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.
format: int64
type: integer
type: object
Expand All @@ -158,8 +125,7 @@ spec:
- labelSelector
type: object
status:
description: NodeQOSEnsurancePolicyStatus defines the observed status
of NodeQOSEnsurancePolicy
description: NodeQOSEnsurancePolicyStatus defines the observed status of NodeQOSEnsurancePolicy
type: object
required:
- spec
Expand Down
58 changes: 16 additions & 42 deletions artifacts/deploy/ensurance.crane.io_podqosensurancepolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
controller-gen.kubebuilder.io/version: v0.5.0
creationTimestamp: null
name: podqosensurancepolicies.ensurance.crane.io
spec:
Expand All @@ -19,18 +19,13 @@ spec:
- name: v1alpha1
schema:
openAPIV3Schema:
description: PodQOSEnsurancePolicy is the Schema for the podqosensurancepolicies
API
description: PodQOSEnsurancePolicy is the Schema for the podqosensurancepolicies 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'
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'
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
Expand All @@ -41,28 +36,18 @@ spec:
description: select pod used labels
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements.
The requirements are ANDed.
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.
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.
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.
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.
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
Expand All @@ -74,11 +59,7 @@ spec:
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.
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
qualityProbe:
Expand All @@ -87,15 +68,12 @@ spec:
httpGet:
properties:
host:
description: Host name to connect to, defaults to the pod
IP. You probably want to set "Host" in httpHeaders instead.
description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.
type: string
httpHeaders:
description: Custom headers to set in the request. HTTP allows
repeated headers.
description: Custom headers to set in the request. HTTP allows repeated headers.
items:
description: HTTPHeader describes a custom header to be
used in HTTP probes
description: HTTPHeader describes a custom header to be used in HTTP probes
properties:
name:
description: The header field name
Expand All @@ -112,13 +90,10 @@ spec:
description: Path to access on the HTTP server.
type: string
port:
description: Name or number of the port to access on the container.
Number must be in the range 1 to 65535. Name must be an
IANA_SVC_NAME.
description: Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
type: integer
scheme:
description: Scheme to use for connecting to the host. Defaults
to HTTP.
description: Scheme to use for connecting to the host. Defaults to HTTP.
type: string
required:
- port
Expand All @@ -135,8 +110,7 @@ spec:
type: object
type: object
status:
description: PodQOSEnsurancePolicyStatus defines the observed status of
PodQOSEnsurancePolicy
description: PodQOSEnsurancePolicyStatus defines the observed status of PodQOSEnsurancePolicy
type: object
required:
- spec
Expand Down
Loading