Skip to content

Commit b4ad9bd

Browse files
committed
adding Active status field
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
1 parent 0f32f30 commit b4ad9bd

File tree

7 files changed

+19
-7
lines changed

7 files changed

+19
-7
lines changed

constraint/config/crds/externaldata.gatekeeper.sh_providers.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ spec:
6464
description: ProviderPodStatusStatus defines the observed state
6565
of ProviderPodStatus.
6666
properties:
67+
active:
68+
type: boolean
6769
errors:
68-
description: Active bool `json:"active,omitempty"`
6970
items:
7071
description: ProviderError represents a single error caught
7172
while managing providers.
@@ -113,6 +114,8 @@ spec:
113114
type: object
114115
served: true
115116
storage: false
117+
subresources:
118+
status: {}
116119
- name: v1beta1
117120
schema:
118121
openAPIV3Schema:
@@ -160,8 +163,9 @@ spec:
160163
description: ProviderPodStatusStatus defines the observed state
161164
of ProviderPodStatus.
162165
properties:
166+
active:
167+
type: boolean
163168
errors:
164-
description: Active bool `json:"active,omitempty"`
165169
items:
166170
description: ProviderError represents a single error caught
167171
while managing providers.
@@ -209,3 +213,5 @@ spec:
209213
type: object
210214
served: true
211215
storage: true
216+
subresources:
217+
status: {}

constraint/deploy/crds.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,9 @@ spec:
455455
items:
456456
description: ProviderPodStatusStatus defines the observed state of ProviderPodStatus.
457457
properties:
458+
active:
459+
type: boolean
458460
errors:
459-
description: Active bool `json:"active,omitempty"`
460461
items:
461462
description: ProviderError represents a single error caught while managing providers.
462463
properties:
@@ -550,8 +551,9 @@ spec:
550551
items:
551552
description: ProviderPodStatusStatus defines the observed state of ProviderPodStatus.
552553
properties:
554+
active:
555+
type: boolean
553556
errors:
554-
description: Active bool `json:"active,omitempty"`
555557
items:
556558
description: ProviderError represents a single error caught while managing providers.
557559
properties:

constraint/pkg/apis/externaldata/unversioned/provider_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type ProviderPodStatusStatus struct {
5252
// out from under it, interrupting the watch
5353
ProviderUID types.UID `json:"providerUID,omitempty"`
5454
Operations []string `json:"operations,omitempty"`
55-
// Active bool `json:"active,omitempty"`
55+
Active bool `json:"active,omitempty"`
5656
Errors []ProviderError `json:"errors,omitempty"`
5757
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
5858
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`

constraint/pkg/apis/externaldata/v1alpha1/provider_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type ProviderPodStatusStatus struct {
5050
// out from under it, interrupting the watch
5151
ProviderUID types.UID `json:"providerUID,omitempty"`
5252
Operations []string `json:"operations,omitempty"`
53-
// Active bool `json:"active,omitempty"`
53+
Active bool `json:"active,omitempty"`
5454
Errors []ProviderError `json:"errors,omitempty"`
5555
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
5656
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`

constraint/pkg/apis/externaldata/v1alpha1/zz_generated.conversion.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

constraint/pkg/apis/externaldata/v1beta1/provider_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type ProviderPodStatusStatus struct {
5050
// out from under it, interrupting the watch
5151
ProviderUID types.UID `json:"providerUID,omitempty"`
5252
Operations []string `json:"operations,omitempty"`
53-
// Active bool `json:"active,omitempty"`
53+
Active bool `json:"active,omitempty"`
5454
Errors []ProviderError `json:"errors,omitempty"`
5555
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
5656
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`

constraint/pkg/apis/externaldata/v1beta1/zz_generated.conversion.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)