Skip to content

Commit

Permalink
feat: update kmp crds
Browse files Browse the repository at this point in the history
Signed-off-by: Juncheng Zhu <[email protected]>
  • Loading branch information
junczhu committed Nov 20, 2024
1 parent 0837c02 commit 7816953
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/keymanagementprovider/azurekeyvault/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type AKVKeyManagementProviderConfig struct {
Resource string `json:"resource,omitempty"`
Certificates []types.KeyVaultValue `json:"certificates,omitempty"`
Keys []types.KeyVaultValue `json:"keys,omitempty"`
CRL config.CRLConfig `json:"crl,omitempty"`
}

type akvKMProvider struct {
Expand Down
28 changes: 28 additions & 0 deletions pkg/keymanagementprovider/config/crl_config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
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 config

type CRLConfig struct {
Type string `json:"type,omitempty"`
EnableCache bool `json:"enable_cache,omitempty"`
Refreshable bool `json:"refreshable,omitempty"`
HTTPRequest HTTPRequestConfig `json:"http_request,omitempty"`
}

type HTTPRequestConfig struct {
Timeout int `json:"timeout,omitempty"`
RetryCount int `json:"retry_count,omitempty"`
}

0 comments on commit 7816953

Please sign in to comment.