You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to show when a secret etc is missing, or when the
reconciliation is complete from Function to Deployment/Service
conditions are added to the status of the Function.
Stalled = unable to fully reconcile
Ready = reconciled
Healthy = Pod available for a request
Also adds functions/status to the RBAC for the operator.
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
APIVersion defines the versioned schema of this representation of an object.
37
-
Servers should convert recognized schemas to the latest internal value, and
38
-
may reject unrecognized values.
39
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
36
+
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'
40
37
type: string
41
38
kind:
42
-
description: |-
43
-
Kind is a string value representing the REST resource this object represents.
44
-
Servers may infer this from the endpoint the client submits requests to.
45
-
Cannot be updated.
46
-
In CamelCase.
47
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
39
+
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'
48
40
type: string
49
41
metadata:
50
42
type: object
@@ -56,19 +48,15 @@ spec:
56
48
- iss
57
49
properties:
58
50
aud:
59
-
description: |-
60
-
Audience is the intended audience of the JWT, at times, like with Auth0 this is the
61
-
client ID of the app, and not our validating server
51
+
description: Audience is the intended audience of the JWT, at times, like with Auth0 this is the client ID of the app, and not our validating server
62
52
type: array
63
53
items:
64
54
type: string
65
55
iss:
66
56
description: Issuer is the issuer of the JWT
67
57
type: string
68
58
issInternal:
69
-
description: |-
70
-
IssuerInternal provides an alternative URL to use to download the public key
71
-
for this issuer. It's useful for the system issuer.
59
+
description: IssuerInternal provides an alternative URL to use to download the public key for this issuer. It's useful for the system issuer.
APIVersion defines the versioned schema of this representation of an object.
31
-
Servers should convert recognized schemas to the latest internal value, and
32
-
may reject unrecognized values.
33
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
30
+
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'
34
31
type: string
35
32
kind:
36
-
description: |-
37
-
Kind is a string value representing the REST resource this object represents.
38
-
Servers may infer this from the endpoint the client submits requests to.
39
-
Cannot be updated.
40
-
In CamelCase.
41
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
33
+
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'
42
34
type: string
43
35
metadata:
44
36
type: object
@@ -63,16 +55,7 @@ spec:
63
55
items:
64
56
type: string
65
57
condition:
66
-
description: |-
67
-
Condition is a set of conditions that the policy applies to
68
-
{
69
-
"StringLike": {
70
-
"jwt:https://my-identity-provider.com#sub-id": [
71
-
"1234567890",
72
-
"0987654321"
73
-
],
74
-
}
75
-
}
58
+
description: 'Condition is a set of conditions that the policy applies to { "StringLike": { "jwt:https://my-identity-provider.com#sub-id": [ "1234567890", "0987654321" ], } }'
76
59
type: object
77
60
additionalProperties:
78
61
type: object
@@ -84,9 +67,7 @@ spec:
84
67
description: Effect is the effect of the policy - only Allow is supported
85
68
type: string
86
69
resource:
87
-
description: |-
88
-
Resource is a set of resources that the policy applies to - only namespaces are supported at
89
-
present
70
+
description: Resource is a set of resources that the policy applies to - only namespaces are supported at present
APIVersion defines the versioned schema of this representation of an object.
37
-
Servers should convert recognized schemas to the latest internal value, and
38
-
may reject unrecognized values.
39
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
36
+
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'
40
37
type: string
41
38
kind:
42
-
description: |-
43
-
Kind is a string value representing the REST resource this object represents.
44
-
Servers may infer this from the endpoint the client submits requests to.
45
-
Cannot be updated.
46
-
In CamelCase.
47
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
39
+
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'
48
40
type: string
49
41
metadata:
50
42
type: object
51
43
spec:
52
-
description: |-
53
-
RoleSpec maps a number of principals or attributes within a JWT to
54
-
a set of policies.
44
+
description: RoleSpec maps a number of principals or attributes within a JWT to a set of policies.
55
45
type: object
56
46
properties:
57
47
condition:
58
-
description: |-
59
-
Condition is a set of conditions that can be used instead of a principal
60
-
to match against claims within a JWT
61
-
{
62
-
"StringLike": {
63
-
"jwt:https://my-identity-provider.com#sub-id": [
64
-
"1234567890",
65
-
"0987654321"
66
-
],
67
-
}
68
-
}
48
+
description: 'Condition is a set of conditions that can be used instead of a principal to match against claims within a JWT { "StringLike": { "jwt:https://my-identity-provider.com#sub-id": [ "1234567890", "0987654321" ], } }'
69
49
type: object
70
50
additionalProperties:
71
51
type: object
@@ -79,11 +59,7 @@ spec:
79
59
items:
80
60
type: string
81
61
principal:
82
-
description: |-
83
-
Principal is the principal that the role applies to i.e.
APIVersion defines the versioned schema of this representation of an object.
31
-
Servers should convert recognized schemas to the latest internal value, and
32
-
may reject unrecognized values.
33
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
42
+
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'
34
43
type: string
35
44
kind:
36
-
description: |-
37
-
Kind is a string value representing the REST resource this object represents.
38
-
Servers may infer this from the endpoint the client submits requests to.
39
-
Cannot be updated.
40
-
In CamelCase.
41
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
45
+
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'
42
46
type: string
43
47
metadata:
44
48
type: object
@@ -93,6 +97,60 @@ spec:
93
97
type: array
94
98
items:
95
99
type: string
100
+
status:
101
+
type: object
102
+
properties:
103
+
availableReplicas:
104
+
type: integer
105
+
format: int32
106
+
conditions:
107
+
description: Conditions contains observations of the resource's state.
108
+
type: array
109
+
items:
110
+
description: "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
111
+
type: object
112
+
required:
113
+
- lastTransitionTime
114
+
- message
115
+
- reason
116
+
- status
117
+
- type
118
+
properties:
119
+
lastTransitionTime:
120
+
description: lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
121
+
type: string
122
+
format: date-time
123
+
message:
124
+
description: message is a human readable message indicating details about the transition. This may be an empty string.
125
+
type: string
126
+
maxLength: 32768
127
+
observedGeneration:
128
+
description: observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
129
+
type: integer
130
+
format: int64
131
+
minimum: 0
132
+
reason:
133
+
description: reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
134
+
type: string
135
+
maxLength: 1024
136
+
minLength: 1
137
+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
138
+
status:
139
+
description: status of the condition, one of True, False, Unknown.
140
+
type: string
141
+
enum:
142
+
- "True"
143
+
- "False"
144
+
- Unknown
145
+
type:
146
+
description: type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
0 commit comments