Skip to content

Commit

Permalink
Support generating cert based TLS type secret
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardChen820 committed Jan 30, 2024
1 parent 237d661 commit 8532b05
Show file tree
Hide file tree
Showing 14 changed files with 530 additions and 232 deletions.
6 changes: 3 additions & 3 deletions api/v1/azureappconfigurationprovider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type AzureAppConfigurationProviderSpec struct {
Target ConfigurationGenerationParameters `json:"target"`
Auth *AzureAppConfigurationProviderAuth `json:"auth,omitempty"`
Configuration AzureAppConfigurationKeyValueOptions `json:"configuration,omitempty"`
Secret *AzureKeyVaultReference `json:"secret,omitempty"`
Secret *AzureSecretReference `json:"secret,omitempty"`
FeatureFlag *AzureAppConfigurationFeatureFlagOptions `json:"featureFlag,omitempty"`
}

Expand Down Expand Up @@ -141,8 +141,8 @@ type ManagedIdentityReferenceParameters struct {
Key string `json:"key"`
}

// AzureKeyVaultReference defines the authentication type used to Azure KeyVault resolve KeyVaultReference
type AzureKeyVaultReference struct {
// AzureSecretReference defines the authentication type used to Azure KeyVault resolve KeyVaultReference
type AzureSecretReference struct {
Target SecretGenerationParameters `json:"target"`
Auth *AzureKeyVaultAuth `json:"auth,omitempty"`
Refresh *RefreshSettings `json:"refresh,omitempty"`
Expand Down
10 changes: 5 additions & 5 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ spec:
type: array
type: object
secret:
description: AzureKeyVaultReference defines the authentication type
description: AzureSecretReference defines the authentication type
used to Azure KeyVault resolve KeyVaultReference
properties:
auth:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ require (
k8s.io/apimachinery v0.26.2
k8s.io/client-go v0.26.2
sigs.k8s.io/controller-runtime v0.14.5
golang.org/x/crypto v0.17.0
)

require (
Expand Down Expand Up @@ -67,7 +68,6 @@ require (
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.5.0 // indirect
Expand Down
Loading

0 comments on commit 8532b05

Please sign in to comment.