-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PKI field to (cluster)imagepolicy
Signed-off-by: Qi Wang <[email protected]>
- Loading branch information
Showing
32 changed files
with
1,617 additions
and
5 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...v1alpha1/tests/clusterimagepolicies.config.openshift.io/SigstoreImageVerificationPKI.yaml
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,33 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "ClusterImagePolicy" | ||
crdName: clusterimagepolicies.config.openshift.io | ||
featureGate: SigstoreImageVerificationPKI | ||
tests: | ||
onCreate: | ||
- name: Should be able to create a minimal ClusterImagePolicy with policyType PKI | ||
initial: | | ||
apiVersion: config.openshift.io/v1alpha1 | ||
kind: ClusterImagePolicy | ||
spec: | ||
scopes: | ||
- example.com | ||
policy: | ||
rootOfTrust: | ||
policyType: PKI | ||
pki: | ||
caRootsData: Zm9vIGJhcg== | ||
pkiCertificateSubject: | ||
email: [email protected] | ||
expected: | | ||
apiVersion: config.openshift.io/v1alpha1 | ||
kind: ClusterImagePolicy | ||
spec: | ||
scopes: | ||
- example.com | ||
policy: | ||
rootOfTrust: | ||
policyType: PKI | ||
pki: | ||
caRootsData: Zm9vIGJhcg== | ||
pkiCertificateSubject: | ||
email: [email protected] |
33 changes: 33 additions & 0 deletions
33
config/v1alpha1/tests/imagepolicies.config.openshift.io/SigstoreImageVerificationPKI.yaml
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,33 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "ImagePolicy" | ||
crdName: imagepolicies.config.openshift.io | ||
featureGate: SigstoreImageVerificationPKI | ||
tests: | ||
onCreate: | ||
- name: Should be able to create a minimal ImagePolicy with policyType PKI | ||
initial: | | ||
apiVersion: config.openshift.io/v1alpha1 | ||
kind: ImagePolicy | ||
spec: | ||
scopes: | ||
- example.com | ||
policy: | ||
rootOfTrust: | ||
policyType: PKI | ||
pki: | ||
caRootsData: Zm9vIGJhcg== | ||
pkiCertificateSubject: | ||
email: [email protected] | ||
expected: | | ||
apiVersion: config.openshift.io/v1alpha1 | ||
kind: ImagePolicy | ||
spec: | ||
scopes: | ||
- example.com | ||
policy: | ||
rootOfTrust: | ||
policyType: PKI | ||
pki: | ||
caRootsData: Zm9vIGJhcg== | ||
pkiCertificateSubject: | ||
email: [email protected] |
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
Oops, something went wrong.