我用public class myData {
int courseNumber;
char grade;
String stuName;
public myData(int courseNumber, char grade, String stuName) {
this.courseNumber = courseNumber;
this.grade = grade;
this.stuName = stuName;
}
public int getCourseNumber() {
return courseNumber;
}
public char getGrade() {
return grade;
}
public String getStuName() {
return stuName;
}
编写k8s运算符,我以operator-sdk
(字符串)作为输入。我用它创造了一个秘密。一切正常。但是,当用户描述我的对象password
时,密码字符串会在控制台上打印。我想像k8s secret一样隐藏字符串。有什么办法可以做到这一点?