-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bump up CRD version to v1beta1 (#664)
- Loading branch information
Showing
67 changed files
with
2,756 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
Copyright The Ratify Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
package apis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
Copyright The Ratify Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
// +kubebuilder:skip | ||
package unversioned | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
runtime "k8s.io/apimachinery/pkg/runtime" | ||
) | ||
|
||
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. | ||
|
||
// CertificateStoreSpec defines the desired state of CertificateStore | ||
type CertificateStoreSpec struct { | ||
// Important: Run "make" to regenerate code after modifying this file | ||
|
||
// Name of the certificate store provider | ||
Provider string `json:"provider,omitempty"` | ||
|
||
// Parameters of the certificate store | ||
Parameters runtime.RawExtension `json:"parameters,omitempty"` | ||
} | ||
|
||
// CertificateStoreStatus defines the observed state of CertificateStore | ||
type CertificateStoreStatus struct { | ||
// Important: Run "make" to regenerate code after modifying this file | ||
} | ||
|
||
// CertificateStore is the Schema for the certificatestores API | ||
type CertificateStore struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec CertificateStoreSpec `json:"spec,omitempty"` | ||
Status CertificateStoreStatus `json:"status,omitempty"` | ||
} | ||
|
||
// CertificateStoreList contains a list of CertificateStore | ||
type CertificateStoreList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []CertificateStore `json:"items"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
Copyright The Ratify Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package unversioned | ||
|
||
import runtime "k8s.io/apimachinery/pkg/runtime" | ||
|
||
// PluginSource defines the fields needed to download a plugin from an OCI Artifact source | ||
type PluginSource struct { | ||
// Important: Run "make" to regenerate code after modifying this file | ||
|
||
// OCI Artifact source to download the plugin from | ||
Artifact string `json:"artifact,omitempty"` | ||
|
||
// +kubebuilder:pruning:PreserveUnknownFields | ||
// AuthProvider to use to authenticate to the OCI Artifact source, optional | ||
AuthProvider runtime.RawExtension `json:"authProvider,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
Copyright The Ratify Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package unversioned | ||
|
||
// +kubebuilder:object:generate=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
Copyright The Ratify Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
// +kubebuilder:skip | ||
package unversioned | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
runtime "k8s.io/apimachinery/pkg/runtime" | ||
) | ||
|
||
// StoreSpec defines the desired state of Store | ||
type StoreSpec struct { | ||
// Important: Run "make" to regenerate code after modifying this file | ||
|
||
// Name of the store | ||
Name string `json:"name,omitempty"` | ||
// Plugin path, optional | ||
Address string `json:"address,omitempty"` | ||
// OCI Artifact source to download the plugin from, optional | ||
Source *PluginSource `json:"source,omitempty"` | ||
|
||
// Parameters of the store | ||
Parameters runtime.RawExtension `json:"parameters,omitempty"` | ||
} | ||
|
||
// StoreStatus defines the observed state of Store | ||
type StoreStatus struct { | ||
// Important: Run "make" to regenerate code after modifying this file | ||
} | ||
|
||
// Store is the Schema for the stores API | ||
type Store struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec StoreSpec `json:"spec,omitempty"` | ||
Status StoreStatus `json:"status,omitempty"` | ||
} | ||
|
||
// StoreList contains a list of Store | ||
type StoreList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []Store `json:"items"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
Copyright The Ratify Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
// +kubebuilder:skip | ||
package unversioned | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
runtime "k8s.io/apimachinery/pkg/runtime" | ||
) | ||
|
||
// VerifierSpec defines the desired state of Verifier | ||
type VerifierSpec struct { | ||
// Important: Run "make" to regenerate code after modifying this file | ||
|
||
// Name of the verifier | ||
Name string `json:"name,omitempty"` | ||
|
||
// The type of artifact this verifier handles | ||
ArtifactTypes string `json:"artifactTypes,omitempty"` | ||
|
||
// # Optional. URL/file path | ||
Address string `json:"address,omitempty"` | ||
|
||
// OCI Artifact source to download the plugin from, optional | ||
Source *PluginSource `json:"source,omitempty"` | ||
|
||
// Parameters for this verifier | ||
Parameters runtime.RawExtension `json:"parameters,omitempty"` | ||
} | ||
|
||
// VerifierStatus defines the observed state of Verifier | ||
type VerifierStatus struct { | ||
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster | ||
// Important: Run "make" to regenerate code after modifying this file | ||
} | ||
|
||
// Verifier is the Schema for the verifiers API | ||
type Verifier struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec VerifierSpec `json:"spec,omitempty"` | ||
Status VerifierStatus `json:"status,omitempty"` | ||
} | ||
|
||
// VerifierList contains a list of Verifier | ||
type VerifierList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []Verifier `json:"items"` | ||
} |
Oops, something went wrong.