diff --git a/go.mod b/go.mod index e1ff4f930a..d88d272e9f 100644 --- a/go.mod +++ b/go.mod @@ -48,7 +48,7 @@ require ( kmodules.xyz/custom-resources v0.29.1 kmodules.xyz/go-containerregistry v0.0.12 kmodules.xyz/monitoring-agent-api v0.29.0 - kmodules.xyz/resource-metadata v0.18.2-0.20240312232132-611a62574ba5 + kmodules.xyz/resource-metadata v0.18.2-0.20240313052239-425c691548da kmodules.xyz/resource-metrics v0.29.1 kmodules.xyz/sets v0.29.0 kubeops.dev/falco-ui-server v0.0.3 diff --git a/go.sum b/go.sum index f44f7d4a8a..48498436b0 100644 --- a/go.sum +++ b/go.sum @@ -3490,8 +3490,8 @@ kmodules.xyz/monitoring-agent-api v0.29.0 h1:gpFl6OZrlMLb/ySMHdREI9EwGtnJ91oZBn9 kmodules.xyz/monitoring-agent-api v0.29.0/go.mod h1:iNbvaMTgVFOI5q2LJtGK91j4Dmjv4ZRiRdasGmWLKQI= kmodules.xyz/offshoot-api v0.29.0 h1:GHLhxxT9jU1N8+FvOCCeJNyU5g0duYS46UGrs6AHNLY= kmodules.xyz/offshoot-api v0.29.0/go.mod h1:5NxhBblXoDHWStx9HCDJR2KFTwYjEZ7i1Id3jelIunw= -kmodules.xyz/resource-metadata v0.18.2-0.20240312232132-611a62574ba5 h1:xkrxDwltmcvoQMeIgjsb0dlIDeXw1JCHfWAlHGijyW0= -kmodules.xyz/resource-metadata v0.18.2-0.20240312232132-611a62574ba5/go.mod h1:Vb2bFCOX4uz2TsRRMzTkUqFWWOjJ261lY8Hs2HWgzh4= +kmodules.xyz/resource-metadata v0.18.2-0.20240313052239-425c691548da h1:DvWnRuaYJvMMAHweMRU5sISAOwmzItgqrpqkpGa2fIM= +kmodules.xyz/resource-metadata v0.18.2-0.20240313052239-425c691548da/go.mod h1:Vb2bFCOX4uz2TsRRMzTkUqFWWOjJ261lY8Hs2HWgzh4= kmodules.xyz/resource-metrics v0.29.1 h1:gP4SNosdDGFImpne52mnQtHacmnllYkTMcYL//p/ltM= kmodules.xyz/resource-metrics v0.29.1/go.mod h1:OuG/QobZ7o8GFHl/u3lqaUR0fDZDegxtV8Vdh+MNBD4= kmodules.xyz/sets v0.29.0 h1:ZX/qOECzUob95JhhRtngJElHSlJ1UNNdwK4hTEy+nl0= diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourceblockdefinitions/core.kubestash.com/v1alpha1/apps-backup.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourceblockdefinitions/core.kubestash.com/v1alpha1/apps-backup.yaml new file mode 100644 index 0000000000..1df67782cd --- /dev/null +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourceblockdefinitions/core.kubestash.com/v1alpha1/apps-backup.yaml @@ -0,0 +1,82 @@ +apiVersion: meta.k8s.appscode.com/v1alpha1 +kind: ResourceBlockDefinition +metadata: + creationTimestamp: null + name: core.kubestash.com-v1alpha1-apps-backup +spec: + blocks: + - actions: + create: Never + displayMode: List + kind: Connection + name: Recent Backups + query: + raw: |- + query Find($src: String!, $targetGroup: String!, $targetKind: String!) { + find(oid: $src) { + backup_via(group: "core.kubestash.com", kind: "BackupConfiguration") { + refs: source(group: $targetGroup, kind: $targetKind) { + namespace + name + } + } + } + } + type: GraphQL + ref: + group: core.kubestash.com + kind: BackupSession + - actions: + create: Never + displayMode: List + kind: Connection + name: Recent Restores + query: + byLabel: restore_into + type: GraphQL + ref: + group: core.kubestash.com + kind: RestoreSession + - actions: + create: Never + displayMode: List + kind: Connection + name: Backup Configuration + query: + byLabel: backup_via + type: GraphQL + ref: + group: core.kubestash.com + kind: BackupConfiguration + - actions: + create: Never + displayMode: List + kind: Connection + name: Repository + query: + byLabel: backup_via + type: GraphQL + ref: + group: storage.kubestash.com + kind: Repository + - actions: + create: Never + displayMode: List + kind: Connection + name: CronJobs + query: + raw: |- + query Find($src: String!, $targetGroup: String!, $targetKind: String!) { + find(oid: $src) { + backup_via(group: "core.kubestash.com", kind: "BackupConfiguration") { + refs: offshoot(group: $targetGroup, kind: $targetKind) { + namespace + name + } + } + } + } + type: GraphQL + ref: + group: batch + kind: CronJob diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourceblockdefinitions/monitoring.coreos.com/v1/apps-monitoring-kubedb.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourceblockdefinitions/monitoring.coreos.com/v1/apps-monitoring-kubedb.yaml new file mode 100644 index 0000000000..6e510c43e2 --- /dev/null +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourceblockdefinitions/monitoring.coreos.com/v1/apps-monitoring-kubedb.yaml @@ -0,0 +1,74 @@ +apiVersion: meta.k8s.appscode.com/v1alpha1 +kind: ResourceBlockDefinition +metadata: + creationTimestamp: null + name: monitoring.coreos.com-v1-apps-monitoring-kubedb +spec: + blocks: + - actions: + create: Never + displayMode: List + kind: Connection + name: Service Monitors + query: + raw: |- + query Find($src: String!, $targetGroup: String!, $targetKind: String!) { + find(oid: $src) { + exposed_by(group: "", kind: "Service") { + refs: monitored_by(group: $targetGroup, kind: $targetKind) { + namespace + name + } + } + } + } + type: GraphQL + ref: + group: monitoring.coreos.com + kind: ServiceMonitor + - actions: + create: Never + displayMode: List + kind: Connection + name: Pod Monitors + query: + raw: |- + query Find($src: String!, $targetGroup: String!, $targetKind: String!) { + find(oid: $src) { + exposed_by(group: "", kind: "Service") { + refs: monitored_by(group: $targetGroup, kind: $targetKind) { + namespace + name + } + } + } + } + type: GraphQL + ref: + group: monitoring.coreos.com + kind: PodMonitor + - actions: + create: Never + displayMode: List + kind: Connection + name: Prometheus + query: + raw: |- + query Find($src: String!, $targetGroup: String!, $targetKind: String!) { + find(oid: $src) { + services: exposed_by(group: "", kind: "Service") { + refs: monitored_by(group: $targetGroup, kind: $targetKind) { + namespace + name + } + } + refs: monitored_by(group: $targetGroup, kind: $targetKind) { + namespace + name + } + } + } + type: GraphQL + ref: + group: monitoring.coreos.com + kind: Prometheus diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourceblockdefinitions/stash.appscode.com/v1/apps-backup-kubedb.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourceblockdefinitions/stash.appscode.com/v1/apps-backup-kubedb.yaml new file mode 100644 index 0000000000..1a9751b990 --- /dev/null +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourceblockdefinitions/stash.appscode.com/v1/apps-backup-kubedb.yaml @@ -0,0 +1,117 @@ +apiVersion: meta.k8s.appscode.com/v1alpha1 +kind: ResourceBlockDefinition +metadata: + creationTimestamp: null + name: stash.appscode.com-v1-apps-backup-kubedb +spec: + blocks: + - actions: + create: Never + displayMode: List + kind: Connection + name: Repository + query: + raw: |- + query Find($src: String!, $targetGroup: String!, $targetKind: String!) { + find(oid: $src) { + backup_via(group: "stash.appscode.com", kind: "BackupConfiguration") { + refs: offshoot(group: $targetGroup, kind: $targetKind) { + namespace + name + } + } + } + } + type: GraphQL + ref: + group: stash.appscode.com + kind: Repository + requiredFeatureSets: + opscenter-backup: + - stash + - actions: + create: Never + displayMode: List + kind: Connection + name: Backup Configuration + query: + byLabel: backup_via + type: GraphQL + ref: + group: stash.appscode.com + kind: BackupConfiguration + requiredFeatureSets: + opscenter-backup: + - stash + - actions: + create: Never + displayMode: List + kind: Connection + name: Recent Backups + query: + raw: |- + query Find($src: String!, $targetGroup: String!, $targetKind: String!) { + find(oid: $src) { + backup_via(group: "stash.appscode.com", kind: "BackupConfiguration") { + refs: offshoot(group: $targetGroup, kind: $targetKind) { + namespace + name + } + } + } + } + type: GraphQL + ref: + group: stash.appscode.com + kind: BackupSession + requiredFeatureSets: + opscenter-backup: + - stash + - actions: + create: Never + displayMode: List + kind: Connection + name: Recent Restores + query: + raw: |- + query Find($src: String!, $targetGroup: String!, $targetKind: String!) { + find(oid: $src) { + backup_via(group: "stash.appscode.com", kind: "BackupConfiguration") { + refs: offshoot(group: $targetGroup, kind: $targetKind) { + namespace + name + } + } + } + } + type: GraphQL + ref: + group: stash.appscode.com + kind: RestoreSession + requiredFeatureSets: + opscenter-backup: + - stash + - actions: + create: Never + displayMode: List + kind: Connection + name: CronJobs + query: + raw: |- + query Find($src: String!, $targetGroup: String!, $targetKind: String!) { + find(oid: $src) { + backup_via(group: "stash.appscode.com", kind: "BackupConfiguration") { + refs: offshoot(group: $targetGroup, kind: $targetKind) { + namespace + name + } + } + } + } + type: GraphQL + ref: + group: batch + kind: CronJob + requiredFeatureSets: + opscenter-backup: + - stash diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/kubedb.com/v1alpha2/mariadbs.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/kubedb.com/v1alpha2/mariadbs.yaml index 7575fe8ca5..c3a32c0fd2 100644 --- a/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/kubedb.com/v1alpha2/mariadbs.yaml +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/kubedb.com/v1alpha2/mariadbs.yaml @@ -104,18 +104,6 @@ spec: kind: MariaDBSchemaOverview type: MatchName exec: - - alias: Primary - command: - - bash - - -c - - mysql -u"$MYSQL_ROOT_USERNAME" -p"$MYSQL_ROOT_PASSWORD" - container: mariadb - help: | - show databases; - if: - condition: | - {{- if (hasPrefix "10." .spec.version) }}true{{ else }}false{{ end -}} - serviceNameTemplate: '{{- .metadata.name -}}' - alias: Primary command: - bash @@ -124,9 +112,6 @@ spec: container: mariadb help: | show databases; - if: - condition: | - {{- if (hasPrefix "10." .spec.version) }}false{{ else }}true{{ end -}} serviceNameTemplate: '{{- .metadata.name -}}' resource: group: kubedb.com diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourceoutlines/core/v1/pods-kubedb.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourceoutlines/core/v1/pods-kubedb.yaml new file mode 100644 index 0000000000..6bd6059ab4 --- /dev/null +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourceoutlines/core/v1/pods-kubedb.yaml @@ -0,0 +1,84 @@ +apiVersion: meta.k8s.appscode.com/v1alpha1 +kind: ResourceOutline +metadata: + creationTimestamp: null + labels: + k8s.io/group: "" + k8s.io/kind: Pod + k8s.io/resource: pods + k8s.io/version: v1 + name: core-v1-pods-kubedb +spec: + defaultLayout: false + pages: + - name: Overview + sections: + - blocks: + - kind: Block + name: core-v1-pods + - name: Backups + requiredFeatureSets: + opscenter-backup: + - stash + - stash-opscenter + sections: + - blocks: + - kind: Block + name: stash.appscode.com-v1-apps-backup-kubedb + - name: Backups 2.0 + requiredFeatureSets: + opscenter-backup: + - kubestash + sections: + - blocks: + - kind: Block + name: core.kubestash.com-v1alpha1-apps-backup + - name: Monitoring + sections: + - blocks: + - kind: Block + name: monitoring.coreos.com-v1-apps-monitoring-kubedb + - name: Security + sections: + - blocks: + - kind: Custom + name: CVE Report + name: CVE Report + requiredFeatureSets: + opscenter-security: + - scanner + - blocks: + - kind: Block + name: rbac.authorization.k8s.io-v1-accesscontrols + name: Access Control + - blocks: + - kind: Block + name: cert-manager.io-v1-tls + name: TLS + requiredFeatureSets: + opscenter-security: + - cert-manager + - blocks: + - kind: Block + name: policy-v1-policies + name: Policies + requiredFeatureSets: + opscenter-security: + - gatekeeper + - gatekeeper-templates + - gatekeeper-constraints + - gatekeeper-grafana-dashboards + - blocks: + - kind: Block + name: falco.appscode.com-v1alpha1-falcoevents-pod + name: Runtime Security + requiredFeatureSets: + opscenter-security: + - falco + - falco-ui-server + resource: + group: "" + kind: Pod + name: pods + scope: Namespaced + version: v1 diff --git a/vendor/kmodules.xyz/resource-metadata/hub/resourceoutlines/core/v1/pods.yaml b/vendor/kmodules.xyz/resource-metadata/hub/resourceoutlines/core/v1/pods.yaml index 0e1d58e2a1..31f862ea08 100644 --- a/vendor/kmodules.xyz/resource-metadata/hub/resourceoutlines/core/v1/pods.yaml +++ b/vendor/kmodules.xyz/resource-metadata/hub/resourceoutlines/core/v1/pods.yaml @@ -25,6 +25,14 @@ spec: - blocks: - kind: Block name: stash.appscode.com-v1-apps-backup + - name: Backups 2.0 + requiredFeatureSets: + opscenter-backup: + - kubestash + sections: + - blocks: + - kind: Block + name: core.kubestash.com-v1alpha1-apps-backup - name: Monitoring sections: - blocks: diff --git a/vendor/modules.txt b/vendor/modules.txt index fda0512099..9e1e4f159e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1959,7 +1959,7 @@ kmodules.xyz/monitoring-agent-api/client ## explicit; go 1.21.5 kmodules.xyz/offshoot-api/api/v1 kmodules.xyz/offshoot-api/api/v2 -# kmodules.xyz/resource-metadata v0.18.2-0.20240312232132-611a62574ba5 +# kmodules.xyz/resource-metadata v0.18.2-0.20240313052239-425c691548da ## explicit; go 1.22.0 kmodules.xyz/resource-metadata/apis/core/install kmodules.xyz/resource-metadata/apis/core/v1alpha1