Skip to content

Commit 6ccd0d9

Browse files
authored
Merge pull request #25 from cosmonic-labs/lxfontes/runtime-v2
bringing v2
2 parents 79ab8a6 + fdf3eb8 commit 6ccd0d9

File tree

120 files changed

+6496
-10586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+6496
-10586
lines changed

PROJECT

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@ repo: github.com/cosmonic-labs/runtime-operator
1313
resources:
1414
- api:
1515
crdVersion: v1
16-
namespaced: true
17-
controller: true
18-
domain: wasmcloud.dev
19-
group: runtime
20-
kind: Cluster
21-
path: github.com/cosmonic-labs/runtime-operator/api/runtime/v1alpha1
22-
version: v1alpha1
23-
- api:
24-
crdVersion: v1
25-
namespaced: true
16+
namespaced: false
2617
controller: true
2718
domain: wasmcloud.dev
2819
group: runtime
@@ -35,33 +26,7 @@ resources:
3526
controller: true
3627
domain: wasmcloud.dev
3728
group: runtime
38-
kind: Config
39-
path: github.com/cosmonic-labs/runtime-operator/api/runtime/v1alpha1
40-
version: v1alpha1
41-
- api:
42-
crdVersion: v1
43-
namespaced: true
44-
controller: true
45-
domain: wasmcloud.dev
46-
group: runtime
47-
kind: Component
48-
path: github.com/cosmonic-labs/runtime-operator/api/runtime/v1alpha1
49-
version: v1alpha1
50-
- api:
51-
crdVersion: v1
52-
namespaced: true
53-
domain: wasmcloud.dev
54-
group: runtime
55-
kind: ComponentReplica
56-
path: github.com/cosmonic-labs/runtime-operator/api/runtime/v1alpha1
57-
version: v1alpha1
58-
- api:
59-
crdVersion: v1
60-
namespaced: true
61-
controller: true
62-
domain: wasmcloud.dev
63-
group: runtime
64-
kind: Provider
29+
kind: Artifact
6530
path: github.com/cosmonic-labs/runtime-operator/api/runtime/v1alpha1
6631
version: v1alpha1
6732
- api:
@@ -70,7 +35,7 @@ resources:
7035
controller: true
7136
domain: wasmcloud.dev
7237
group: runtime
73-
kind: ProviderReplica
38+
kind: Workload
7439
path: github.com/cosmonic-labs/runtime-operator/api/runtime/v1alpha1
7540
version: v1alpha1
7641
- api:
@@ -79,7 +44,7 @@ resources:
7944
controller: true
8045
domain: wasmcloud.dev
8146
group: runtime
82-
kind: Link
47+
kind: WorkloadReplicaSet
8348
path: github.com/cosmonic-labs/runtime-operator/api/runtime/v1alpha1
8449
version: v1alpha1
8550
- api:
@@ -88,7 +53,7 @@ resources:
8853
controller: true
8954
domain: wasmcloud.dev
9055
group: runtime
91-
kind: Artifact
56+
kind: WorkloadDeployment
9257
path: github.com/cosmonic-labs/runtime-operator/api/runtime/v1alpha1
9358
version: v1alpha1
9459
version: "3"

api/runtime/v1alpha1/artifact_types.go

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*
2-
Copyright 2025.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
16-
171
package v1alpha1
182

193
import (
@@ -22,6 +6,9 @@ import (
226
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
237
)
248

9+
const ArtifactConditionSync condition.ConditionType = "Sync"
10+
const ArtifactConditionPublished condition.ConditionType = "Published"
11+
2512
// ArtifactSpec defines the desired state of Artifact.
2613
type ArtifactSpec struct {
2714
// +kubebuilder:validation:Required
@@ -33,7 +20,10 @@ type ArtifactSpec struct {
3320
// ArtifactStatus defines the observed state of Artifact.
3421
type ArtifactStatus struct {
3522
condition.ConditionedStatus `json:",inline"`
36-
ArtifactURL string `json:"artifactUrl,omitempty"`
23+
// +kubebuilder:validation:Optional
24+
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
25+
// +kubebuilder:validation:Optional
26+
ArtifactURL string `json:"artifactUrl,omitempty"`
3727
}
3828

3929
// +kubebuilder:object:root=true

api/runtime/v1alpha1/component_types.go

Lines changed: 0 additions & 151 deletions
This file was deleted.

api/runtime/v1alpha1/componentreplica_types.go

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)