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

Improve status conditions #47

Merged
merged 28 commits into from
Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5f897ef
Improve status conditions
khaosdoctor Feb 4, 2021
cf89181
refactoring typed Kubernetes clients out
arschles Feb 11, 2021
5808ae1
finishing delete logic
arschles Feb 11, 2021
c86ba10
removing now-unused code
arschles Feb 11, 2021
76218e7
removing commented unused code
arschles Feb 11, 2021
8d12273
fixing lint error
arschles Feb 11, 2021
ac676cc
Merge branch 'main' into improve-conditions
arschles Feb 12, 2021
5c642c5
Delete test file
khaosdoctor Feb 12, 2021
a3cfd98
Update deployment client
khaosdoctor Feb 12, 2021
47a5bab
Merge branch 'improve-conditions' of github.com:khaosdoctor/http-add-…
khaosdoctor Feb 12, 2021
6cd2585
Update scaled object client
khaosdoctor Feb 12, 2021
d5acebc
Add fix notation
khaosdoctor Feb 12, 2021
fddcdee
Move FIX to TODO
khaosdoctor Feb 12, 2021
870daeb
Add context to requestCounts
khaosdoctor Feb 12, 2021
dac4b9b
Adding an FAQ (#71)
arschles Feb 25, 2021
47336b8
Merge branch 'main' into improve-conditions
khaosdoctor Feb 25, 2021
77e896d
Remove unused code
khaosdoctor Feb 25, 2021
ec04831
Use two strings as opposed to interface
khaosdoctor Feb 25, 2021
2b0763d
Merge branch 'improve-conditions' of github.com:khaosdoctor/http-add-…
khaosdoctor Feb 25, 2021
1d6bf15
Revert "Delete test file"
khaosdoctor Feb 25, 2021
022aa13
Restore pkg/k8s/client.go
khaosdoctor Feb 25, 2021
9ed1bbd
Add context to queue pinger
khaosdoctor Feb 25, 2021
e38600d
Adding an FAQ (#71)
arschles Feb 25, 2021
4af0fe2
Revert "Delete test file"
khaosdoctor Feb 25, 2021
0d3b629
Restore pkg/k8s/client.go
khaosdoctor Feb 25, 2021
3d2831a
Add context to queue pinger
khaosdoctor Feb 25, 2021
23316ea
Merge branch 'improve-conditions' of github.com:khaosdoctor/http-add-…
khaosdoctor Feb 25, 2021
d31e239
Merge branch 'main' into improve-conditions
khaosdoctor Feb 25, 2021
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
128 changes: 67 additions & 61 deletions charts/keda-http-operator/crds/httpscaledobjects.http.keda.sh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ spec:
app_name:
description: (optional) The name of the application to be created.
type: string
polling_interval:
description: (optional) The interval to check for changes.
format: int32
type: integer
port:
description: The port this application will serve on.
format: int32
Expand All @@ -57,63 +53,73 @@ spec:
status:
description: HTTPScaledObjectStatus defines the observed state of HTTPScaledObject
properties:
deployment_status:
description: HTTPScaledObjectCreationStatus describes the creation
status of the scaler's additional resources such as Services, Ingresses
and Deployments
enum:
- Created
- Error
- Pending
- Unknown
- Terminating
type: string
externalscaler_status:
description: HTTPScaledObjectCreationStatus describes the creation
status of the scaler's additional resources such as Services, Ingresses
and Deployments
enum:
- Created
- Error
- Pending
- Unknown
- Terminating
type: string
interceptor_status:
description: HTTPScaledObjectCreationStatus describes the creation
status of the scaler's additional resources such as Services, Ingresses
and Deployments
enum:
- Created
- Error
- Pending
- Unknown
- Terminating
type: string
ready:
type: boolean
scaledobject_status:
description: HTTPScaledObjectCreationStatus describes the creation
status of the scaler's additional resources such as Services, Ingresses
and Deployments
enum:
- Created
- Error
- Pending
- Unknown
- Terminating
type: string
service_status:
description: HTTPScaledObjectCreationStatus describes the creation
status of the scaler's additional resources such as Services, Ingresses
and Deployments
enum:
- Created
- Error
- Pending
- Unknown
- Terminating
type: string
conditions:
description: List of auditable conditions of the operator
items:
description: Condition to store the condition state
properties:
message:
description: A human readable message indicating details about
the transition.
type: string
reason:
description: The reason for the condition's last transition.
enum:
- ErrorCreatingExternalScaler
- ErrorCreatingExternalScalerService
- CreatedExternalScaler
- ErrorCreatingAppDeployment
- AppDeploymentCreated
- ErrorCreatingAppService
- AppServiceCreated
- ErrorCreatingScaledObject
- ScaledObjectCreated
- ErrorCreatingInterceptor
- ErrorCreatingInterceptorAdminService
- ErrorCreatingInterceptorProxyService
- InterceptorCreated
- TerminatingResources
- AppDeploymentTerminationError
- AppDeploymentTerminated
- InterceptorDeploymentTerminated
- InterceptorDeploymentTerminationError
- InterceptorAdminServiceTerminationError
- InterceptorAdminServiceTerminated
- InterceptorProxyServiceTerminationError
- InterceptorProxyServiceTerminated
- ExternalScalerDeploymentTerminationError
- ExternalScalerDeploymentTerminated
- ExternalScalerServiceTerminationError
- ExternalScalerServiceTerminated
- AppServiceTerminationError
- AppServiceTerminated
- ScaledObjectTerminated
- ScaledObjectTerminationError
- PendingCreation
- HTTPScaledObjectIsReady
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
timestamp:
description: Timestamp of the condition
type: string
type:
description: Type of condition
enum:
- Created
- Error
- Pending
- Unknown
- Terminating
- Terminated
- Ready
type: string
required:
- status
- type
type: object
type: array
type: object
type: object
served: true
Expand Down
32 changes: 26 additions & 6 deletions charts/keda-http-operator/templates/keda-http-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ metadata:
labels:
httpscaledobjects.http.keda.sh/version: {{ .Values.version }}
keda.sh/addon: keda-http-addon
name: keda-http-addon-keda-http-manager-role
name: keda-http-addon-manager-role
rules:
- apiGroups:
- ""
resources:
- configmaps
- pods
- services
- endpoints
Expand All @@ -67,28 +68,47 @@ rules:
- list
- watch
- apiGroups:
- http.keda.sh
- keda.sh
resources:
- httpscaledobjects
- scaledobjects
verbs:
- create
- delete
- get
- list
- update
- patch
- watch
- apiGroups:
- http.keda.sh
resources:
- httpscaledobjects
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- http.keda.sh
- keda.sh
resources:
- httpscaledobjects/status
verbs:
- get
- patch
- update
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- create
- delete
- update
- apiGroups:
- networking
resources:
Expand Down Expand Up @@ -157,11 +177,11 @@ metadata:
labels:
httpscaledobjects.http.keda.sh/version: {{ .Values.version }}
keda.sh/addon: keda-http-addon
name: keda-http-addon-keda-http-manager-rolebinding
name: keda-http-addon-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: keda-http-addon-keda-http-manager-role
name: keda-http-addon-manager-role
subjects:
- kind: ServiceAccount
name: default
Expand Down
17 changes: 8 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ module github.com/kedacore/http-add-on
go 1.15

require (
github.com/go-logr/logr v0.1.0
github.com/go-logr/logr v0.3.0
github.com/golang/protobuf v1.4.3
github.com/labstack/echo/v4 v4.1.17
github.com/onsi/ginkgo v1.11.0
github.com/onsi/gomega v1.8.1
github.com/pkg/errors v0.8.1
github.com/onsi/ginkgo v1.14.1
github.com/onsi/gomega v1.10.2
github.com/pkg/errors v0.9.1
google.golang.org/grpc v1.33.2
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.0.1 // indirect
google.golang.org/protobuf v1.25.0
k8s.io/api v0.17.2
k8s.io/apimachinery v0.17.2
k8s.io/client-go v0.17.2
sigs.k8s.io/controller-runtime v0.5.0
k8s.io/api v0.20.2
k8s.io/apimachinery v0.20.2
k8s.io/client-go v0.20.2
sigs.k8s.io/controller-runtime v0.8.1
)
Loading