@@ -31,8 +31,6 @@ const exampleCluster: Cluster = #{
3131 baseDomain : "example.com" ,
3232 },
3333 },
34- created_time : "2021-01-01T00:00:00Z" ,
35- updated_time : "2021-01-01T00:00:00Z" ,
3634 generation : 1 ,
3735 status : #{
3836 conditions : #[
@@ -78,6 +76,90 @@ const exampleCluster: Cluster = #{
7876 }
7977 ],
8078 },
79+ created_time : "2021-01-01T00:00:00Z" ,
80+ updated_time : "2021-01-01T10:02:00Z" ,
81+ created_by : "user-123@example.com" ,
82+ updated_by : "user-123@example.com" ,
83+ };
84+
85+ const exampleDeletedCluster : Cluster = #{
86+ kind : "Cluster" ,
87+ id : "019466a0-8f8e-7abc-9def-0123456789ab" ,
88+ href : "https://api.hyperfleet.com/v1/clusters/019466a0-8f8e-7abc-9def-0123456789ab" ,
89+ name : "cluster-123" ,
90+ labels : #{ environment : "production" , team : "platform" },
91+ spec : #{
92+ platform : #{
93+ type : "gcp" ,
94+ gcp : #{
95+ projectID : "project-123" ,
96+ region : "us-central1" ,
97+ zone : "us-central1-a" ,
98+ network : "network-123" ,
99+ subnet : "subnet-123" ,
100+ },
101+ },
102+ release : #{
103+ image : "registry.redhat.io/openshift4/ose-cluster-version-operator:v4.14.0" ,
104+ version : "4.14.0" ,
105+ },
106+ networking : #{
107+ clusterNetwork : #[ #{ cidr : "10.10.0.0/16" , hostPrefix : 24 } ],
108+ serviceNetwork : #["10.96.0.0/12" ],
109+ },
110+ dns : #{
111+ baseDomain : "example.com" ,
112+ },
113+ },
114+ generation : 2 ,
115+ status : #{
116+ conditions : #[
117+ #{
118+ type : ConditionType .Ready ,
119+ status : ResourceConditionStatus .True ,
120+ reason : ExampleReadyReason ,
121+ message : ExampleReadyMessage ,
122+ observed_generation : 1 ,
123+ created_time : "2021-01-01T10:00:00Z" ,
124+ last_updated_time : "2021-01-01T10:00:00Z" ,
125+ last_transition_time : "2021-01-01T10:00:00Z" ,
126+ },
127+ #{
128+ type : ConditionType .Available ,
129+ status : ResourceConditionStatus .True ,
130+ reason : ExampleAvailableReason ,
131+ message : ExampleAvailableMessage ,
132+ observed_generation : 1 ,
133+ created_time : "2021-01-01T10:00:00Z" ,
134+ last_updated_time : "2021-01-01T10:00:00Z" ,
135+ last_transition_time : "2021-01-01T10:00:00Z" ,
136+ },
137+ #{
138+ type : "Adapter1Successful" ,
139+ status : ResourceConditionStatus .True ,
140+ reason : ExampleAdapter1AvaliableReason ,
141+ message : ExampleAdapter1AvaliableMessage ,
142+ observed_generation : 1 ,
143+ created_time : "2021-01-01T10:00:00Z" ,
144+ last_updated_time : "2021-01-01T10:00:00Z" ,
145+ last_transition_time : "2021-01-01T10:00:00Z" ,
146+ },
147+ #{
148+ type : "Adapter2Successful" ,
149+ status : ResourceConditionStatus .True ,
150+ reason : ExampleAdapter2AvaliableReason ,
151+ message : ExampleAdapter2AvaliableMessage ,
152+ observed_generation : 1 ,
153+ created_time : "2021-01-01T10:01:00Z" ,
154+ last_updated_time : "2021-01-01T10:01:00Z" ,
155+ last_transition_time : "2021-01-01T10:01:00Z" ,
156+ }
157+ ],
158+ },
159+ created_time : "2021-01-01T00:00:00Z" ,
160+ updated_time : "2021-01-01T10:02:00Z" ,
161+ deleted_time : "2021-01-01T10:05:00Z" ,
81162 created_by : "user-123@example.com" ,
82163 updated_by : "user-123@example.com" ,
164+ deleted_by : "user-123@example.com" ,
83165};
0 commit comments