Skip to content

Commit

Permalink
Add vault ops-request API (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: sakibalamin <sakibalamin@appscode.com>
  • Loading branch information
Sakib Md Al Amin authored Aug 30, 2022
1 parent 6cbcd6e commit 857a5c0
Show file tree
Hide file tree
Showing 60 changed files with 24,056 additions and 155 deletions.
31 changes: 1 addition & 30 deletions .config/api-rules/violation_exceptions.list
Original file line number Diff line number Diff line change
Expand Up @@ -168,33 +168,7 @@ API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,PodSpec,T
API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,ServiceSpec,ExternalIPs
API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,ServiceSpec,LoadBalancerSourceRanges
API rule violation: list_type_missing,kmodules.xyz/offshoot-api/api/v1,ServiceSpec,Ports
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,AWSRoleSpec,PolicyARNs
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,AWSRoleSpec,RoleARNs
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,ElasticsearchConfiguration,AllowedRoles
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,ElasticsearchRoleSpec,CreationStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,ElasticsearchRoleSpec,RevocationStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,GCPRoleSpec,TokenScopes
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,MariaDBConfiguration,AllowedRoles
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,MariaDBRoleSpec,CreationStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,MariaDBRoleSpec,RevocationStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,MongoDBConfiguration,AllowedRoles
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,MongoDBRoleSpec,CreationStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,MongoDBRoleSpec,RevocationStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,MySQLConfiguration,AllowedRoles
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,MySQLRoleSpec,CreationStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,MySQLRoleSpec,RevocationStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,PostgresConfiguration,AllowedRoles
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,PostgresRoleSpec,CreationStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,PostgresRoleSpec,RenewStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,PostgresRoleSpec,RevocationStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,PostgresRoleSpec,RollbackStatements
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,RoleStatus,Conditions
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,SecretAccessRequestSpec,Subjects
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,SecretAccessRequestStatus,Conditions
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,SecretEngineStatus,Conditions
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,SecretRoleBindingSpec,Roles
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,SecretRoleBindingSpec,Subjects
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/engine/v1alpha1,SecretRoleBindingStatus,Conditions
API rule violation: list_type_missing,kubevault.dev/apimachinery/apis/ops/v1alpha1,VaultOpsRequestStatus,Conditions
API rule violation: names_match,k8s.io/api/core/v1,AzureDiskVolumeSource,DataDiskURI
API rule violation: names_match,k8s.io/api/core/v1,ContainerStatus,LastTerminationState
API rule violation: names_match,k8s.io/api/core/v1,DaemonEndpoint,Port
Expand Down Expand Up @@ -244,6 +218,3 @@ API rule violation: names_match,k8s.io/apimachinery/pkg/util/intstr,IntOrString,
API rule violation: names_match,kmodules.xyz/client-go/api/v1,CertificateSpec,URIs
API rule violation: names_match,kmodules.xyz/client-go/api/v1,TimeOfDay,Time
API rule violation: names_match,kmodules.xyz/offshoot-api/api/v1,ContainerRuntimeSettings,IONice
API rule violation: names_match,kubevault.dev/apimachinery/apis/engine/v1alpha1,SecretEngineConfiguration,MariaDB
API rule violation: names_match,kubevault.dev/apimachinery/apis/engine/v1alpha1,SecretEngineConfiguration,MongoDB
API rule violation: names_match,kubevault.dev/apimachinery/apis/engine/v1alpha1,SecretEngineConfiguration,MySQL
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ COMPRESS ?= no
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:generateEmbeddedObjectMeta=true,allowDangerousTypes=true"
CODE_GENERATOR_IMAGE ?= appscode/gengo:release-1.24
API_GROUPS ?= kubevault:v1alpha1 kubevault:v1alpha2 catalog:v1alpha1 config:v1alpha1 policy:v1alpha1 engine:v1alpha1
API_GROUPS ?= kubevault:v1alpha1 kubevault:v1alpha2 catalog:v1alpha1 config:v1alpha1 policy:v1alpha1 engine:v1alpha1 ops:v1alpha1

# Where to push the docker image.
REGISTRY ?= kubevault
Expand Down
1,281 changes: 1,281 additions & 0 deletions api/openapi-spec/swagger.json

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions apis/catalog/v1alpha1/openapi_generated.go

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

77 changes: 77 additions & 0 deletions apis/config/v1alpha1/openapi_generated.go

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

5 changes: 5 additions & 0 deletions apis/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ const (
VaultServerAcceptingConnection = "AcceptingConnection"
AllReplicasAreReady = "AllReplicasReady"
SomeReplicasAreNotReady = "SomeReplicasNotReady"
VaultServerPaused = "Paused"
VaultReadWriteOK = "ReadWriteOK"

// health check constants
VaultHealthCheckPaused = "HealthCheckPaused"
)

const (
Expand Down
Loading

0 comments on commit 857a5c0

Please sign in to comment.