Skip to content

Commit 08861e7

Browse files
authored
Add ready condition (#1204)
* Add Ready condition * Clean up some docs
1 parent fc1363e commit 08861e7

27 files changed

+71
-12
lines changed

api/v1beta1/secrettransformation_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type SecretTransformationStatus struct {
2222

2323
// SecretTransformation is the Schema for the secrettransformations API
2424
// +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=`.status.conditions[?(@.type == "Healthy")].status`,description="health status"
25+
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.conditions[?(@.type == "Ready")].status`,description="resource ready"
2526
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`,description="resource age"
2627
type SecretTransformation struct {
2728
metav1.TypeMeta `json:",inline"`

api/v1beta1/vaultauth_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ type VaultAuthStatus struct {
447447

448448
// VaultAuth is the Schema for the vaultauths API
449449
// +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=`.status.conditions[?(@.type == "Healthy")].status`,description="health status"
450+
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.conditions[?(@.type == "Ready")].status`,description="resource ready"
450451
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`,description="resource age"
451452
type VaultAuth struct {
452453
metav1.TypeMeta `json:",inline"`

api/v1beta1/vaultconnection_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type VaultConnectionStatus struct {
4141

4242
// VaultConnection is the Schema for the vaultconnections API
4343
// +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=`.status.conditions[?(@.type == "Healthy")].status`,description="health status"
44+
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.conditions[?(@.type == "Ready")].status`,description="resource ready"
4445
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`,description="resource age"
4546
type VaultConnection struct {
4647
metav1.TypeMeta `json:",inline"`

api/v1beta1/vaultdynamicsecret_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ type VaultStaticCredsMetaData struct {
135135
// VaultDynamicSecret is the Schema for the vaultdynamicsecrets API
136136
// +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=`.status.conditions[?(@.type == "SecretSynced")].status`,description="secret sync status"
137137
// +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=`.status.conditions[?(@.type == "Healthy")].status`,description="health status"
138+
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.conditions[?(@.type == "Ready")].status`,description="resource ready"
138139
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`,description="resource age"
139140
type VaultDynamicSecret struct {
140141
metav1.TypeMeta `json:",inline"`

api/v1beta1/vaultpkisecret_types.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ import (
99
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1010
)
1111

12-
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
13-
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
14-
1512
// VaultPKISecretSpec defines the desired state of VaultPKISecret
1613
type VaultPKISecretSpec struct {
1714
// VaultAuthRef to the VaultAuth resource, can be prefixed with a namespace,
@@ -149,6 +146,7 @@ type VaultPKISecretStatus struct {
149146
// VaultPKISecret is the Schema for the vaultpkisecrets API
150147
// +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=`.status.conditions[?(@.type == "SecretSynced")].status`,description="secret sync status"
151148
// +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=`.status.conditions[?(@.type == "Healthy")].status`,description="health status"
149+
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.conditions[?(@.type == "Ready")].status`,description="resource ready"
152150
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`,description="resource age"
153151
type VaultPKISecret struct {
154152
metav1.TypeMeta `json:",inline"`

api/v1beta1/vaultstaticsecret_types.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import (
77
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
88
)
99

10-
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
11-
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
12-
1310
// VaultStaticSecretSpec defines the desired state of VaultStaticSecret
1411
type VaultStaticSecretSpec struct {
1512
// VaultAuthRef to the VaultAuth resource, can be prefixed with a namespace,
@@ -99,6 +96,7 @@ type VaultStaticSecretStatus struct {
9996
// VaultStaticSecret is the Schema for the vaultstaticsecrets API
10097
// +kubebuilder:printcolumn:name="Synced",type="string",JSONPath=`.status.conditions[?(@.type == "SecretSynced")].status`,description="secret sync status"
10198
// +kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=`.status.conditions[?(@.type == "Healthy")].status`,description="health status"
99+
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.conditions[?(@.type == "Ready")].status`,description="resource ready"
102100
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=`.metadata.creationTimestamp`,description="resource age"
103101
type VaultStaticSecret struct {
104102
metav1.TypeMeta `json:",inline"`

chart/crds/secrets.hashicorp.com_secrettransformations.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ spec:
2222
jsonPath: .status.conditions[?(@.type == "Healthy")].status
2323
name: Healthy
2424
type: string
25+
- description: resource ready
26+
jsonPath: .status.conditions[?(@.type == "Ready")].status
27+
name: Ready
28+
type: string
2529
- description: resource age
2630
jsonPath: .metadata.creationTimestamp
2731
name: Age

chart/crds/secrets.hashicorp.com_vaultauths.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ spec:
2222
jsonPath: .status.conditions[?(@.type == "Healthy")].status
2323
name: Healthy
2424
type: string
25+
- description: resource ready
26+
jsonPath: .status.conditions[?(@.type == "Ready")].status
27+
name: Ready
28+
type: string
2529
- description: resource age
2630
jsonPath: .metadata.creationTimestamp
2731
name: Age

chart/crds/secrets.hashicorp.com_vaultconnections.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ spec:
2222
jsonPath: .status.conditions[?(@.type == "Healthy")].status
2323
name: Healthy
2424
type: string
25+
- description: resource ready
26+
jsonPath: .status.conditions[?(@.type == "Ready")].status
27+
name: Ready
28+
type: string
2529
- description: resource age
2630
jsonPath: .metadata.creationTimestamp
2731
name: Age

chart/crds/secrets.hashicorp.com_vaultdynamicsecrets.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ spec:
2626
jsonPath: .status.conditions[?(@.type == "Healthy")].status
2727
name: Healthy
2828
type: string
29+
- description: resource ready
30+
jsonPath: .status.conditions[?(@.type == "Ready")].status
31+
name: Ready
32+
type: string
2933
- description: resource age
3034
jsonPath: .metadata.creationTimestamp
3135
name: Age

0 commit comments

Comments
 (0)