Skip to content

Commit

Permalink
feat(k8s/amour): External secrets, Grafana, VM...
Browse files Browse the repository at this point in the history
Remove the 1Password operator, fix rook.
  • Loading branch information
uhthomas committed Nov 6, 2023
1 parent 585813c commit 37e3872
Show file tree
Hide file tree
Showing 129 changed files with 30,145 additions and 1,013 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe

go_rules_dependencies()

go_register_toolchains(version = "1.20.4")
go_register_toolchains(version = "1.21.3")

load("//:go_deps.bzl", "go_dependencies")

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
load("@com_github_tnarg_rules_cue//cue:cue.bzl", "cue_library")

cue_library(
name = "cue_v1_library",
srcs = [
"groupversion_info_go_gen.cue",
"onepassworditem_types_go_gen.cue",
],
importpath = "github.com/1Password/onepassword-operator/api/v1",
visibility = ["//visibility:public"],
deps = ["//cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1:cue_v1_library"],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/1Password/onepassword-operator/api/v1

// Package v1 contains API Schema definitions for the v1 API group
// +kubebuilder:object:generate=true
// +groupName=onepassword.com
package v1
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go github.com/1Password/onepassword-operator/api/v1

package v1

import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

// OnePasswordItemSpec defines the desired state of OnePasswordItem
#OnePasswordItemSpec: {
itemPath?: string @go(ItemPath)
}

#OnePasswordItemConditionType: string // #enumOnePasswordItemConditionType

#enumOnePasswordItemConditionType:
#OnePasswordItemReady

// OnePasswordItemReady means the Kubernetes secret is ready for use.
#OnePasswordItemReady: #OnePasswordItemConditionType & "Ready"

#OnePasswordItemCondition: {
// Type of job condition, Completed.
type: #OnePasswordItemConditionType @go(Type)

// Status of the condition, one of True, False, Unknown.
status: metav1.#ConditionStatus @go(Status)

// Last time the condition transit from one status to another.
// +optional
lastTransitionTime?: metav1.#Time @go(LastTransitionTime)

// Human-readable message indicating details about last transition.
// +optional
message?: string @go(Message)
}

// OnePasswordItemStatus defines the observed state of OnePasswordItem
#OnePasswordItemStatus: {
conditions: [...#OnePasswordItemCondition] @go(Conditions,[]OnePasswordItemCondition)
}

// OnePasswordItem is the Schema for the onepassworditems API
#OnePasswordItem: {
metav1.#TypeMeta
metadata?: metav1.#ObjectMeta @go(ObjectMeta)

// Kubernetes secret type. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
type?: string @go(Type)
spec?: #OnePasswordItemSpec @go(Spec)
status?: #OnePasswordItemStatus @go(Status)
}

// OnePasswordItemList contains a list of OnePasswordItem
#OnePasswordItemList: {
metav1.#TypeMeta
metadata?: metav1.#ListMeta @go(ListMeta)
items: [...#OnePasswordItem] @go(Items,[]OnePasswordItem)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
load("@com_github_tnarg_rules_cue//cue:cue.bzl", "cue_library")

cue_library(
name = "cue_v1beta1_library",
srcs = [
"additional_go_gen.cue",
"groupversion_info_go_gen.cue",
"owner_go_gen.cue",
"vmagent_types_go_gen.cue",
"vmalert_types_go_gen.cue",
"vmalertmanager_types_go_gen.cue",
"vmalertmanagerconfig_types_go_gen.cue",
"vmauth_types_go_gen.cue",
"vmcluster_types_go_gen.cue",
"vmnodescrape_types_go_gen.cue",
"vmpodscrape_types_go_gen.cue",
"vmprobe_types_go_gen.cue",
"vmrule_types_go_gen.cue",
"vmservicescrape_types_go_gen.cue",
"vmsingle_types_go_gen.cue",
"vmstaticscrape_types_go_gen.cue",
"vmuser_types_go_gen.cue",
],
importpath = "github.com/VictoriaMetrics/operator/api/victoriametrics/v1beta1",
visibility = ["//visibility:public"],
deps = [
"//cue.mod/gen/k8s.io/api/apps/v1:cue_v1_library",
"//cue.mod/gen/k8s.io/api/autoscaling/v2beta2:cue_v2beta2_library",
"//cue.mod/gen/k8s.io/api/core/v1:cue_v1_library",
"//cue.mod/gen/k8s.io/api/networking/v1:cue_v1_library",
"//cue.mod/gen/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1:cue_v1_library",
"//cue.mod/gen/k8s.io/apimachinery/pkg/apis/meta/v1:cue_v1_library",
"//cue.mod/gen/k8s.io/apimachinery/pkg/util/intstr:cue_intstr_library",
"//cue.mod/gen/pkg.go.dev/net/url:cue_url_library",
],
)
Loading

0 comments on commit 37e3872

Please sign in to comment.